Class SequenceAdminService
java.lang.Object
org.wso2.carbon.sequences.services.SequenceAdminService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSequence(org.apache.axiom.om.OMElement sequenceElement) Add a sequence into the synapseConfigurationvoiddeleteSequence(String sequenceName) Deletes the sequence with the given name from SynapseConfigurationorg.apache.axiom.om.OMElementgetSequence(String sequenceName) Returns the OMelement representation of the sequence given by sequence namebooleanisExistingSequence(String sequenceName) booleanisExistingSequenceForTenant(String sequenceName, String tenantDomain)
-
Constructor Details
-
SequenceAdminService
public SequenceAdminService()
-
-
Method Details
-
deleteSequence
public void deleteSequence(String sequenceName) throws org.wso2.carbon.sequences.common.SequenceEditorException Deletes the sequence with the given name from SynapseConfiguration- Parameters:
sequenceName- - Name of the sequence to delete- Throws:
org.wso2.carbon.sequences.common.SequenceEditorException- if the Sequence described by the given name doesn't exist in the Synapse Configuration
-
addSequence
public void addSequence(org.apache.axiom.om.OMElement sequenceElement) throws org.wso2.carbon.sequences.common.SequenceEditorException Add a sequence into the synapseConfiguration- Parameters:
sequenceElement- - Sequence object to be added as an OMElement- Throws:
org.wso2.carbon.sequences.common.SequenceEditorException- if a sequence exists with the same name or if the element provided is not a Sequence element
-
isExistingSequence
public boolean isExistingSequence(String sequenceName) throws org.wso2.carbon.sequences.common.SequenceEditorException - Throws:
org.wso2.carbon.sequences.common.SequenceEditorException
-
isExistingSequenceForTenant
public boolean isExistingSequenceForTenant(String sequenceName, String tenantDomain) throws org.wso2.carbon.sequences.common.SequenceEditorException - Throws:
org.wso2.carbon.sequences.common.SequenceEditorException
-
getSequence
public org.apache.axiom.om.OMElement getSequence(String sequenceName) throws org.wso2.carbon.sequences.common.SequenceEditorException Returns the OMelement representation of the sequence given by sequence name- Parameters:
sequenceName- - name of the sequence to get- Returns:
- OMElement representing the SequenceMediator of the given sequence name
- Throws:
org.wso2.carbon.sequences.common.SequenceEditorException- if any error occured while getting the data from the SynapseConfiguration
-