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 |
addSequenceForTenant(org.apache.axiom.om.OMElement sequenceElement,
String tenantDomain)
Set the tenant domain when a publisher deploys custom sequences in MT mode.
|
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.
|
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.
|
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 deleteSequenceForTenant(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) 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
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
Copyright © 2017 WSO2. All rights reserved.