Class SequenceAdminService

java.lang.Object
org.wso2.carbon.sequences.services.SequenceAdminService

public class SequenceAdminService extends Object
  • 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