org.alfresco.web.bean.wcm
Class SubmitDialog

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

public class SubmitDialog
extends BaseDialogBean

Submit items for WCM workflow dialog.

See Also:
Serialized Form

Nested Class Summary
 class SubmitDialog.ItemWrapper
          Wrapper class to provide UI RichList component getters for an AVM node descriptor
 
Field Summary
protected  WorkflowConfiguration actionWorkflow
          Current workflow for dialog context
protected  AVMBrowseBean avmBrowseBean
           
static java.lang.String MSG_ERR_INVALID_EXPIRATION_DATE
           
static java.lang.String MSG_ERR_INVALID_LAUNCH_DATE
           
static java.lang.String MSG_ERR_PATTERN_INVALID_EXPIRATION_DATE
           
static java.lang.String PARAM_LOAD_SELECTED_NODES_FROM_BROWSE_BEAN
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
SubmitDialog()
           
 
Method Summary
 void applyDefaultExpireDateToAll(javax.faces.event.ActionEvent event)
          Applies the entered default date to all modified items
 void enterExpireDate(javax.faces.event.ActionEvent event)
          Toggles the enteringExpireDate flag
 java.lang.String finish()
          Method handler called when the finish button of the dialog is pressed
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 WorkflowConfiguration getActionWorkflow()
           
protected  org.alfresco.service.cmr.avm.AVMService getAvmService()
           
protected  org.alfresco.service.cmr.avmsync.AVMSyncService getAvmSyncService()
           
 java.lang.String getComment()
           
 java.util.Date getDefaultExpireDate()
           
 java.util.Map getExpiredDates()
           
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
protected  FormsService getFormsService()
           
 java.lang.String getLabel()
           
 java.util.Date getLaunchDate()
           
protected  org.alfresco.util.NameMatcher getNameMatcher()
           
protected  org.alfresco.wcm.sandbox.SandboxFactory getSandboxFactory()
           
protected  org.alfresco.wcm.sandbox.SandboxService getSandboxService()
           
 java.util.List getSubmitItems()
           
 int getSubmitItemsSize()
           
 java.util.List getWarningItems()
           
 int getWarningItemsSize()
           
 java.util.List getWorkflowList()
           
 int getWorkflowListSize()
           
 java.lang.String[] getWorkflowSelectedValue()
           
protected  org.alfresco.service.cmr.workflow.WorkflowService getWorkflowService()
           
 void init(java.util.Map parameters)
          Initialises the dialog bean
 boolean isAutoDeploy()
           
 boolean isEnteringExpireDate()
           
 void setActionWorkflow(WorkflowConfiguration actionWorkflow)
           
 void setAutoDeploy(boolean autoDeploy)
           
 void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
           
 void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
           
 void setAvmSyncService(org.alfresco.service.cmr.avmsync.AVMSyncService avmSyncService)
           
 void setComment(java.lang.String comment)
           
 void setDefaultExpireDate(java.util.Date defaultExpireDate)
           
 void setFormsService(FormsService formsService)
           
 void setLabel(java.lang.String label)
           
 void setLaunchDate(java.util.Date launchDate)
           
 void setNameMatcher(org.alfresco.util.NameMatcher nameMatcher)
           
 void setSandboxFactory(org.alfresco.wcm.sandbox.SandboxFactory sandboxFactory)
           
 void setSandboxService(org.alfresco.wcm.sandbox.SandboxService sandboxService)
           
 void setupConfigureWorkflow(javax.faces.event.ActionEvent event)
          Action method to setup a workflow for dialog context for the current row
 void setWorkflowSelectedValue(java.lang.String[] workflowSelectedValue)
           
 void setWorkflowService(org.alfresco.service.cmr.workflow.WorkflowService workflowService)
           
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonLabel, 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
 

Field Detail

PARAM_LOAD_SELECTED_NODES_FROM_BROWSE_BEAN

public static final java.lang.String PARAM_LOAD_SELECTED_NODES_FROM_BROWSE_BEAN
See Also:
Constant Field Values

MSG_ERR_INVALID_LAUNCH_DATE

public static final java.lang.String MSG_ERR_INVALID_LAUNCH_DATE
See Also:
Constant Field Values

MSG_ERR_INVALID_EXPIRATION_DATE

public static final java.lang.String MSG_ERR_INVALID_EXPIRATION_DATE
See Also:
Constant Field Values

MSG_ERR_PATTERN_INVALID_EXPIRATION_DATE

public static final java.lang.String MSG_ERR_PATTERN_INVALID_EXPIRATION_DATE
See Also:
Constant Field Values

avmBrowseBean

protected AVMBrowseBean avmBrowseBean

actionWorkflow

protected WorkflowConfiguration actionWorkflow
Current workflow for dialog context

Constructor Detail

SubmitDialog

public SubmitDialog()
Method Detail

setAvmService

public void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
Parameters:
avmService - The AVM Service to set.

getAvmService

protected org.alfresco.service.cmr.avm.AVMService getAvmService()

setAvmSyncService

