Package org.wso2.carbon.operation.mgt
Class OperationAdmin
java.lang.Object
org.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.operation.mgt.OperationAdmin
public class OperationAdmin
extends org.wso2.carbon.core.AbstractAdmin
Admin service to manage service oprations
-
Field Summary
Fields inherited from class org.wso2.carbon.core.AbstractAdmin
axisConfig, configurationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureMTOM(String flag, String serviceName, String operationName) Configuring MTOMString[]getDeclaredOperationParameters(String serviceName, String operationName) return only the parameters for explicitly set for this operation (not including inherited ones), where each parameter is an XML fragment representing the "parameter" elementgetOperationMetaData(String serviceName, String operationName) String[]getOperationParameters(String serviceId, String operationId) return all parameters for this operation (including inherited ones), where each parameter is an XML fragment representing the "parameter" elementgetOperationStatistics(String serviceName, String operationName) return all accumulated data about this operationlistAllOperations(String serviceName) list all the operations in the service including both control and published operationslistControlOperations(String serviceName) list only the control operations added by modules and some other wayString[]listOperationPhaseHandlers(String serviceName, String operationName, int flow, String phaseName) To list handlers in a given operation phasesString[]listOperationPhases(String serviceName, String operationName, int flow) list all the operation phaseslistPublishedOperations(String serviceName) list all the published operations (come from servics.xml and wsdl)voidremoveOperationParameter(String serviceName, String operationName, String parameterName) voidsetOperationParameters(String serviceId, String operationId, String[] parameters) Methods inherited from class org.wso2.carbon.core.AbstractAdmin
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
-
Constructor Details
-
OperationAdmin
- Throws:
Exception
-
-
Method Details
-
listAllOperations
public OperationMetaDataWrapper listAllOperations(String serviceName) throws org.apache.axis2.AxisFault list all the operations in the service including both control and published operations- Parameters:
serviceName-- Returns:
- list of all operations
- Throws:
org.apache.axis2.AxisFault
-
listControlOperations
public OperationMetaData[] listControlOperations(String serviceName) throws org.apache.axis2.AxisFault list only the control operations added by modules and some other way- Parameters:
serviceName-- Returns:
- list of control operations
- Throws:
org.apache.axis2.AxisFault
-
listPublishedOperations
public OperationMetaData[] listPublishedOperations(String serviceName) throws org.apache.axis2.AxisFault list all the published operations (come from servics.xml and wsdl)- Parameters:
serviceName-- Returns:
- list of published operations
- Throws:
org.apache.axis2.AxisFault
-
getOperationStatistics
public OperationMetaData getOperationStatistics(String serviceName, String operationName) throws org.apache.axis2.AxisFault return all accumulated data about this operation- Parameters:
serviceName-operationName-- Returns:
- operation stats
- Throws:
org.apache.axis2.AxisFault
-
configureMTOM
public void configureMTOM(String flag, String serviceName, String operationName) throws org.apache.axis2.AxisFault Configuring MTOM- Parameters:
flag-serviceName-operationName-- Throws:
org.apache.axis2.AxisFault
-
getOperationParameters
public String[] getOperationParameters(String serviceId, String operationId) throws org.apache.axis2.AxisFault return all parameters for this operation (including inherited ones), where each parameter is an XML fragment representing the "parameter" element- Parameters:
serviceId-operationId-- Returns:
- operation params
- Throws:
org.apache.axis2.AxisFault
-
getDeclaredOperationParameters
public String[] getDeclaredOperationParameters(String serviceName, String operationName) throws org.apache.axis2.AxisFault return only the parameters for explicitly set for this operation (not including inherited ones), where each parameter is an XML fragment representing the "parameter" element- Parameters:
serviceName-operationName-- Returns:
- declared operation params
- Throws:
org.apache.axis2.AxisFault
-
setOperationParameters
public void setOperationParameters(String serviceId, String operationId, String[] parameters) throws org.apache.axis2.AxisFault - Throws:
org.apache.axis2.AxisFault
-
removeOperationParameter
public void removeOperationParameter(String serviceName, String operationName, String parameterName) throws org.apache.axis2.AxisFault - Throws:
org.apache.axis2.AxisFault
-
listOperationPhases
public String[] listOperationPhases(String serviceName, String operationName, int flow) throws org.apache.axis2.AxisFault list all the operation phases- Parameters:
serviceName-operationName-flow-- Returns:
- operation phases
- Throws:
org.apache.axis2.AxisFault
-
listOperationPhaseHandlers
public String[] listOperationPhaseHandlers(String serviceName, String operationName, int flow, String phaseName) throws org.apache.axis2.AxisFault To list handlers in a given operation phases- Parameters:
serviceName-operationName-flow-phaseName-- Returns:
- operation phase handlers
- Throws:
org.apache.axis2.AxisFault
-
getOperationMetaData
public OperationMetaData getOperationMetaData(String serviceName, String operationName) throws org.apache.axis2.AxisFault - Throws:
org.apache.axis2.AxisFault
-