org.alfresco.web.bean.workflow
Class CancelWorkflowDialog

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.workflow.CancelWorkflowDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean

public class CancelWorkflowDialog
extends BaseDialogBean

Bean implementation for the "Cancel Workflow" dialog

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
CancelWorkflowDialog()
           
 
Method Summary
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 java.lang.String getCancelButtonLabel()
          Returns the label to use for the cancel button
 java.lang.String getConfirmMessage()
          Returns the confirmation to display to the user before deleting the content.
protected  java.lang.String getErrorMessageId()
          The default message id to use in error messages
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 java.lang.String getFinishButtonLabel()
          Returns the label to use for the finish button
protected  org.alfresco.service.cmr.workflow.WorkflowInstance getWorkflowInstance()
           
 org.alfresco.service.cmr.workflow.WorkflowService getWorkflowService()
          Returns the workflow service instance
 void init(java.util.Map parameters)
          Initialises the dialog bean
 void setWorkflowService(org.alfresco.service.cmr.workflow.WorkflowService workflowService)
          Sets the workflow service to use
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorOutcome, getFileFolderService, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancelWorkflowDialog

public CancelWorkflowDialog()
Method Detail

init

public void init(java.util.Map parameters)
Description copied from interface: IDialogBean
Initialises the dialog bean

Specified by:
init in interface IDialogBean
Overrides:
init in class BaseDialogBean
Parameters:
parameters - Map of parameters for the dialog

finishImpl

protected java.lang.String finishImpl(javax.faces.context.FacesContext context,
                                      java.lang.String outcome)
                               throws java.lang.Exception
Description copied from class: BaseDialogBean
Performs the actual processing for the wizard. NOTE: This method is called within the context of a transaction so no transaction handling is required

Specified by:
finishImpl in class BaseDialogBean
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome
Throws:
java.lang.Exception

getErrorMessageId

protected java.lang.String getErrorMessageId()
Description copied from class: BaseDialogBean
The default message id to use in error messages

Overrides:
getErrorMessageId in class BaseDialogBean
Returns:
The error message lookup id

getFinishButtonDisabled

public boolean getFinishButtonDisabled()
Description copied from interface: IDialogBean
Determines whether the finish button on the dialog should be disabled

Specified by:
getFinishButtonDisabled in interface IDialogBean
Overrides:
getFinishButtonDisabled in class BaseDialogBean
Returns:
true if the button should be disabled

getCancelButtonLabel

public java.lang.String getCancelButtonLabel()
Description copied from interface: IDialogBean
Returns the label to use for the cancel button

Specified by:
getCancelButtonLabel in interface IDialogBean
Overrides:
getCancelButtonLabel in class BaseDialogBean
Returns:
The cancel button label

getFinishButtonLabel

public java.lang.String getFinishButtonLabel()
Description copied from interface: IDialogBean
Returns the label to use for the finish button

Specified by:
getFinishButtonLabel in interface IDialogBean
Overrides:
getFinishButtonLabel in class BaseDialogBean
Returns:
The finish button label

getConfirmMessage

public java.lang.String getConfirmMessage()
Returns the confirmation to display to the user before deleting the content.

Returns:
The formatted message to display

getWorkflowService

public org.alfresco.service.cmr.workflow.WorkflowService getWorkflowService()
Returns the workflow service instance

Returns:
WorkflowService instance

setWorkflowService

public void setWorkflowService(org.alfresco.service.cmr.workflow.WorkflowService workflowService)
Sets the workflow service to use

Parameters:
workflowService - The WorkflowService instance

getWorkflowInstance

protected org.alfresco.service.cmr.workflow.WorkflowInstance getWorkflowInstance()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.