Package org.opencms.ade.publish.shared
Class CmsWorkflowResponse
java.lang.Object
org.opencms.ade.publish.shared.CmsWorkflowResponse
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsWorkflowResponse
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
The result of a workflow action.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor needed for serialization only.CmsWorkflowResponse
(boolean isSuccess, String message, List<CmsPublishResource> resources, List<CmsWorkflowAction> availableActions, CmsUUID workflowId) Creates a new workflow response object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of actions which are available next.Gets the message which should be displayed to the user in case of failure.Gets the list of resources which should be presented to the user in case of failure.Gets the internal workflow id.boolean
Returns true if the action for which this object is the workflow response was successful or not.
-
Constructor Details
-
CmsWorkflowResponse
public CmsWorkflowResponse(boolean isSuccess, String message, List<CmsPublishResource> resources, List<CmsWorkflowAction> availableActions, CmsUUID workflowId) Creates a new workflow response object.- Parameters:
isSuccess
- a flag indicating whether the workflow action was successfulmessage
- the message which should be displayed to the user in case of failureresources
- the resources which should be presented to the user in case of failureavailableActions
- the actions which should be possible for the user in case of failureworkflowId
- the internal workflow id
-
CmsWorkflowResponse
protected CmsWorkflowResponse()Constructor needed for serialization only.
-
-
Method Details
-
getAvailableActions
Returns the list of actions which are available next.- Returns:
- a list of beans representing the next possible workflow actions
-
getMessage
Gets the message which should be displayed to the user in case of failure.- Returns:
- the message which should be displayed to the user in case of failure
-
getResources
Gets the list of resources which should be presented to the user in case of failure.- Returns:
- a list of resources
-
getWorkflowId
Gets the internal workflow id.- Returns:
- the internal workflow id
-
isSuccess
Returns true if the action for which this object is the workflow response was successful or not.- Returns:
- true if the workflow action was successful
-