Package decisionrules.api
Class ManagementApi
java.lang.Object
decisionrules.api.ManagementApi
-
Constructor Summary
ConstructorsConstructorDescriptionManagementApi(org.springframework.web.client.RestTemplate restTemplate, com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionString[]addTagsAPI(DecisionRulesOptions options, String ruleIdOrAlias, String[] tags, Integer version) createFolderAPI(DecisionRulesOptions options, String targetNodeId, FolderData data, FolderOptions folderOptions) createNewRuleVersionAPI(DecisionRulesOptions options, String ruleIdOrAlias, Rule data) createRuleAPI(DecisionRulesOptions options, Object data, RuleOptions ruleOptions) deleteFolderAPI(DecisionRulesOptions options, String targetNodeId, Boolean deleteAll, FolderOptions folderOptions) deleteRuleAPI(DecisionRulesOptions options, String ruleIdOrAlias, Integer version, RuleOptions ruleOptions) deleteTagsAPI(DecisionRulesOptions options, String ruleIdOrAlias, String[] tags, Integer version) exportFolderAPI(DecisionRulesOptions options, String targetNodeId, FolderOptions folderOptions) findDependenciesAPI(DecisionRulesOptions options, String ruleIdOrAlias, Integer version) findDuplicatesAPI(DecisionRulesOptions options, String ruleIdOrAlias, Integer version) findFolderOrRuleByAttributeAPI(DecisionRulesOptions options, FindOptions findOptions) getCategoryUrl(String host, DecisionRulesEnums.MngCategoryEnum category, String[] apiPath) getCategoryUrl(String host, DecisionRulesEnums.MngCategoryEnum category, String[] apiPath, String[] queryParams) getCategoryUrl(String host, DecisionRulesEnums.MngCategoryEnum category, String[] apiPath, Map<String, String> queryParams) getFolderStructureAPI(DecisionRulesOptions options, String targetNodeId, FolderOptions folderOptions) getRuleAPI(DecisionRulesOptions options, String ruleIdOrAlias, Integer version, RuleOptions ruleOptions) Rule[]getRulesByTagsAPI(DecisionRulesOptions options, String[] tags) Rule[]getRulesForSpaceAPI(DecisionRulesOptions options) importFolderAPI(DecisionRulesOptions options, String targetNodeId, Object data, FolderOptions folderOptions) lockRuleAPI(DecisionRulesOptions options, String ruleIdOrAlias, Boolean locked, Integer version, RuleOptions ruleOptions) moveFolderAPI(DecisionRulesOptions options, String targetNodeId, FolderNode[] nodes, String targetPath) renameFolderAPI(DecisionRulesOptions options, String targetNodeId, String name, FolderOptions folderOptions) updateNodeFolderStructureAPI(DecisionRulesOptions options, String targetNodeId, FolderData data, FolderOptions folderOptions) updateRuleAPI(DecisionRulesOptions options, String ruleIdOrAlias, Rule data, Integer version) updateRuleStatusAPI(DecisionRulesOptions options, String ruleIdOrAlias, DecisionRulesEnums.RuleStatus status, Integer version)
-
Constructor Details
-
ManagementApi
public ManagementApi(org.springframework.web.client.RestTemplate restTemplate, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-
Method Details
-
getCategoryUrl
public URI getCategoryUrl(String host, DecisionRulesEnums.MngCategoryEnum category, String[] apiPath, Map<String, String> queryParams) throws Exception- Throws:
Exception
-
getCategoryUrl
public URI getCategoryUrl(String host, DecisionRulesEnums.MngCategoryEnum category, String[] apiPath, String[] queryParams) throws Exception - Throws:
Exception
-
getCategoryUrl
public URI getCategoryUrl(String host, DecisionRulesEnums.MngCategoryEnum category, String[] apiPath) throws Exception - Throws:
Exception
-
getRuleAPI
public Rule getRuleAPI(DecisionRulesOptions options, String ruleIdOrAlias, Integer version, RuleOptions ruleOptions) throws Exception - Throws:
Exception
-
updateRuleStatusAPI
public Rule updateRuleStatusAPI(DecisionRulesOptions options, String ruleIdOrAlias, DecisionRulesEnums.RuleStatus status, Integer version) throws Exception - Throws:
Exception
-
updateRuleAPI
public Rule updateRuleAPI(DecisionRulesOptions options, String ruleIdOrAlias, Rule data, Integer version) throws Exception - Throws:
Exception
-
createRuleAPI
public Rule createRuleAPI(DecisionRulesOptions options, Object data, RuleOptions ruleOptions) throws Exception - Throws:
Exception
-
createNewRuleVersionAPI
public Rule createNewRuleVersionAPI(DecisionRulesOptions options, String ruleIdOrAlias, Rule data) throws Exception - Throws:
Exception
-
deleteRuleAPI
public String deleteRuleAPI(DecisionRulesOptions options, String ruleIdOrAlias, Integer version, RuleOptions ruleOptions) throws Exception - Throws:
Exception
-
lockRuleAPI
public String lockRuleAPI(DecisionRulesOptions options, String ruleIdOrAlias, Boolean locked, Integer version, RuleOptions ruleOptions) throws Exception - Throws:
Exception
-
findDuplicatesAPI
public Duplicates findDuplicatesAPI(DecisionRulesOptions options, String ruleIdOrAlias, Integer version) throws Exception - Throws:
Exception
-
findDependenciesAPI
public Dependencies findDependenciesAPI(DecisionRulesOptions options, String ruleIdOrAlias, Integer version) throws Exception - Throws:
Exception
-
getRulesForSpaceAPI
- Throws:
Exception
-
getRulesByTagsAPI
- Throws:
Exception
-
addTagsAPI
public String[] addTagsAPI(DecisionRulesOptions options, String ruleIdOrAlias, String[] tags, Integer version) throws Exception - Throws:
Exception
-
deleteTagsAPI
public String deleteTagsAPI(DecisionRulesOptions options, String ruleIdOrAlias, String[] tags, Integer version) throws Exception - Throws:
Exception
-
createFolderAPI
public String createFolderAPI(DecisionRulesOptions options, String targetNodeId, FolderData data, FolderOptions folderOptions) throws Exception - Throws:
Exception
-
updateNodeFolderStructureAPI
public FolderData updateNodeFolderStructureAPI(DecisionRulesOptions options, String targetNodeId, FolderData data, FolderOptions folderOptions) throws Exception - Throws:
Exception
-
exportFolderAPI
public FolderExport exportFolderAPI(DecisionRulesOptions options, String targetNodeId, FolderOptions folderOptions) throws Exception - Throws:
Exception
-
importFolderAPI
public FolderImport importFolderAPI(DecisionRulesOptions options, String targetNodeId, Object data, FolderOptions folderOptions) throws Exception - Throws:
Exception
-
getFolderStructureAPI
public FolderData getFolderStructureAPI(DecisionRulesOptions options, String targetNodeId, FolderOptions folderOptions) throws Exception - Throws:
Exception
-
deleteFolderAPI
public String deleteFolderAPI(DecisionRulesOptions options, String targetNodeId, Boolean deleteAll, FolderOptions folderOptions) throws Exception - Throws:
Exception
-
renameFolderAPI
public String renameFolderAPI(DecisionRulesOptions options, String targetNodeId, String name, FolderOptions folderOptions) throws Exception - Throws:
Exception
-
moveFolderAPI
public String moveFolderAPI(DecisionRulesOptions options, String targetNodeId, FolderNode[] nodes, String targetPath) throws Exception - Throws:
Exception
-
findFolderOrRuleByAttributeAPI
public String findFolderOrRuleByAttributeAPI(DecisionRulesOptions options, FindOptions findOptions) throws Exception - Throws:
Exception
-