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 int
MSGS_PER_PAGE
static String
SYNAPSE_CONFIGURATION
-
Constructor Summary
Constructors Constructor Description MediationLibraryAdminService()
-
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 entryvoid
deleteImport(String importQualifiedName)
Delete the SynapseImport instance with given importQualifiedName in the synapse configurationvoid
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 configurationString[]
getAllLibraries()
Get all the Current Message processor names defined in the configurationLibraryInfo[]
getAllLibraryInfo()
Get all the Current Message processor names defined in the configurationString
getImport(String qualifiedName)
Get the Synapse configuration for a Message processorLibraryInfo
getLibraryInfo(String libName, String packageName)
Method loads the Library artifact informationboolean
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
-
-
-
-
Field Detail
-
MSGS_PER_PAGE
public static final int MSGS_PER_PAGE
- See Also:
- Constant Field Values
-
SYNAPSE_CONFIGURATION
public static final String SYNAPSE_CONFIGURATION
- See Also:
- Constant Field Values
-
-
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
-
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
-
-