|
|||||||||
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.workflow.ManageTaskDialog
public class ManageTaskDialog
Bean implementation for the "Manage Task" dialog.
Nested Class Summary | |
---|---|
protected class |
ManageTaskDialog.TaskCompleteResolver
Property resolver to determine if the given node has been flagged as complete |
Field Summary | |
---|---|
protected static java.lang.String |
CLIENT_ID_PREFIX
|
protected ManageTaskDialog.TaskCompleteResolver |
completeResolver
|
protected static java.lang.String |
ID_PREFIX
|
protected boolean |
isItemBeingAdded
|
protected java.lang.String[] |
itemsToAdd
|
protected UIRichList |
packageItemsRichList
|
protected java.util.List |
packageItemsToAdd
|
protected java.util.List |
packageItemsToRemove
|
protected java.util.List |
resources
|
protected Node |
taskNode
|
protected org.alfresco.service.cmr.repository.NodeRef |
workflowPackage
|
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean |
---|
browseBean, isFinished, navigator, parameters |
Constructor Summary | |
---|---|
ManageTaskDialog()
|
Method Summary | |
---|---|
protected void |
addAVMNode(AVMNode node)
|
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 java.lang.String |
finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs the actual processing for the wizard. |
java.util.List |
getAdditionalButtons()
Returns a list of additional buttons to display in the dialog. |
protected org.alfresco.service.cmr.avm.AVMService |
getAvmService()
|
protected org.alfresco.service.cmr.avmsync.AVMSyncService |
getAvmSyncService()
|
java.lang.String |
getContainerDescription()
Returns the description to be used for the dialog |
java.lang.String |
getContainerTitle()
Returns the title to be used for the dialog |
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 |
java.lang.String[] |
getItemsToAdd()
Returns a String array of NodeRef's that are being added to the workflow package |
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 |
java.util.List |
getResources()
Returns a list of resources associated with this task i.e. |
Node |
getTaskNode()
Returns the Node representing the task |
protected org.alfresco.wcm.webproject.WebProjectService |
getWebProjectService()
|
java.lang.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(java.util.Map 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 |
java.lang.String |
returnOwnership()
|
void |
setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
Sets the avm service to use |
void |
setAvmSyncService(org.alfresco.service.cmr.avmsync.AVMSyncService avmSyncService)
Sets the avm sync service to use |
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 |
setWebProjectService(org.alfresco.wcm.webproject.WebProjectService wpService)
|
void |
setWorkflowService(org.alfresco.service.cmr.workflow.WorkflowService workflowService)
Sets the workflow service to use |
java.lang.String |
takeOwnership()
|
void |
togglePackageItemComplete(javax.faces.event.ActionEvent event)
Toggles the complete flag for a workflow package item |
java.lang.String |
transition()
|
protected void |
updateResources()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Node taskNode
protected org.alfresco.service.cmr.repository.NodeRef workflowPackage
protected java.util.List resources
protected ManageTaskDialog.TaskCompleteResolver completeResolver
protected UIRichList packageItemsRichList
protected java.util.List packageItemsToAdd
protected java.util.List packageItemsToRemove
protected java.lang.String[] itemsToAdd
protected boolean isItemBeingAdded
protected static final java.lang.String ID_PREFIX
protected static final java.lang.String CLIENT_ID_PREFIX
Constructor Detail |
---|
public ManageTaskDialog()
Method Detail |
---|
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.util.List getAdditionalButtons()
IDialogBean
getAdditionalButtons
in interface IDialogBean
getAdditionalButtons
in class BaseDialogBean
public java.lang.String getFinishButtonLabel()
IDialogBean
getFinishButtonLabel
in interface IDialogBean
getFinishButtonLabel
in class BaseDialogBean
public boolean getFinishButtonDisabled()
IDialogBean
getFinishButtonDisabled
in interface IDialogBean
getFinishButtonDisabled
in class BaseDialogBean
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 java.lang.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 java.lang.String takeOwnership()
public java.lang.String returnOwnership()
public java.lang.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 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 Node getTaskNode()
public boolean isPooledTask()
public org.alfresco.service.cmr.workflow.WorkflowInstance getWorkflowInstance()
public java.lang.String getWorkflowDefinitionImageUrl()
public java.lang.String getPackageActionGroup()
public java.lang.String getPackageItemActionGroup()
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()
public void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
avmService
- AvmService instanceprotected org.alfresco.service.cmr.avm.AVMService getAvmService()
public void setAvmSyncService(org.alfresco.service.cmr.avmsync.AVMSyncService avmSyncService)
avmSyncService
- AvmSycService instanceprotected org.alfresco.service.cmr.avmsync.AVMSyncService getAvmSyncService()
public void setWebProjectService(org.alfresco.wcm.webproject.WebProjectService wpService)
wpService
- The WebProjectService to set.protected org.alfresco.wcm.webproject.WebProjectService getWebProjectService()
protected org.alfresco.service.cmr.workflow.WorkflowTask getWorkflowTask()
protected org.alfresco.service.cmr.workflow.WorkflowTransition[] getWorkflowTransitions()
protected void addAVMNode(AVMNode node)
protected void createAndAddNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
protected void updateResources()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |