|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.dialog.BaseDialogBean
org.alfresco.web.bean.wizard.BaseWizardBean
org.alfresco.web.bean.workflow.StartWorkflowWizard
public class StartWorkflowWizard
Bean implementation for the Start Workflow Wizard.
Field Summary | |
---|---|
protected java.util.List |
availableWorkflows
|
protected java.util.List |
invitationWorkflows
|
protected boolean |
isItemBeingAdded
|
protected java.lang.String[] |
itemsToAdd
|
protected boolean |
nextButtonDisabled
|
protected UIRichList |
packageItemsRichList
|
protected java.util.List |
packageItemsToAdd
|
protected java.lang.String |
previouslySelectedWorkflow
|
protected java.util.List |
publishingWorkflows
|
protected java.util.List |
resources
|
protected java.lang.String |
selectedWorkflow
|
protected Node |
startTaskNode
|
protected java.util.List |
wcmWorkflows
|
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean |
---|
browseBean, isFinished, navigator, parameters |
Constructor Summary | |
---|---|
StartWorkflowWizard()
|
Method Summary | |
---|---|
void |
addPackageItems(javax.faces.event.ActionEvent event)
Adds items to the workflow package |
java.lang.String |
back()
Called when the back button is pressed by the user |
void |
cancelAddPackageItems(javax.faces.event.ActionEvent event)
Cancels the adding of an item to the workflow package |
protected java.lang.String |
finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs the actual processing for the wizard. |
java.lang.String |
getContainerTitle()
Returns the title to be used for the dialog |
boolean |
getHasStartableWorkflows()
Determines whether there are any workflows to start |
org.alfresco.service.cmr.invitation.InvitationService |
getInvitationService()
|
protected java.util.List |
getInvitationServiceWorkflowNames()
Get the Names of the Invitation Service Workflows |
java.lang.String[] |
getItemsToAdd()
Returns a String array of NodeRef's that are being added to the workflow package |
boolean |
getNextButtonDisabled()
Determines whether the next button on the wizard should be disabled |
java.lang.String |
getPackageActionGroup()
Returns the action group the current task uses for the workflow package |
java.lang.String |
getPackageItemActionGroup()
Returns the action group the current task uses for each workflow package item |
UIRichList |
getPackageItemsRichList()
Returns the rich list being used for the workflow package items |
protected java.util.List |
getPublishingWorkflowNames()
Get the names of the publishing workflows |
java.util.List |
getResources()
Returns a list of resources associated with this task i.e. |
java.lang.String |
getSelectedWorkflow()
Returns the workflow selected by the user |
java.util.List |
getStartableWorkflows()
Returns a list of workflows that can be started. |
java.lang.String |
getSummary()
|
Node |
getTaskMetadataNode()
Returns the Node representing the start task metadata required |
protected org.alfresco.service.cmr.repository.NodeService |
getUnprotectedNodeService()
|
protected java.util.List |
getWCMWorkflowNames()
Get the Names of the WCM workflows. |
java.lang.String |
getWorkflowDefinitionImageUrl()
Returns the URL to the Workflow Definition Image of the current task |
protected java.util.Map |
getWorkflows()
|
protected org.alfresco.service.cmr.workflow.WorkflowService |
getWorkflowService()
|
void |
init(java.util.Map parameters)
Initialises the dialog bean |
boolean |
isItemBeingAdded()
Determines whether an item is currently being added to the workflow package |
java.lang.String |
next()
Called when the next button is pressed by the user |
void |
prepareForAdd(javax.faces.event.ActionEvent event)
Prepares the dialog to allow the user to add an item to the workflow package |
void |
removePackageItem(javax.faces.event.ActionEvent event)
Removes an item from the workflow package |
protected void |
resetRichList()
Resets the rich list |
void |
restored()
Called when the dialog is restored after a nested dialog is closed |
void |
setInvitationService(org.alfresco.service.cmr.invitation.InvitationService invitationService)
|
void |
setItemsToAdd(java.lang.String[] itemsToAdd)
Sets the NodeRef's to add as items to the workflow package |
void |
setPackageItemsRichList(UIRichList richList)
Sets the rich list being used for the workflow package items |
void |
setSelectedWorkflow(java.lang.String selectedWorkflow)
Sets the selected workflow |
void |
setUnprotectedNodeService(org.alfresco.service.cmr.repository.NodeService unprotectedNodeService)
|
void |
setWorkflowService(org.alfresco.service.cmr.workflow.WorkflowService workflowService)
Sets the workflow service to use |
Methods inherited from class org.alfresco.web.bean.wizard.BaseWizardBean |
---|
buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonLabel, getStepDescription, getStepTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alfresco.web.bean.dialog.IDialogBean |
---|
cancel, finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getFinishButtonDisabled, getMoreActionsConfigId, isFinished |
Field Detail |
---|
protected java.lang.String selectedWorkflow
protected java.lang.String previouslySelectedWorkflow
protected transient java.util.List availableWorkflows
protected java.util.List wcmWorkflows
protected java.util.List invitationWorkflows
protected java.util.List publishingWorkflows
protected Node startTaskNode
protected java.util.List resources
protected java.util.List packageItemsToAdd
protected UIRichList packageItemsRichList
protected java.lang.String[] itemsToAdd
protected boolean isItemBeingAdded
protected boolean nextButtonDisabled
Constructor Detail |
---|
public StartWorkflowWizard()
Method Detail |
---|
public void setUnprotectedNodeService(org.alfresco.service.cmr.repository.NodeService unprotectedNodeService)
protected org.alfresco.service.cmr.repository.NodeService getUnprotectedNodeService()
protected java.util.Map getWorkflows()
public void init(java.util.Map parameters)
IDialogBean
init
in interface IDialogBean
init
in class BaseDialogBean
parameters
- Map of parameters for the dialogpublic void restored()
IDialogBean
restored
in interface IDialogBean
restored
in class BaseDialogBean
protected java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome) throws java.lang.Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcome
java.lang.Exception
public java.lang.String next()
IWizardBean
next
in interface IWizardBean
next
in class BaseWizardBean
public java.lang.String back()
IWizardBean
back
in interface IWizardBean
back
in class BaseWizardBean
public boolean getNextButtonDisabled()
IWizardBean
getNextButtonDisabled
in interface IWizardBean
getNextButtonDisabled
in class BaseWizardBean
public java.lang.String getContainerTitle()
IDialogBean
If this returns null the DialogManager will lookup the title via the dialog configuration
getContainerTitle
in interface IDialogBean
getContainerTitle
in class BaseDialogBean
public void prepareForAdd(javax.faces.event.ActionEvent event)
event
- The eventpublic void cancelAddPackageItems(javax.faces.event.ActionEvent event)
event
- The eventpublic void addPackageItems(javax.faces.event.ActionEvent event)
event
- The eventpublic void removePackageItem(javax.faces.event.ActionEvent event)
event
- The event containing a reference to the item to removepublic java.lang.String[] getItemsToAdd()
public void setItemsToAdd(java.lang.String[] itemsToAdd)
itemsToAdd
- NodeRef's to add to the workflow packagepublic boolean isItemBeingAdded()
public void setPackageItemsRichList(UIRichList richList)
richList
- The rich list instancepublic UIRichList getPackageItemsRichList()
public java.lang.String getSelectedWorkflow()
public void setSelectedWorkflow(java.lang.String selectedWorkflow)
selectedWorkflow
- The workflow selectedpublic Node getTaskMetadataNode()
public java.lang.String getPackageActionGroup()
public java.lang.String getPackageItemActionGroup()
public java.lang.String getSummary()
public boolean getHasStartableWorkflows()
public java.util.List getStartableWorkflows()
public java.lang.String getWorkflowDefinitionImageUrl()
public java.util.List getResources()
public void setWorkflowService(org.alfresco.service.cmr.workflow.WorkflowService workflowService)
workflowService
- WorkflowService instanceprotected org.alfresco.service.cmr.workflow.WorkflowService getWorkflowService()
protected void resetRichList()
protected java.util.List getWCMWorkflowNames()
protected java.util.List getInvitationServiceWorkflowNames()
protected java.util.List getPublishingWorkflowNames()
public void setInvitationService(org.alfresco.service.cmr.invitation.InvitationService invitationService)
public org.alfresco.service.cmr.invitation.InvitationService getInvitationService()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |