public interface RuleBoService
| Modifier and Type | Method and Description |
|---|---|
RuleDefinition |
createRule(RuleDefinition rule)
This will create a
RuleDefinition exactly like the parameter passed in. |
void |
deleteRule(String ruleId)
Delete the
RuleDefinition with the given id. |
RuleDefinition |
getRuleByNameAndNamespace(String name,
String namespace)
Retrieves an Rule from the repository based on the provided rule name
and namespace.
|
RuleDefinition |
getRuleByRuleId(String ruleId)
Retrieves an Rule from the repository based on the given rule id.
|
RuleDefinition |
updateRule(RuleDefinition rule)
This will update an existing
RuleDefinition. |
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/RuleType","http://rice.kuali.org/krms/v2_0/PropositionType","http://rice.kuali.org/krms/v2_0/ActionType","http://rice.kuali.org/krms/v2_0/AgendaItemType"},
allEntries=true)
RuleDefinition createRule(RuleDefinition rule)
RuleDefinition exactly like the parameter passed in.rule - The Rule to createIllegalArgumentException - if the rule is nullIllegalStateException - if the rule already exists in the system@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/RuleType","http://rice.kuali.org/krms/v2_0/PropositionType","http://rice.kuali.org/krms/v2_0/ActionType","http://rice.kuali.org/krms/v2_0/AgendaItemType"},
allEntries=true)
RuleDefinition updateRule(RuleDefinition rule)
RuleDefinition.rule - The Rule to updateIllegalArgumentException - if the Rule is nullIllegalStateException - if the Rule does not exists in the systemvoid deleteRule(String ruleId)
RuleDefinition with the given id.ruleId - to delete.IllegalArgumentException - if the Rule is null.IllegalStateException - if the Rule does not exists in the system@Cacheable(value="http://rice.kuali.org/krms/v2_0/RuleType",
key="\'ruleId=\' + #p0")
RuleDefinition getRuleByRuleId(String ruleId)
ruleId - the id of the Rule to retrieveRuleDefinition identified by the given actionId.
A null reference is returned if an invalid or non-existent id is supplied.IllegalArgumentException - if the ruleId is null or blank.@Cacheable(value="http://rice.kuali.org/krms/v2_0/RuleType",
key="\'name=\' + #p0 + \'|\' + \'namespace=\' + #p1")
RuleDefinition getRuleByNameAndNamespace(String name,
String namespace)
name - the name of the Rule to retrieve.namespace - the namespace that the rule is under.RuleDefinition identified by the given name and namespace.
A null reference is returned if an invalid or non-existent name and
namespace combination is supplied.IllegalArgumentException - if the either the name or the namespace
is null or blank.Copyright © 2005–2015 The Kuali Foundation. All rights reserved.