|
||||||||||
| 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.rule.ws.admin.RuleServiceAdmin
public class RuleServiceAdmin
Admin service for rule service management
| Field Summary |
|---|
| Fields inherited from class org.wso2.carbon.core.AbstractAdmin |
|---|
axisConfig, configurationContext |
| Constructor Summary | |
|---|---|
RuleServiceAdmin()
|
|
| Method Summary | |
|---|---|
void |
addRuleService(String fileExtension,
String name,
org.apache.axiom.om.OMElement ruleServiceXML)
Adds a rule service based on the given name and other information in the serviceXML |
void |
deleteFactArchive(String serviceName,
String fileName)
|
void |
deleteRuleFile(String serviceName,
String fileName)
|
void |
deleteTempRuleDirectory(String serviceName)
|
void |
editRuleService(String fileExtension,
String name,
org.apache.axiom.om.OMElement ruleServiceXML)
Updates an existing service |
String[] |
getAllFacts(String fileExtension,
String serviceName)
Gets all facts belong to the service with the given name |
String[] |
getAllRuleServices()
Retrieves names of all existing rule services |
String[] |
getFactArchiveList(String serviceName)
|
String[] |
getRuleFileList(String serviceName,
String fileName)
|
org.apache.axiom.om.OMElement |
getRuleService(String serviceName)
retrieves the rule service for the given service name |
String[] |
uploadFacts(String serviceName,
String fileName,
DataHandler dataHandler)
Uploads facts |
void |
uploadRuleFile(String serviceName,
String fileName,
DataHandler dataHandler)
Upload a ruleset as a file |
| Methods inherited from class org.wso2.carbon.core.AbstractAdmin |
|---|
getAxisConfig, getConfigContext, 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 |
| Constructor Detail |
|---|
public RuleServiceAdmin()
| Method Detail |
|---|
public void addRuleService(String fileExtension,
String name,
org.apache.axiom.om.OMElement ruleServiceXML)
throws RuleServiceAdminException
fileExtension - rule service file extensionname - name of the service to be createdruleServiceXML - meta data required to create a rule service
RuleServiceAdminException - for any errors during service add operation
public void editRuleService(String fileExtension,
String name,
org.apache.axiom.om.OMElement ruleServiceXML)
throws RuleServiceAdminException
fileExtension - rule service file extensionname - name of the service to be updatedruleServiceXML - eta data required to update the rule service
RuleServiceAdminException - for any errors during service edit operation
public String[] getAllRuleServices()
throws RuleServiceAdminException
RuleServiceAdminException - for any errors during service list operation
public String[] uploadFacts(String serviceName,
String fileName,
DataHandler dataHandler)
throws RuleServiceAdminException
serviceName - name of the service facts belongsfileName - fact file namedataHandler - DataHandler representing facts in binary
RuleServiceAdminException - for any errors during fact uploading
public void uploadRuleFile(String serviceName,
String fileName,
DataHandler dataHandler)
throws RuleServiceAdminException
serviceName - name of the service rule script belongsfileName - rule file namedataHandler - DataHandler representing rule script in binary
RuleServiceAdminException - for any errors during rule script uploading
public String[] getAllFacts(String fileExtension,
String serviceName)
throws RuleServiceAdminException
fileExtension - rule service file extensionserviceName - name of the service
RuleServiceAdminException - for any errors during facts retrieving
public org.apache.axiom.om.OMElement getRuleService(String serviceName)
throws RuleServiceAdminException
serviceName - name of the rule service
OMElement representing the information of the rule service
org.apache.axis2.AxisFault - for any errors during accessing service
RuleServiceAdminException
public String[] getFactArchiveList(String serviceName)
throws RuleServiceAdminException
RuleServiceAdminException
public void deleteFactArchive(String serviceName,
String fileName)
throws RuleServiceAdminException
RuleServiceAdminException
public String[] getRuleFileList(String serviceName,
String fileName)
throws RuleServiceAdminException
RuleServiceAdminException
public void deleteRuleFile(String serviceName,
String fileName)
throws RuleServiceAdminException
RuleServiceAdminException
public void deleteTempRuleDirectory(String serviceName)
throws RuleServiceAdminException
RuleServiceAdminException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||