Class TemplateAdminClientAdapter

  • All Implemented Interfaces:
    org.wso2.carbon.sequences.ui.client.EditorUIClient

    public class TemplateAdminClientAdapter
    extends org.wso2.carbon.sequences.ui.client.SequenceAdminClient
    Client class which is being called by the template-editor component user interface JSPs. This class presents itself as an adapter on the sequence editor admin service
    • Constructor Detail

      • TemplateAdminClientAdapter

        public TemplateAdminClientAdapter​(javax.servlet.ServletConfig config,
                                          javax.servlet.http.HttpSession session)
                                   throws org.apache.axis2.AxisFault
        Throws:
        org.apache.axis2.AxisFault
    • Method Detail

      • getSequences

        public org.wso2.carbon.sequences.common.to.SequenceInfo[] getSequences​(int pageNumber,
                                                                               int sequencePerPage)
                                                                        throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        getSequences in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        getSequences in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getTemplates

        public org.wso2.carbon.sequences.common.to.SequenceInfo[] getTemplates​(int pageNumber,
                                                                               int templatesPerPage)
                                                                        throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getSequencesCount

        public int getSequencesCount()
                              throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        getSequencesCount in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        getSequencesCount in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getTemplatesCount

        public int getTemplatesCount()
                              throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • saveSequence

        public void saveSequence​(org.wso2.carbon.mediator.service.builtin.SequenceMediator sequence)
                          throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        saveSequence in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        saveSequence in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • saveTemplate

        public void saveTemplate​(org.wso2.carbon.mediator.service.builtin.SequenceMediator template)
                          throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • addSequence

        public void addSequence​(org.wso2.carbon.mediator.service.builtin.SequenceMediator sequence)
                         throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        addSequence in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        addSequence in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • addTemplate

        public void addTemplate​(org.wso2.carbon.mediator.service.builtin.SequenceMediator template)
                         throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • addDynamicSequence

        public void addDynamicSequence​(String key,
                                       org.wso2.carbon.mediator.service.builtin.SequenceMediator sequence)
                                throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        addDynamicSequence in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        addDynamicSequence in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • addDynamicTemplate

        public void addDynamicTemplate​(String key,
                                       org.wso2.carbon.mediator.service.builtin.SequenceMediator sequence)
                                throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getDynamicSequence

        public org.apache.axiom.om.OMElement getDynamicSequence​(String key)
                                                         throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        getDynamicSequence in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        getDynamicSequence in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getDynamicTemplate

        public org.apache.axiom.om.OMElement getDynamicTemplate​(String key)
                                                         throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • saveDynamicSequence

        public void saveDynamicSequence​(String key,
                                        org.wso2.carbon.mediator.service.builtin.SequenceMediator sequence)
                                 throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        saveDynamicSequence in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        saveDynamicSequence in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • saveDynamicTemplate

        public void saveDynamicTemplate​(String key,
                                        org.wso2.carbon.mediator.service.builtin.SequenceMediator template)
                                 throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • enableTracing

        public String enableTracing​(String templateName)
                             throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        enableTracing in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        enableTracing in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • disableTracing

        public String disableTracing​(String templateName)
                              throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        disableTracing in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        disableTracing in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • enableStatistics

        public String enableStatistics​(String templateName)
                                throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        enableStatistics in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        enableStatistics in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • disableStatistics

        public String disableStatistics​(String templateName)
                                 throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        disableStatistics in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        disableStatistics in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • deleteSequence

        public void deleteSequence​(String sequenceName)
                            throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        deleteSequence in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        deleteSequence in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • deleteTemplate

        public void deleteTemplate​(String templateName)
                            throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • updateDynamicSequence

        public void updateDynamicSequence​(String key,
                                          org.wso2.carbon.mediator.service.builtin.SequenceMediator sequence)
                                   throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        updateDynamicSequence in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        updateDynamicSequence in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • updateDynamicTemplate

        public void updateDynamicTemplate​(String key,
                                          org.wso2.carbon.mediator.service.builtin.SequenceMediator template)
                                   throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • deleteDynamicSequence

        public void deleteDynamicSequence​(String key)
                                   throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        deleteDynamicSequence in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        deleteDynamicSequence in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • deleteDynamicTemplate

        public void deleteDynamicTemplate​(String key)
                                   throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getDynamicSequences

        public org.wso2.carbon.sequences.common.to.SequenceInfo[] getDynamicSequences​(int pageNumber,
                                                                                      int sequencePerPage)
                                                                               throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        getDynamicSequences in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        getDynamicSequences in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getDynamicTemplates

        public org.wso2.carbon.sequences.common.to.SequenceInfo[] getDynamicTemplates​(int pageNumber,
                                                                                      int sequencePerPage)
                                                                               throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getDynamicSequenceCount

        public int getDynamicSequenceCount()
                                    throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        getDynamicSequenceCount in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        getDynamicSequenceCount in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getDynamicTemplateCount

        public int getDynamicTemplateCount()
                                    throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getSequenceMediator

        public org.wso2.carbon.mediator.service.builtin.SequenceMediator getSequenceMediator​(String sequenceName)
                                                                                      throws org.wso2.carbon.sequences.common.SequenceEditorException
        Specified by:
        getSequenceMediator in interface org.wso2.carbon.sequences.ui.client.EditorUIClient
        Overrides:
        getSequenceMediator in class org.wso2.carbon.sequences.ui.client.SequenceAdminClient
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getTemplateMediator

        public org.wso2.carbon.mediator.service.builtin.SequenceMediator getTemplateMediator​(String templateName)
                                                                                      throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException