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 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 successful
      message - the message which should be displayed to the user in case of failure
      resources - the resources which should be presented to the user in case of failure
      availableActions - the actions which should be possible for the user in case of failure
      workflowId - 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

      public String 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

      public boolean 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