public interface RuleServiceAdminHandler
| Modifier and Type | Method and Description |
|---|---|
void |
deleteFactArchive(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName,
String fileName)
Delete fact archives that are not needed
|
void |
deleteRuleFile(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName,
String fileName)
Delete the rule script in a rule service
|
void |
deleteTempRuleServiceDirectory(String serviceName)
Delete the rule temp Directory in a rule service
|
String[] |
getAllFacts(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName)
Retrieves the all facts applicable for a rule service
|
String[] |
getFactArchiveList(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName)
Retrieves the all facts applicable for a rule service
|
String[] |
getRuleFileList(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName,
String fileName)
Uploads the rule script for a rule service
|
org.apache.axiom.om.OMElement |
getRuleService(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName)
Retrieves an XML representation of the rule service
|
void |
saveRuleService(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
org.apache.axis2.description.AxisService axisService,
org.wso2.carbon.rule.common.RuleService ruleService)
Add a new rule service or update an existing one
|
String[] |
uploadFacts(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName,
String fileName,
DataHandler dataHandler)
Uploads the facts to be used in the rule service
|
void |
uploadRuleFile(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName,
String fileName,
DataHandler dataHandler)
Uploads the rule script for a rule service
|
void saveRuleService(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
org.apache.axis2.description.AxisService axisService,
org.wso2.carbon.rule.common.RuleService ruleService)
throws RuleServiceAdminException
axisConfiguration - Axis2 Environment configurationaxisService - AxisService instanceruleService - information about the rule serviceRuleServiceAdminExceptionorg.apache.axiom.om.OMElement getRuleService(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName)
throws RuleServiceAdminException
axisConfiguration - Axis2 Environment configurationserviceName - The name of the service to be retrievedRuleServiceAdminExceptionString[] uploadFacts(org.apache.axis2.engine.AxisConfiguration axisConfiguration, String serviceName, String fileName, DataHandler dataHandler) throws RuleServiceAdminException
axisConfiguration - Axis2 Environment configurationserviceName - The name of the service that facts are belongedfileName - fact file namedataHandler - Binary representation of the factsRuleServiceAdminExceptionvoid uploadRuleFile(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName,
String fileName,
DataHandler dataHandler)
throws RuleServiceAdminException
axisConfiguration - Axis2 Environment configurationserviceName - the name of the rule servicefileName - the rule script file namedataHandler - Binary representation of the rule scriptRuleServiceAdminExceptionString[] getAllFacts(org.apache.axis2.engine.AxisConfiguration axisConfiguration, String serviceName) throws RuleServiceAdminException
axisConfiguration - Axis2 Environment configurationserviceName - the name of the rule serviceRuleServiceAdminExceptionString[] getFactArchiveList(org.apache.axis2.engine.AxisConfiguration axisConfiguration, String serviceName) throws RuleServiceAdminException
axisConfiguration - Axis2 Environment configurationserviceName - the name of the rule serviceRuleServiceAdminExceptionvoid deleteFactArchive(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName,
String fileName)
throws RuleServiceAdminException
axisConfiguration - Axis2 Environment configurationserviceName - The name of the service that facts are belongedfileName - fact file nameRuleServiceAdminExceptionString[] getRuleFileList(org.apache.axis2.engine.AxisConfiguration axisConfiguration, String serviceName, String fileName) throws RuleServiceAdminException
axisConfiguration - Axis2 Environment configurationserviceName - the name of the rule servicefileName - the rule script file nameRuleServiceAdminExceptionvoid deleteRuleFile(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName,
String fileName)
throws RuleServiceAdminException
axisConfiguration - Axis2 Environment configurationserviceName - the name of the rule servicefileName - the rule script file nameRuleServiceAdminExceptionvoid deleteTempRuleServiceDirectory(String serviceName) throws RuleServiceAdminException
serviceName - the name of the rule serviceRuleServiceAdminExceptionCopyright © 2018 WSO2. All rights reserved.