|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.rule.ws.admin.AbstractRuleServiceAdminHandler
org.wso2.carbon.rule.ws.admin.RuleServiceFileAdminHandler
public class RuleServiceFileAdminHandler
Handler for executing rule service management operations for rule services based on the rule service files (.rsl)
| Field Summary |
|---|
| Fields inherited from class org.wso2.carbon.rule.ws.admin.AbstractRuleServiceAdminHandler |
|---|
log, NULL_NS, OM_FACTORY |
| Constructor Summary | |
|---|---|
RuleServiceFileAdminHandler()
|
|
| Method Summary | |
|---|---|
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 name)
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 |
| Methods inherited from class org.wso2.carbon.rule.ws.admin.AbstractRuleServiceAdminHandler |
|---|
cleanUp, createServiceRepository, createXML, getServicePath, getTempDir |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RuleServiceFileAdminHandler()
| Method Detail |
|---|
public void saveRuleService(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
org.apache.axis2.description.AxisService axisService,
org.wso2.carbon.rule.common.RuleService ruleService)
throws RuleServiceAdminException
RuleServiceAdminHandler
axisConfiguration - Axis2 Environment configurationaxisService - AxisService instanceruleService - information about the rule service
RuleServiceAdminException
public org.apache.axiom.om.OMElement getRuleService(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String name)
throws RuleServiceAdminException
RuleServiceAdminHandler
axisConfiguration - Axis2 Environment configurationname - The name of the service to be retrieved
RuleServiceAdminException
public String[] uploadFacts(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName,
String fileName,
DataHandler dataHandler)
RuleServiceAdminHandler
axisConfiguration - Axis2 Environment configurationserviceName - The name of the service that facts are belongedfileName - fact file namedataHandler - Binary representation of the facts
public void uploadRuleFile(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName,
String fileName,
DataHandler dataHandler)
RuleServiceAdminHandler
axisConfiguration - Axis2 Environment configurationserviceName - the name of the rule servicefileName - the rule script file namedataHandler - Binary representation of the rule script
public String[] getAllFacts(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName)
RuleServiceAdminHandler
axisConfiguration - Axis2 Environment configurationserviceName - the name of the rule service
public String[] getFactArchiveList(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName)
RuleServiceAdminHandler
axisConfiguration - Axis2 Environment configurationserviceName - the name of the rule service
public void deleteFactArchive(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName,
String fileName)
throws RuleServiceAdminException
RuleServiceAdminHandler
axisConfiguration - Axis2 Environment configurationserviceName - The name of the service that facts are belongedfileName - fact file name
RuleServiceAdminException
public String[] getRuleFileList(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName,
String fileName)
throws RuleServiceAdminException
RuleServiceAdminHandler
axisConfiguration - Axis2 Environment configurationserviceName - the name of the rule servicefileName - the rule script file name
RuleServiceAdminException
public void deleteRuleFile(org.apache.axis2.engine.AxisConfiguration axisConfiguration,
String serviceName,
String fileName)
throws RuleServiceAdminException
RuleServiceAdminHandler
axisConfiguration - Axis2 Environment configurationserviceName - the name of the rule servicefileName - the rule script file name
RuleServiceAdminException
public void deleteTempRuleServiceDirectory(String serviceName)
throws RuleServiceAdminException
RuleServiceAdminHandler
serviceName - the name of the rule service
RuleServiceAdminException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||