public class SequenceAdmin
extends org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
Sequences
in the initialized synapse environment
The administration activities include;
Modifier and Type | Field and Description |
---|---|
static String |
WSO2_SEQUENCE_MEDIA_TYPE |
Constructor and Description |
---|
SequenceAdmin() |
Modifier and Type | Method and Description |
---|---|
void |
addDynamicSequence(String key,
org.apache.axiom.om.OMElement sequence) |
void |
addSequence(org.apache.axiom.om.OMElement sequenceElement)
Add a sequence into the synapseConfiguration
|
void |
addSequenceForTenant(org.apache.axiom.om.OMElement sequenceElement,
String tenantDomain)
Set the tenant domain when a publisher deploys custom sequences in MT mode.
|
void |
deleteAllSequence()
Delete all the sequences in the synapse configuration
|
void |
deleteDynamicSequence(String key) |
void |
deleteSelectedSequence(String[] sequenceNames)
Delete Selected Sequence in the synapse configuration
|
void |
deleteSequence(String sequenceName)
Deletes the sequence with the given name from SynapseConfiguration
|
void |
deleteSequenceForTenant(String sequenceName,
String tenantDomain)
Set the tenant domain when a publisher deletes custom sequences in MT mode.
|
String |
disableStatistics(String sequenceName) |
String |
disableTracing(String sequenceName) |
String |
enableStatistics(String sequenceName) |
String |
enableTracing(String sequenceName) |
protected org.apache.axis2.engine.AxisConfiguration |
getAxisConfig()
Override the AbstarctAdmin.java's getAxisConfig() to create the CarbonContext from ThreadLoaclContext.
|
protected org.apache.axis2.context.ConfigurationContext |
getConfigContext() |
org.wso2.carbon.sequences.common.to.ConfigurationObject[] |
getDependents(String sequence) |
org.apache.axiom.om.OMElement |
getDynamicSequence(String key) |
int |
getDynamicSequenceCount() |
org.wso2.carbon.sequences.common.to.SequenceInfo[] |
getDynamicSequences(int pageNumber,
int sequencePerPage) |
String |
getEntryNamesString() |
org.apache.axiom.om.OMElement |
getSequence(String sequenceName)
Returns the OMelement representation of the sequence given by sequence
name
|
org.apache.axiom.om.OMElement |
getSequenceForTenant(String sequenceName,
String tenantDomain)
Set the tenant domain when a publisher tries to get custom sequences in MT mode.
|
org.wso2.carbon.sequences.common.to.SequenceInfo[] |
getSequences(int pageNumber,
int sequencePerPage) |
int |
getSequencesCount() |
org.wso2.carbon.sequences.common.to.SequenceInfo[] |
getSequencesSearch(String searchText) |
boolean |
isExistingSequence(String sequenceName) |
boolean |
isExistingSequenceForTenant(String sequenceName,
String tenantDomain) |
void |
saveDynamicSequence(String key,
org.apache.axiom.om.OMElement sequence) |
void |
saveSequence(org.apache.axiom.om.OMElement sequenceElement)
Saves the sequence described with the sequence string
|
void |
updateDynamicSequence(String key,
org.apache.axiom.om.OMElement omElement) |
getLock, getMediationPersistenceManager, getServerConfigurationInformation, getServerContextInformation, getSynapseConfiguration, getSynapseEnvironment, getSynapseEnvironment, lockSynapseConfiguration, unlockSynapseConfiguration
getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
public static final String WSO2_SEQUENCE_MEDIA_TYPE
public org.wso2.carbon.sequences.common.to.SequenceInfo[] getSequences(int pageNumber, int sequencePerPage) throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public int getSequencesCount() throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public org.wso2.carbon.sequences.common.to.SequenceInfo[] getDynamicSequences(int pageNumber, int sequencePerPage) throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public int getDynamicSequenceCount() throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public void deleteSequence(String sequenceName) throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceName
- - Name of the sequence to deleteorg.wso2.carbon.sequences.common.SequenceEditorException
- if the Sequence described by the given name doesn't
exist in the Synapse Configurationpublic void deleteSequenceForTenant(String sequenceName, String tenantDomain) throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceName
- tenantDomain
- org.wso2.carbon.sequences.common.SequenceEditorException
public void deleteSelectedSequence(String[] sequenceNames) throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceNames
- org.wso2.carbon.sequences.common.SequenceEditorException
public void deleteAllSequence() throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public org.apache.axiom.om.OMElement getSequence(String sequenceName) throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceName
- - name of the sequence to getorg.wso2.carbon.sequences.common.SequenceEditorException
- if any error occured while getting the data from the
SynapseConfigurationpublic org.apache.axiom.om.OMElement getSequenceForTenant(String sequenceName, String tenantDomain) throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceName
- tenantDomain
- org.wso2.carbon.sequences.common.SequenceEditorException
public void addSequence(org.apache.axiom.om.OMElement sequenceElement) throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceElement
- - Sequence object to be added as an OMElementorg.wso2.carbon.sequences.common.SequenceEditorException
- if a sequence exists with the same name or if the
element provided is not a Sequence elementpublic void addSequenceForTenant(org.apache.axiom.om.OMElement sequenceElement, String tenantDomain) throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceElement
- tenantDomain
- org.wso2.carbon.sequences.common.SequenceEditorException
public boolean isExistingSequence(String sequenceName)
public boolean isExistingSequenceForTenant(String sequenceName, String tenantDomain)
public void saveSequence(org.apache.axiom.om.OMElement sequenceElement) throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceElement
- - String representing the XML describing the
Sequenceorg.wso2.carbon.sequences.common.SequenceEditorException
- if the sequence name already exists or if the string
doesn't represent a Sequence elementpublic String enableStatistics(String sequenceName) throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public String disableStatistics(String sequenceName) throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public String enableTracing(String sequenceName) throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public String disableTracing(String sequenceName) throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public String getEntryNamesString() throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public void updateDynamicSequence(String key, org.apache.axiom.om.OMElement omElement) throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public void deleteDynamicSequence(String key) throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public void addDynamicSequence(String key, org.apache.axiom.om.OMElement sequence) throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public org.apache.axiom.om.OMElement getDynamicSequence(String key) throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public void saveDynamicSequence(String key, org.apache.axiom.om.OMElement sequence) throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public org.wso2.carbon.sequences.common.to.ConfigurationObject[] getDependents(String sequence)
protected org.apache.axis2.engine.AxisConfiguration getAxisConfig()
getAxisConfig
in class org.wso2.carbon.core.AbstractAdmin
protected org.apache.axis2.context.ConfigurationContext getConfigContext()
getConfigContext
in class org.wso2.carbon.core.AbstractAdmin
public org.wso2.carbon.sequences.common.to.SequenceInfo[] getSequencesSearch(String searchText) throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
Copyright © 2019 WSO2. All rights reserved.