Class MediationLibraryAdminService

java.lang.Object
org.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
org.wso2.carbon.mediation.library.service.MediationLibraryAdminService

public class MediationLibraryAdminService extends org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final String
     

    Fields inherited from class org.wso2.carbon.core.AbstractAdmin

    axisConfig, configurationContext
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addImport(String libName, String packageName)
     
    boolean
    Remove the local entry
    void
    deleteImport(String importQualifiedName)
    Delete the SynapseImport instance with given importQualifiedName in the synapse configuration
    void
    deleteLibrary(String libQualifiedName)
     
    Used to download a carbon application archive.
    Get all the Current Message processor names defined in the configuration
    Get all the Current Message processor names defined in the configuration
    Get all the Current Message processor names defined in the configuration
    getImport(String qualifiedName)
    Get the Synapse configuration for a Message processor
    getLibraryInfo(String libName, String packageName)
    Method loads the Library artifact information
    boolean
    updateStatus(String libQName, String libName, String packageName, String status)
    Performing the action of enabling/disabling the given meidation library

    Methods inherited from class org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin

    getLock, getMediationPersistenceManager, getServerConfigurationInformation, getServerContextInformation, getSynapseConfiguration, getSynapseEnvironment, getSynapseEnvironment, lockSynapseConfiguration, unlockSynapseConfiguration

    Methods inherited from class org.wso2.carbon.core.AbstractAdmin

    getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUserId, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • MediationLibraryAdminService

      public MediationLibraryAdminService()
  • Method Details

    • addImport

      public void addImport(String libName, String packageName) throws org.apache.axis2.AxisFault
      Throws:
      org.apache.axis2.AxisFault
    • getLibraryInfo

      public LibraryInfo getLibraryInfo(String libName, String packageName) throws org.apache.axis2.AxisFault
      Method loads the Library artifact information
      Parameters:
      libName -
      packageName -
      Returns:
      Throws:
      org.apache.axis2.AxisFault
    • getImport

      public String getImport(String qualifiedName) throws org.apache.axis2.AxisFault
      Get the Synapse configuration for a Message processor
      Parameters:
      qualifiedName - name of the message processor
      Returns:
      XML String that contain the configuration
      Throws:
      org.apache.axis2.AxisFault
    • deleteImport

      public void deleteImport(String importQualifiedName) throws org.apache.axis2.AxisFault
      Delete the SynapseImport instance with given importQualifiedName in the synapse configuration
      Parameters:
      importQualifiedName - of the MessageProcessor to be deleted
      Throws:
      org.apache.axis2.AxisFault - if Message processor does not exist
    • deleteLibrary

      public void deleteLibrary(String libQualifiedName) throws Exception
      Throws:
      Exception
    • getAllImports

      public String[] getAllImports() throws org.apache.axis2.AxisFault
      Get all the Current Message processor names defined in the configuration
      Returns:
      array of Strings that contains MessageStore names
      Throws:
      org.apache.axis2.AxisFault
    • getAllLibraries

      public String[] getAllLibraries() throws org.apache.axis2.AxisFault
      Get all the Current Message processor names defined in the configuration
      Returns:
      array of Strings that contains MessageStore names
      Throws:
      org.apache.axis2.AxisFault
    • getAllLibraryInfo

      public LibraryInfo[] getAllLibraryInfo() throws org.apache.axis2.AxisFault
      Get all the Current Message processor names defined in the configuration
      Returns:
      array of Strings that contains MessageStore names
      Throws:
      org.apache.axis2.AxisFault
    • downloadLibraryArchive

      public DataHandler downloadLibraryArchive(String fileName) throws Exception
      Used to download a carbon application archive.
      Parameters:
      fileName - the name of the application archive (.car) to be downloaded
      Returns:
      datahandler corresponding to the .car file to be downloaded
      Throws:
      Exception - for invalid scenarios
    • updateStatus

      public boolean updateStatus(String libQName, String libName, String packageName, String status) throws org.apache.axis2.AxisFault
      Performing the action of enabling/disabling the given meidation library
      Parameters:
      libName -
      packageName -
      status -
      Throws:
      org.apache.axis2.AxisFault
    • deleteEntry

      public boolean deleteEntry(String ele)
      Remove the local entry