public class CmsWorkflowResponse
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable
限定符 | 构造器和说明 |
---|---|
protected |
CmsWorkflowResponse()
Constructor needed for serialization only.
|
|
CmsWorkflowResponse(boolean isSuccess,
java.lang.String message,
java.util.List<CmsPublishResource> resources,
java.util.List<CmsWorkflowAction> availableActions,
CmsUUID workflowId)
Creates a new workflow response object.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<CmsWorkflowAction> |
getAvailableActions()
Returns the list of actions which are available next.
|
java.lang.String |
getMessage()
Gets the message which should be displayed to the user in case of failure.
|
java.util.List<CmsPublishResource> |
getResources()
Gets the list of resources which should be presented to the user in case of failure.
|
CmsUUID |
getWorkflowId()
Gets the internal workflow id.
|
boolean |
isSuccess()
Returns true if the action for which this object is the workflow response was successful or not.
|
public CmsWorkflowResponse(boolean isSuccess, java.lang.String message, java.util.List<CmsPublishResource> resources, java.util.List<CmsWorkflowAction> availableActions, CmsUUID workflowId)
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 idprotected CmsWorkflowResponse()
public java.util.List<CmsWorkflowAction> getAvailableActions()
public java.lang.String getMessage()
public java.util.List<CmsPublishResource> getResources()
public CmsUUID getWorkflowId()
public boolean isSuccess()