Class MediationLibraryAdminService


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

      Fields 
      Modifier and Type Field Description
      static int MSGS_PER_PAGE  
      static String SYNAPSE_CONFIGURATION  
      • Fields inherited from class org.wso2.carbon.core.AbstractAdmin

        axisConfig, configurationContext
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addImport​(String libName, String packageName)  
      boolean deleteEntry​(String ele)
      Remove the local entry
      void deleteImport​(String importQualifiedName)
      Delete the SynapseImport instance with given importQualifiedName in the synapse configuration
      void deleteLibrary​(String libQualifiedName)  
      DataHandler downloadLibraryArchive​(String fileName)
      Used to download a carbon application archive.
      String[] getAllImports()
      Get all the Current Message processor names defined in the configuration
      String[] getAllLibraries()
      Get all the Current Message processor names defined in the configuration
      LibraryInfo[] getAllLibraryInfo()
      Get all the Current Message processor names defined in the configuration
      String getImport​(String qualifiedName)
      Get the Synapse configuration for a Message processor
      LibraryInfo 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
    • Constructor Detail

      • MediationLibraryAdminService

        public MediationLibraryAdminService()
    • Method Detail

      • 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
      • 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