|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin
org.wso2.carbon.sequences.services.SequenceAdmin
public class SequenceAdmin
Takes care of all the administration activities related to Sequences
in the initialized synapse environment
The administration activities include;
| Field Summary | |
|---|---|
static String |
WSO2_SEQUENCE_MEDIA_TYPE
|
| Fields inherited from class org.wso2.carbon.core.AbstractAdmin |
|---|
axisConfig, configurationContext |
| Constructor Summary | |
|---|---|
SequenceAdmin()
|
|
| Method Summary | |
|---|---|
void |
addDynamicSequence(String key,
org.apache.axiom.om.OMElement sequence)
|
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 |
deleteAllSequence()
Delete all the sequences in the synapse configuration |
void |
deleteDynamicSequence(String key)
|
void |
deleteSelectedSequence(String[] sequenceNames)
Delete Selected Sequence in the synapse configuration |
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. |
String |
disableStatistics(String sequenceName)
|
String |
disableTracing(String sequenceName)
|
String |
enableStatistics(String sequenceName)
|
String |
enableTracing(String sequenceName)
|
protected org.apache.axis2.engine.AxisConfiguration |
getAxisConfig()
Override the AbstarctAdmin.java's getAxisConfig() to create the CarbonContext from ThreadLoaclContext. |
protected org.apache.axis2.context.ConfigurationContext |
getConfigContext()
|
org.wso2.carbon.sequences.common.to.ConfigurationObject[] |
getDependents(String sequence)
|
org.apache.axiom.om.OMElement |
getDynamicSequence(String key)
|
int |
getDynamicSequenceCount()
|
org.wso2.carbon.sequences.common.to.SequenceInfo[] |
getDynamicSequences(int pageNumber,
int sequencePerPage)
|
String |
getEntryNamesString()
|
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. |
org.wso2.carbon.sequences.common.to.SequenceInfo[] |
getSequences(int pageNumber,
int sequencePerPage)
|
int |
getSequencesCount()
|
org.wso2.carbon.sequences.common.to.SequenceInfo[] |
getSequencesSearch(String searchText)
|
boolean |
isExistingSequence(String sequenceName)
|
boolean |
isExistingSequenceForTenant(String sequenceName,
String tenantDomain)
|
void |
saveDynamicSequence(String key,
org.apache.axiom.om.OMElement sequence)
|
void |
saveSequence(org.apache.axiom.om.OMElement sequenceElement)
Saves the sequence described with the sequence string |
void |
updateDynamicSequence(String key,
org.apache.axiom.om.OMElement omElement)
|
| Methods inherited from class org.wso2.carbon.mediation.initializer.AbstractServiceBusAdmin |
|---|
getLock, getMediationPersistenceManager, getServerConfigurationInformation, getServerContextInformation, getSynapseConfiguration, getSynapseEnvironment, getSynapseEnvironment, lockSynapseConfiguration, unlockSynapseConfiguration |
| Methods inherited from class org.wso2.carbon.core.AbstractAdmin |
|---|
getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WSO2_SEQUENCE_MEDIA_TYPE
| Constructor Detail |
|---|
public SequenceAdmin()
| Method Detail |
|---|
public org.wso2.carbon.sequences.common.to.SequenceInfo[] getSequences(int pageNumber,
int sequencePerPage)
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public int getSequencesCount()
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public org.wso2.carbon.sequences.common.to.SequenceInfo[] getDynamicSequences(int pageNumber,
int sequencePerPage)
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public int getDynamicSequenceCount()
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public void deleteSequence(String sequenceName)
throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceName - - Name of the sequence to delete
org.wso2.carbon.sequences.common.SequenceEditorException - if the Sequence described by the given name doesn't
exist in the Synapse Configuration
public void deleteSequenceForTenant(String sequenceName,
String tenantDomain)
throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceName - tenantDomain -
org.wso2.carbon.sequences.common.SequenceEditorException
public void deleteSelectedSequence(String[] sequenceNames)
throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceNames -
org.wso2.carbon.sequences.common.SequenceEditorException
public void deleteAllSequence()
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 get
org.wso2.carbon.sequences.common.SequenceEditorException - if any error occured while getting the data from the
SynapseConfiguration
public 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
public void addSequence(org.apache.axiom.om.OMElement sequenceElement)
throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceElement - - Sequence object to be added as an OMElement
org.wso2.carbon.sequences.common.SequenceEditorException - if a sequence exists with the same name or if the
element provided is not a Sequence element
public void addSequenceForTenant(org.apache.axiom.om.OMElement sequenceElement,
String tenantDomain)
throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceElement - tenantDomain -
org.wso2.carbon.sequences.common.SequenceEditorExceptionpublic boolean isExistingSequence(String sequenceName)
public boolean isExistingSequenceForTenant(String sequenceName,
String tenantDomain)
public void saveSequence(org.apache.axiom.om.OMElement sequenceElement)
throws org.wso2.carbon.sequences.common.SequenceEditorException
sequenceElement - - String representing the XML describing the
Sequence
org.wso2.carbon.sequences.common.SequenceEditorException - if the sequence name already exists or if the string
doesn't represent a Sequence element
public String enableStatistics(String sequenceName)
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public String disableStatistics(String sequenceName)
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public String enableTracing(String sequenceName)
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public String disableTracing(String sequenceName)
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public String getEntryNamesString()
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public void updateDynamicSequence(String key,
org.apache.axiom.om.OMElement omElement)
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public void deleteDynamicSequence(String key)
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public void addDynamicSequence(String key,
org.apache.axiom.om.OMElement sequence)
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public org.apache.axiom.om.OMElement getDynamicSequence(String key)
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
public void saveDynamicSequence(String key,
org.apache.axiom.om.OMElement sequence)
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorExceptionpublic org.wso2.carbon.sequences.common.to.ConfigurationObject[] getDependents(String sequence)
protected org.apache.axis2.engine.AxisConfiguration getAxisConfig()
getAxisConfig in class org.wso2.carbon.core.AbstractAdminprotected org.apache.axis2.context.ConfigurationContext getConfigContext()
getConfigContext in class org.wso2.carbon.core.AbstractAdmin
public org.wso2.carbon.sequences.common.to.SequenceInfo[] getSequencesSearch(String searchText)
throws org.wso2.carbon.sequences.common.SequenceEditorException
org.wso2.carbon.sequences.common.SequenceEditorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||