public class SequenceAdminService extends Object
Constructor and Description |
---|
SequenceAdminService() |
Modifier and Type | Method and Description |
---|---|
void |
addSequence(org.apache.axiom.om.OMElement sequenceElement)
Add a sequence into the synapseConfiguration
|
void |
deleteSequence(String sequenceName)
Deletes the sequence with the given name from SynapseConfiguration
|
org.apache.axiom.om.OMElement |
getSequence(String sequenceName)
Returns the OMelement representation of the sequence given by sequence
name
|
boolean |
isExistingSequence(String sequenceName) |
boolean |
isExistingSequenceForTenant(String sequenceName,
String tenantDomain) |
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 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 boolean isExistingSequence(String sequenceName) throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public boolean isExistingSequenceForTenant(String sequenceName, String tenantDomain) 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
SynapseConfigurationCopyright © 2022 WSO2. All rights reserved.