public interface ActionBoService
| Modifier and Type | Method and Description |
|---|---|
ActionDefinition |
createAction(ActionDefinition action)
This will create a
ActionDefinition exactly like the parameter passed in. |
ActionDefinition |
getActionByActionId(String actionId)
Retrieves an Action from the repository based on the given action id.
|
ActionDefinition |
getActionByNameAndNamespace(String name,
String namespace)
Retrieves an Action from the repository based on the provided action name
and namespace.
|
ActionDefinition |
getActionByRuleIdAndSequenceNumber(String ruleId,
Integer sequenceNumber)
Retrieves an specific Action associated with a Rule.
|
List<ActionDefinition> |
getActionsByRuleId(String ruleId)
Retrieves an ordered List of Actions associated with a
RuleDefinition. |
ActionDefinition |
updateAction(ActionDefinition action)
This will update an existing
ActionDefinition. |
@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/ActionType","http://rice.kuali.org/krms/v2_0/RuleType"},
allEntries=true)
ActionDefinition createAction(ActionDefinition action)
ActionDefinition exactly like the parameter passed in.action - The Action to createIllegalArgumentException - if the action is nullIllegalStateException - if the action already exists in the system@CacheEvict(value={"http://rice.kuali.org/krms/v2_0/ActionType","http://rice.kuali.org/krms/v2_0/RuleType"},
allEntries=true)
ActionDefinition updateAction(ActionDefinition action)
ActionDefinition.action - The Action to updateIllegalArgumentException - if the Action is nullIllegalStateException - if the Action does not exists in the system@Cacheable(value="http://rice.kuali.org/krms/v2_0/ActionType",
key="\'actionId=\' + #p0")
ActionDefinition getActionByActionId(String actionId)
actionId - the id of the Action to retrieveActionDefinition identified by the given actionId.
A null reference is returned if an invalid or non-existent id is supplied.IllegalArgumentException - if the actionId is null or blank.@Cacheable(value="http://rice.kuali.org/krms/v2_0/ActionType",
key="\'name=\' + #p0 + \'|\' + \'namespace=\' + #p1")
ActionDefinition getActionByNameAndNamespace(String name,
String namespace)
name - the name of the Action to retrieve.namespace - the namespace that the action is under.ActionDefinition 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.@Cacheable(value="http://rice.kuali.org/krms/v2_0/ActionType",
key="\'ruleId=\' + #p0")
List<ActionDefinition> getActionsByRuleId(String ruleId)
RuleDefinition.
The order of the list is determined by the sequenceNumber property
of the Actions.ruleId - the id of the ruleActionDefinition associated with the given rule.
A null reference is returned if an invalid or ruleId is supplied.IllegalArgumentException - if the ruleId is null or blank.@Cacheable(value="http://rice.kuali.org/krms/v2_0/ActionType",
key="\'ruleId=\' + #p0 + \'|\' + \'sequenceNumber=\' + #p1")
ActionDefinition getActionByRuleIdAndSequenceNumber(String ruleId,
Integer sequenceNumber)
ruleId - the id of the rulesequenceNumber - an Integer that represents the sequence number of the action.ActionDefinition identified associated with the
Rule and identified by the given sequenceNumber
A null reference is returned if an invalid or non-existent name and
namespace combination is supplied.IllegalArgumentException - if the ruleId is null or blank. Or
if the sequenceNumber is null.Copyright © 2005–2016 The Kuali Foundation. All rights reserved.