public class ManageTaskDialog extends BaseDialogBean
Modifier and Type | Class and Description |
---|---|
protected class |
ManageTaskDialog.TaskCompleteResolver
Property resolver to determine if the given node has been flagged as
complete
|
Modifier and Type | Field and Description |
---|---|
protected static String |
CLIENT_ID_PREFIX |
protected ManageTaskDialog.TaskCompleteResolver |
completeResolver |
protected static String |
ID_PREFIX |
protected boolean |
isItemBeingAdded |
protected String[] |
itemsToAdd |
protected UIRichList |
packageItemsRichList |
protected List<String> |
packageItemsToAdd |
protected List<String> |
packageItemsToRemove |
protected List<Node> |
resources |
protected Node |
taskNode |
protected org.alfresco.service.cmr.repository.NodeRef |
workflowPackage |
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
ManageTaskDialog() |
Modifier and Type | Method and Description |
---|---|
void |
addPackageItems(ActionEvent event)
Adds an item to the workflow package
|
void |
cancelAddPackageItems(ActionEvent event)
Cancels the adding of an item to the workflow package
|
protected void |
createAndAddNode(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
List<DialogsConfigElement.DialogButtonConfig> |
getAdditionalButtons()
Returns a list of additional buttons to display in the dialog.
|
String |
getContainerDescription()
Returns the description to be used for the dialog
|
String |
getContainerTitle()
Returns the title to be used for the dialog
|
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
String |
getFinishButtonLabel()
Returns the label to use for the finish button
|
String[] |
getItemsToAdd()
Returns a String array of NodeRef's that are being added to the workflow
package
|
String |
getPackageActionGroup()
Returns the action group the current task uses for the workflow package
|
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
|
List<Node> |
getResources()
Returns a list of resources associated with this task i.e.
|
Node |
getTaskNode()
Returns the Node representing the task
|
String |
getWorkflowDefinitionImageUrl()
Returns the URL to the Workflow Definition Image of the current task
|
WorkflowInstance |
getWorkflowInstance()
Returns the WorkflowInstance that the current task belongs to
|
protected WorkflowService |
getWorkflowService() |
protected WorkflowTask |
getWorkflowTask() |
protected WorkflowTransition[] |
getWorkflowTransitions() |
void |
init(Map<String,String> parameters)
Initialises the dialog bean
|
boolean |
isItemBeingAdded()
Determines whether an item is currently being added to the workflow
package
|
boolean |
isPooledTask()
Returns whether this is a pooled task
|
void |
prepareForAdd(ActionEvent event)
Prepares the dialog to allow the user to add an item to the workflow
package
|
void |
removePackageItem(ActionEvent event)
Removes an item from the workflow package
|
void |
restored()
Called when the dialog is restored after a nested dialog is closed
|
String |
returnOwnership() |
void |
setItemsToAdd(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 |
setWorkflowService(WorkflowService workflowService)
Sets the workflow service to use
|
String |
takeOwnership() |
void |
togglePackageItemComplete(ActionEvent event)
Toggles the complete flag for a workflow package item
|
String |
transition() |
protected void |
updateResources() |
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getCancelButtonLabel, getCheckOutCheckInService, getContainerSubTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
protected Node taskNode
protected org.alfresco.service.cmr.repository.NodeRef workflowPackage
protected ManageTaskDialog.TaskCompleteResolver completeResolver
protected UIRichList packageItemsRichList
protected String[] itemsToAdd
protected boolean isItemBeingAdded
protected static final String ID_PREFIX
protected static final String CLIENT_ID_PREFIX
public void init(Map<String,String> 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 String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
public List<DialogsConfigElement.DialogButtonConfig> getAdditionalButtons()
IDialogBean
getAdditionalButtons
in interface IDialogBean
getAdditionalButtons
in class BaseDialogBean
public String getFinishButtonLabel()
IDialogBean
getFinishButtonLabel
in interface IDialogBean
getFinishButtonLabel
in class BaseDialogBean
public boolean getFinishButtonDisabled()
IDialogBean
getFinishButtonDisabled
in interface IDialogBean
getFinishButtonDisabled
in class BaseDialogBean
public 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 String getContainerDescription()
IDialogBean
If this returns null the DialogManager will lookup the description via the dialog configuration
getContainerDescription
in interface IDialogBean
getContainerDescription
in class BaseDialogBean
public String takeOwnership()
public String returnOwnership()
public String transition()
public void prepareForAdd(ActionEvent event)
event
- The eventpublic void cancelAddPackageItems(ActionEvent event)
event
- The eventpublic void addPackageItems(ActionEvent event)
event
- The eventpublic void removePackageItem(ActionEvent event)
event
- The event containing a reference to the item to removepublic void togglePackageItemComplete(ActionEvent event)
event
- The event containing a reference to the item to toggle the
status forpublic String[] getItemsToAdd()
public void setItemsToAdd(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 Node getTaskNode()
public boolean isPooledTask()
public WorkflowInstance getWorkflowInstance()
public String getWorkflowDefinitionImageUrl()
public String getPackageActionGroup()
public String getPackageItemActionGroup()
public List<Node> getResources()
public void setWorkflowService(WorkflowService workflowService)
workflowService
- WorkflowService instanceprotected WorkflowService getWorkflowService()
protected WorkflowTask getWorkflowTask()
protected WorkflowTransition[] getWorkflowTransitions()
protected void createAndAddNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
protected void updateResources()
Copyright © 2005–2017 Alfresco Software. All rights reserved.