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
FieldsFields inherited from class org.wso2.carbon.core.AbstractAdmin
axisConfig, configurationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleandeleteEntry(String ele) Remove the local entryvoiddeleteImport(String importQualifiedName) Delete the SynapseImport instance with given importQualifiedName in the synapse configurationvoiddeleteLibrary(String libQualifiedName) downloadLibraryArchive(String fileName) Used to download a carbon application archive.String[]Get all the Current Message processor names defined in the configurationString[]Get all the Current Message processor names defined in the configurationGet all the Current Message processor names defined in the configurationGet the Synapse configuration for a Message processorgetLibraryInfo(String libName, String packageName) Method loads the Library artifact informationbooleanupdateStatus(String libQName, String libName, String packageName, String status) Performing the action of enabling/disabling the given meidation libraryMethods inherited from class org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
getLock, getMediationPersistenceManager, getServerConfigurationInformation, getServerContextInformation, getSynapseConfiguration, getSynapseEnvironment, getSynapseEnvironment, lockSynapseConfiguration, unlockSynapseConfigurationMethods 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 Details
-
MSGS_PER_PAGE
public static final int MSGS_PER_PAGE- See Also:
-
SYNAPSE_CONFIGURATION
- See Also:
-
-
Constructor Details
-
MediationLibraryAdminService
public MediationLibraryAdminService()
-
-
Method Details
-
addImport
- 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
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
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
- Throws:
Exception
-
getAllImports
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
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
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
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
Remove the local entry
-