Package org.kuali.rice.kew.api.action
Class RequestedActions
java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.kew.api.action.RequestedActions
- All Implemented Interfaces:
Serializable,ModelObjectBasic,ModelObjectComplete
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(ActionRequestType actionRequestType) Returns true if this set of requested actions contains the given action request type.static RequestedActionscreate(boolean completeRequested, boolean approveRequested, boolean acknowledgeRequested, boolean fyiRequested) Returns a Set ofActionRequestTypes which indicate the actions which have been requested.booleanbooleanbooleanbooleanMethods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
-
Method Details
-
create
public static RequestedActions create(boolean completeRequested, boolean approveRequested, boolean acknowledgeRequested, boolean fyiRequested) -
isCompleteRequested
public boolean isCompleteRequested() -
isApproveRequested
public boolean isApproveRequested() -
isAcknowledgeRequested
public boolean isAcknowledgeRequested() -
isFyiRequested
public boolean isFyiRequested() -
getRequestedActions
Returns a Set ofActionRequestTypes which indicate the actions which have been requested. This will essentially contain request types for any of the request-related methods on this class which return "true". If no actions are requested, the empty set will be returned (this method will never return null).- Returns:
- an unmodifiable Set of action request types which have been requested, or an empty set if no actions are requested
-
contains
Returns true if this set of requested actions contains the given action request type.- Parameters:
actionRequestType- theActionRequestTypeto check for, can't be null- Returns:
- true if the action is requested, false otherwise
- Throws:
IllegalArgumentException- if actionRequestType is null
-