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(javax.faces.event.ActionEvent event)
Adds an item to the workflow package
|
void |
cancelAddPackageItems(javax.faces.event.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(javax.faces.context.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
|
org.alfresco.service.cmr.workflow.WorkflowInstance |
getWorkflowInstance()
Returns the WorkflowInstance that the current task belongs to
|
protected org.alfresco.service.cmr.workflow.WorkflowService |
getWorkflowService() |
protected org.alfresco.service.cmr.workflow.WorkflowTask |
getWorkflowTask() |
protected org.alfresco.service.cmr.workflow.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(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
|
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(org.alfresco.service.cmr.workflow.WorkflowService workflowService)
Sets the workflow service to use
|
String |
takeOwnership() |
void |
togglePackageItemComplete(javax.faces.event.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, setSearchServiceprotected 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)
IDialogBeaninit in interface IDialogBeaninit in class BaseDialogBeanparameters - Map of parameters for the dialogpublic void restored()
IDialogBeanrestored in interface IDialogBeanrestored in class BaseDialogBeanprotected String finishImpl(javax.faces.context.FacesContext context, String outcome) throws Exception
BaseDialogBeanfinishImpl in class BaseDialogBeancontext - FacesContextoutcome - The default outcomeExceptionpublic List<DialogsConfigElement.DialogButtonConfig> getAdditionalButtons()
IDialogBeangetAdditionalButtons in interface IDialogBeangetAdditionalButtons in class BaseDialogBeanpublic String getFinishButtonLabel()
IDialogBeangetFinishButtonLabel in interface IDialogBeangetFinishButtonLabel in class BaseDialogBeanpublic boolean getFinishButtonDisabled()
IDialogBeangetFinishButtonDisabled in interface IDialogBeangetFinishButtonDisabled in class BaseDialogBeanpublic String getContainerTitle()
IDialogBeanIf this returns null the DialogManager will lookup the title via the dialog configuration
getContainerTitle in interface IDialogBeangetContainerTitle in class BaseDialogBeanpublic String getContainerDescription()
IDialogBeanIf this returns null the DialogManager will lookup the description via the dialog configuration
getContainerDescription in interface IDialogBeangetContainerDescription in class BaseDialogBeanpublic String takeOwnership()
public String returnOwnership()
public String transition()
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 void togglePackageItemComplete(javax.faces.event.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 org.alfresco.service.cmr.workflow.WorkflowInstance getWorkflowInstance()
public String getWorkflowDefinitionImageUrl()
public String getPackageActionGroup()
public String getPackageItemActionGroup()
public List<Node> getResources()
public void setWorkflowService(org.alfresco.service.cmr.workflow.WorkflowService workflowService)
workflowService - WorkflowService instanceprotected org.alfresco.service.cmr.workflow.WorkflowService getWorkflowService()
protected org.alfresco.service.cmr.workflow.WorkflowTask getWorkflowTask()
protected org.alfresco.service.cmr.workflow.WorkflowTransition[] getWorkflowTransitions()
protected void createAndAddNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
protected void updateResources()
Copyright © 2005–2018 Alfresco Software. All rights reserved.