public void setAvmSyncService(org.alfresco.service.cmr.avmsync.AVMSyncService avmSyncService)
Parameters:
avmSyncService - The AVMSyncService to set.

getAvmSyncService

protected org.alfresco.service.cmr.avmsync.AVMSyncService getAvmSyncService()

setAvmBrowseBean

public void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
Parameters:
avmBrowseBean - The AVM BrowseBean to set

setWorkflowService

public void setWorkflowService(org.alfresco.service.cmr.workflow.WorkflowService workflowService)
Parameters:
workflowService - The WorkflowService to set.

getWorkflowService

protected org.alfresco.service.cmr.workflow.WorkflowService getWorkflowService()

setNameMatcher

public void setNameMatcher(org.alfresco.util.NameMatcher nameMatcher)
Parameters:
nameMatcher - The nameMatcher to set.

getNameMatcher

protected org.alfresco.util.NameMatcher getNameMatcher()
Returns:
nameMatcher

setFormsService

public void setFormsService(FormsService formsService)
Parameters:
formsService - The FormsService to set.

getFormsService

protected FormsService getFormsService()

setSandboxService

public void setSandboxService(org.alfresco.wcm.sandbox.SandboxService sandboxService)

getSandboxService

protected org.alfresco.wcm.sandbox.SandboxService getSandboxService()

setSandboxFactory

public void setSandboxFactory(org.alfresco.wcm.sandbox.SandboxFactory sandboxFactory)

getSandboxFactory

protected org.alfresco.wcm.sandbox.SandboxFactory getSandboxFactory()

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
See Also:
BaseDialogBean.init(java.util.Map)

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

finish

public java.lang.String finish()
Description copied from interface: IDialogBean
Method handler called when the finish button of the dialog is pressed

Specified by:
finish in interface IDialogBean
Overrides:
finish in class BaseDialogBean
Returns:
The outcome to return

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
See Also:
BaseDialogBean.getFinishButtonDisabled()

getComment

public java.lang.String getComment()
Returns:
Returns the workflow comment.

setComment

public void setComment(java.lang.String comment)
Parameters:
comment - The workflow comment to set.

getLabel

public java.lang.String getLabel()
Returns:
Returns the snapshot label.

setLabel

public void setLabel(java.lang.String label)
Parameters:
label - The snapshot label to set.

getDefaultExpireDate

public java.util.Date getDefaultExpireDate()
Returns:
The default expiration date

setDefaultExpireDate

public void setDefaultExpireDate(java.util.Date defaultExpireDate)
Parameters:
defaultExpireDate - The default expiration date

isEnteringExpireDate

public boolean isEnteringExpireDate()
Returns:
true if a default expiration date is being entered

getExpiredDates

public java.util.Map getExpiredDates()
Returns:
Map of expiration dates for the modified items

getWorkflowSelectedValue

public java.lang.String[] getWorkflowSelectedValue()
Returns:
Returns the workflow Selected Value.

setWorkflowSelectedValue

public void setWorkflowSelectedValue(java.lang.String[] workflowSelectedValue)
Parameters:
workflowSelectedValue - The workflow Selected Value to set.

getLaunchDate

public java.util.Date getLaunchDate()
Returns:
Returns the content launch date

setLaunchDate

public void setLaunchDate(java.util.Date launchDate)
Parameters:
launchDate - The content launch date

isAutoDeploy

public boolean isAutoDeploy()
Returns:
Flag to indicate whether the changes should be deployed upon approval

setAutoDeploy

public void setAutoDeploy(boolean autoDeploy)
Parameters:
autoDeploy - Flag to indicate whether the changes should be deployed upon approval

getWorkflowList

public java.util.List getWorkflowList()
Returns:
List of UIListItem object representing the available workflows for the website

getWorkflowListSize

public int getWorkflowListSize()
Returns:
size of the workflow selection list

getSubmitItems

public java.util.List getSubmitItems()
Returns:
the List of bean items to show in the Submit list

getSubmitItemsSize

public int getSubmitItemsSize()
Returns:
size of the submit list

getWarningItems

public java.util.List getWarningItems()
Returns:
the List of bean items to show in the Warning list

getWarningItemsSize

public int getWarningItemsSize()
Returns:
size of the warning list

setupConfigureWorkflow

public void setupConfigureWorkflow(javax.faces.event.ActionEvent event)
Action method to setup a workflow for dialog context for the current row


getActionWorkflow

public WorkflowConfiguration getActionWorkflow()
Returns:
Returns the action Workflow for dialog context

setActionWorkflow

public void setActionWorkflow(WorkflowConfiguration actionWorkflow)
Parameters:
actionWorkflow - The action Workflow to set for dialog context

applyDefaultExpireDateToAll

public void applyDefaultExpireDateToAll(javax.faces.event.ActionEvent event)
Applies the entered default date to all modified items

Parameters:
event - The event

enterExpireDate

public void enterExpireDate(javax.faces.event.ActionEvent event)
Toggles the enteringExpireDate flag

Parameters:
event - The event


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