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 |
addEntryForTenant(String element,
String tenantDomain)
Add an entry into the Synapse Configuration.
|
boolean |
deleteEntry(String entryKey)
Deletes the entry with the given name from SynapseConfiguration
|
boolean |
deleteEntryForTenant(String entryKey,
String tenantDomain)
Deletes the entry with the given name from Synapse Configuration.
|
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() |
org.apache.axiom.om.OMElement |
getEntryForTenant(String entryKey,
String tenantDomain)
Returns the OMElement representation of the entry given by sequence name.
|
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
|
boolean |
saveEntryForTenant(String element,
String tenantDomain)
Saves the entry described with the OMElement.
|
getLock, getMediationPersistenceManager, getServerConfigurationInformation, getServerContextInformation, getSynapseConfiguration, getSynapseEnvironment, getSynapseEnvironment, lockSynapseConfiguration, unlockSynapseConfigurationgetAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamppublic static final int LOCAL_ENTRIES_PER_PAGE
public EntryData[] entryData() throws LocalEntryAdminException
LocalEntryAdminExceptionpublic EntryData[] paginatedEntryData(int pageNumber) throws LocalEntryAdminException
LocalEntryAdminExceptionpublic int getEntryDataCount()
throws LocalEntryAdminException
LocalEntryAdminExceptionpublic 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 addEntryForTenant(String element, String tenantDomain) throws LocalEntryAdminException
element - Entry object to be added as an OMElementtenantDomain - Tenant domainLocalEntryAdminException - if an entry exists with the same name or if the
element provided is not an 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 boolean saveEntryForTenant(String element, String tenantDomain) throws LocalEntryAdminException
element - OMElement representing the entrytenantDomain - Tenant domainLocalEntryAdminException - if the entry name already exists or if the element
does not 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 org.apache.axiom.om.OMElement getEntryForTenant(String entryKey, String tenantDomain) throws LocalEntryAdminException
entryKey - Name of the entry to gettenantDomain - Tenant domainLocalEntryAdminException - if any error occurred while getting the data from the
Synapse Configurationpublic 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 boolean deleteEntryForTenant(String entryKey, String tenantDomain) throws LocalEntryAdminException
entryKey - Name of the entry to deletetenantDomain - Tenant domainLocalEntryAdminException - if the entry described by the given name does not
exist in the Synapse Configurationpublic String[] getEntryNames() throws LocalEntryAdminException
LocalEntryAdminException - if an error occurs in getting the synapse configurationpublic String getEntryNamesString() throws LocalEntryAdminException
LocalEntryAdminExceptionpublic org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject[] getDependents(String entryName)
Copyright © 2019 WSO2. All rights reserved.