|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActionBoService
This is the interface for accessing KRMS repository Action related business objects.
Method Summary | |
---|---|
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 Rule . |
void |
updateAction(ActionDefinition action)
This will update an existing ActionDefinition . |
Method Detail |
---|
ActionDefinition createAction(ActionDefinition action)
ActionDefinition
exactly like the parameter passed in.
action
- The Action to create
IllegalArgumentException
- if the action is null
IllegalStateException
- if the action already exists in the systemvoid updateAction(ActionDefinition action)
ActionDefinition
.
action
- The Action to update
IllegalArgumentException
- if the Action is null
IllegalStateException
- if the Action does not exists in the systemActionDefinition getActionByActionId(String actionId)
actionId
- the id of the Action to retrieve
ActionDefinition
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.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.List<ActionDefinition> getActionsByRuleId(String ruleId)
Rule
.
The order of the list is determined by the sequenceNumber property
of the Actions.
ruleId
- the id of the rule
ActionDefinition
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.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |