public class TemplateEditorAdmin
extends org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
Sequences
in the initialized synapse environment
The administration activities include;
Modifier and Type | Field and Description |
---|---|
static String |
WSO2_TEMPLATE_MEDIA_TYPE |
Constructor and Description |
---|
TemplateEditorAdmin() |
Modifier and Type | Method and Description |
---|---|
void |
addDynamicTemplate(String key,
org.apache.axiom.om.OMElement sequence) |
void |
addTemplate(org.apache.axiom.om.OMElement templateElement)
Add a sequence into the synapseConfiguration
|
void |
deleteDynamicTemplate(String key) |
void |
deleteTemplate(String templateName)
Deletes the sequence with the given name from SynapseConfiguration
|
String |
disableStatistics(String templateName) |
String |
disableTracing(String templateName) |
String |
enableStatistics(String templateName) |
String |
enableTracing(String templateName) |
org.apache.axiom.om.OMElement |
getDynamicTemplate(String key) |
int |
getDynamicTemplateCount() |
org.wso2.carbon.mediation.templates.common.TemplateInfo[] |
getDynamicTemplates(int pageNumber,
int sequencePerPage) |
org.apache.axiom.om.OMElement |
getTemplate(String templateName)
Returns the OMelement representation of the sequence given by sequence
name
|
org.wso2.carbon.mediation.templates.common.TemplateInfo[] |
getTemplates(int pageNumber,
int templatePerPage) |
int |
getTemplatesCount() |
void |
saveDynamicTemplate(String key,
org.apache.axiom.om.OMElement sequence) |
void |
saveTemplate(org.apache.axiom.om.OMElement templateElement)
Saves the sequence described with the sequence string
|
void |
updateDynamicTemplate(String key,
org.apache.axiom.om.OMElement omElement) |
getLock, getMediationPersistenceManager, getServerConfigurationInformation, getServerContextInformation, getSynapseConfiguration, getSynapseEnvironment, getSynapseEnvironment, lockSynapseConfiguration, unlockSynapseConfiguration
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
public static final String WSO2_TEMPLATE_MEDIA_TYPE
public org.wso2.carbon.mediation.templates.common.TemplateInfo[] getTemplates(int pageNumber, int templatePerPage) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public int getTemplatesCount() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public org.wso2.carbon.mediation.templates.common.TemplateInfo[] getDynamicTemplates(int pageNumber, int sequencePerPage) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public int getDynamicTemplateCount() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public void deleteTemplate(String templateName) throws org.apache.axis2.AxisFault
templateName
- - Name of the sequence to deleteorg.apache.axis2.AxisFault
- if the Sequence described by the given name doesnt
exists in the Synapse Configurationpublic org.apache.axiom.om.OMElement getTemplate(String templateName) throws org.apache.axis2.AxisFault
templateName
- - name of the sequence to getorg.apache.axis2.AxisFault
- if any error occured while getting the data from the
SynapseConfigurationpublic void addTemplate(org.apache.axiom.om.OMElement templateElement) throws org.apache.axis2.AxisFault
templateElement
- - Sequence object to be added as an OMElementorg.apache.axis2.AxisFault
- if a sequence exists with the same name or if the
element provided is not a Sequence elementpublic void saveTemplate(org.apache.axiom.om.OMElement templateElement) throws org.apache.axis2.AxisFault
templateElement
- - String representing the XML describing the
Sequenceorg.apache.axis2.AxisFault
- if the sequence name already exists or if the string
doesn't represent a Sequence elementpublic String enableStatistics(String templateName) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public String disableStatistics(String templateName) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public String enableTracing(String templateName) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public String disableTracing(String templateName) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public void updateDynamicTemplate(String key, org.apache.axiom.om.OMElement omElement) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public void deleteDynamicTemplate(String key) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public void addDynamicTemplate(String key, org.apache.axiom.om.OMElement sequence) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public org.apache.axiom.om.OMElement getDynamicTemplate(String key) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public void saveDynamicTemplate(String key, org.apache.axiom.om.OMElement sequence) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
Copyright © 2018 WSO2. All rights reserved.