public class LocalEntryAdmin
extends org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
Modifier and Type | Field and Description |
---|---|
static int |
LOCAL_ENTRIES_PER_PAGE |
Constructor and Description |
---|
LocalEntryAdmin() |
Modifier and Type | Method and Description |
---|---|
boolean |
addEntry(String ele)
Add a entry into the synapseConfiguration
|
boolean |
deleteEntry(String entryKey)
Deletes the entry with the given name from SynapseConfiguration
|
EntryData[] |
entryData() |
org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject[] |
getDependents(String entryName) |
org.apache.axiom.om.OMElement |
getEntry(String entryKey)
Returns the OMelement representation of the entry given by sequence
name
|
int |
getEntryDataCount() |
String[] |
getEntryNames()
Returns an String array of the entry names present in the synapse configuration
|
String |
getEntryNamesString() |
EntryData[] |
paginatedEntryData(int pageNumber) |
boolean |
saveEntry(String ele)
Saves the entry described with the OMElement representing the entry
|
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 LOCAL_ENTRIES_PER_PAGE
public EntryData[] entryData() throws LocalEntryAdminException
LocalEntryAdminException
public EntryData[] paginatedEntryData(int pageNumber) throws LocalEntryAdminException
LocalEntryAdminException
public int getEntryDataCount() throws LocalEntryAdminException
LocalEntryAdminException
public boolean addEntry(String ele) throws LocalEntryAdminException
ele
- - Entry object to be added as an OMElementLocalEntryAdminException
- if a Entry exists with the same name or if the
element provided is not a Entry elementpublic boolean saveEntry(String ele) throws LocalEntryAdminException
ele
- - OMElement representing the entryLocalEntryAdminException
- if the entry name already exists or if the Element
doesnt represent a entry elementpublic org.apache.axiom.om.OMElement getEntry(String entryKey) throws LocalEntryAdminException
entryKey
- - name of the entry to getLocalEntryAdminException
- if any error occured while getting the data from the
SynapseConfigurationpublic boolean deleteEntry(String entryKey) throws LocalEntryAdminException
entryKey
- - Name of the entry to deleteLocalEntryAdminException
- if the entry described by the given name doesnt
exists in the Synapse Configurationpublic String[] getEntryNames() throws LocalEntryAdminException
LocalEntryAdminException
- if an error occurs in getting the synapse configurationpublic String getEntryNamesString() throws LocalEntryAdminException
LocalEntryAdminException
public org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject[] getDependents(String entryName)
Copyright © 2018 WSO2. All rights reserved.