|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuleBoService
This is the interface for accessing KRMS repository Rule related bos
Method Summary | |
---|---|
RuleDefinition |
createRule(RuleDefinition rule)
This will create a RuleDefinition exactly like the parameter passed in. |
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. |
void |
updateRule(RuleDefinition rule)
This will update an existing RuleDefinition . |
Method Detail |
---|
@CacheEvict(value="http://rice.kuali.org/krms/v2_0/RuleType", allEntries=true) RuleDefinition createRule(RuleDefinition rule)
RuleDefinition
exactly like the parameter passed in.
rule
- The Rule to create
IllegalArgumentException
- if the rule is null
IllegalStateException
- if the rule already exists in the system@CacheEvict(value="http://rice.kuali.org/krms/v2_0/RuleType", allEntries=true) void updateRule(RuleDefinition rule)
RuleDefinition
.
rule
- The Rule to update
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 retrieve
RuleDefinition
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |