mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge Content Launch Date (as developed by Gav) from BRANCHES/DEV/WCM_TIMERS
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5666 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -91,6 +91,7 @@ public class SubmitDialog extends BaseDialogBean
|
||||
private String comment;
|
||||
private String label;
|
||||
private String[] workflowSelectedValue;
|
||||
private Date launchDate;
|
||||
|
||||
private List<ItemWrapper> submitItems;
|
||||
private List<ItemWrapper> warningItems;
|
||||
@@ -181,6 +182,7 @@ public class SubmitDialog extends BaseDialogBean
|
||||
this.workflowItems = null;
|
||||
this.workflows = new HashSet<FormWorkflowWrapper>(4);
|
||||
this.workflowSelectedValue = null;
|
||||
this.launchDate = null;
|
||||
|
||||
// walk all the web forms attached the website, and lookup the workflow defaults for each
|
||||
NodeRef websiteRef = this.avmBrowseBean.getWebsite().getNodeRef();
|
||||
@@ -307,6 +309,7 @@ public class SubmitDialog extends BaseDialogBean
|
||||
params.put(WorkflowModel.PROP_WORKFLOW_DESCRIPTION, getComment());
|
||||
params.put(AVMWorkflowUtil.PROP_LABEL, getLabel());
|
||||
params.put(AVMWorkflowUtil.PROP_FROM_PATH, AVMUtil.buildStoreRootPath(this.avmBrowseBean.getSandbox()));
|
||||
params.put(AVMWorkflowUtil.PROP_LAUNCH_DATE, this.launchDate);
|
||||
|
||||
// update start task with submit parameters
|
||||
this.workflowService.updateTask(startTask.id, params, null, null);
|
||||
@@ -441,6 +444,22 @@ public class SubmitDialog extends BaseDialogBean
|
||||
this.workflowSelectedValue = workflowSelectedValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the content launch date
|
||||
*/
|
||||
public Date getLaunchDate()
|
||||
{
|
||||
return this.launchDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param launchDate The content launch date
|
||||
*/
|
||||
public void setLaunchDate(Date launchDate)
|
||||
{
|
||||
this.launchDate = launchDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return List of UIListItem object representing the available workflows for the website
|
||||
*/
|
||||
|
Reference in New Issue
Block a user