public class MediationLibraryAdminService
extends org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
Modifier and Type | Field and Description |
---|---|
static int |
MSGS_PER_PAGE |
Constructor and Description |
---|
MediationLibraryAdminService() |
Modifier and Type | Method and 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) |
javax.activation.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
|
getLock, getMediationPersistenceManager, getServerConfigurationInformation, getServerContextInformation, getSynapseConfiguration, getSynapseEnvironment, getSynapseEnvironment, lockSynapseConfiguration, unlockSynapseConfiguration
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
public static final int MSGS_PER_PAGE
public void addImport(String libName, String packageName) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public LibraryInfo getLibraryInfo(String libName, String packageName) throws org.apache.axis2.AxisFault
libName
- packageName
- org.apache.axis2.AxisFault
public String getImport(String qualifiedName) throws org.apache.axis2.AxisFault
qualifiedName
- name of the message processororg.apache.axis2.AxisFault
public void deleteImport(String importQualifiedName) throws org.apache.axis2.AxisFault
importQualifiedName
- of the MessageProcessor to be deletedorg.apache.axis2.AxisFault
- if Message processor does not existpublic String[] getAllImports() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public String[] getAllLibraries() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public LibraryInfo[] getAllLibraryInfo() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public javax.activation.DataHandler downloadLibraryArchive(String fileName) throws Exception
fileName
- the name of the application archive (.car) to be downloadedException
- for invalid scenariospublic boolean updateStatus(String libQName, String libName, String packageName, String status) throws org.apache.axis2.AxisFault
libName
- packageName
- status
- org.apache.axis2.AxisFault
public boolean deleteEntry(String ele)
Copyright © 2017 WSO2. All rights reserved.