mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- first pass at summary screen for create form.
- making workflowdefinition immutable and adding getters so i can access bean properties from jsps. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4391 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -448,6 +448,14 @@ public class CreateFormWizard
|
||||
|
||||
return this.renderingEngineTemplatesDataModel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all configured rendering engine templates.
|
||||
*/
|
||||
public List<RenderingEngineTemplateData> getRenderingEngineTemplates()
|
||||
{
|
||||
return this.renderingEngineTemplates;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the mime type currenty selected
|
||||
@@ -710,6 +718,12 @@ public class CreateFormWizard
|
||||
: defaultWorkflowId[0]);
|
||||
}
|
||||
|
||||
public WorkflowDefinition getDefaultWorkflowDefinition()
|
||||
{
|
||||
return (this.defaultWorkflowId == null
|
||||
? null
|
||||
: this.workflowService.getDefinitionById(this.defaultWorkflowId));
|
||||
}
|
||||
|
||||
public String[] getDefaultWorkflowId()
|
||||
{
|
||||
@@ -740,9 +754,9 @@ public class CreateFormWizard
|
||||
for (WorkflowDefinition workflowDef : workflowDefs)
|
||||
{
|
||||
item = new UIListItem();
|
||||
item.setValue(workflowDef.id);
|
||||
item.setLabel(workflowDef.title);
|
||||
item.setDescription(workflowDef.description);
|
||||
item.setValue(workflowDef.getId());
|
||||
item.setLabel(workflowDef.getTitle());
|
||||
item.setDescription(workflowDef.getDescription());
|
||||
item.setImage(WebResources.IMAGE_WORKFLOW_32);
|
||||
result.add(item);
|
||||
}
|
||||
|
@@ -37,6 +37,9 @@ public interface Form
|
||||
/** the name of the form, which must be unique within the FormsService */
|
||||
public String getName();
|
||||
|
||||
/** the title of the form */
|
||||
public String getTitle();
|
||||
|
||||
/** the description of the form */
|
||||
public String getDescription();
|
||||
|
||||
|
@@ -70,6 +70,13 @@ class FormImpl
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
final NodeService nodeService = this.getServiceRegistry().getNodeService();
|
||||
return (String)nodeService.getProperty(this.folderNodeRef,
|
||||
ContentModel.PROP_NAME);
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
final NodeService nodeService = this.getServiceRegistry().getNodeService();
|
||||
return (String)nodeService.getProperty(this.folderNodeRef,
|
||||
|
@@ -32,10 +32,13 @@ import org.w3c.dom.Document;
|
||||
public interface RenderingEngineTemplate
|
||||
extends Serializable
|
||||
{
|
||||
/** the name of the form, which must be unique within the FormsService */
|
||||
/** the name of the rendering engine template */
|
||||
public String getName();
|
||||
|
||||
/** the description of the form */
|
||||
/** the title of the rendering engine template */
|
||||
public String getTitle();
|
||||
|
||||
/** the description of the rendering engine template */
|
||||
public String getDescription();
|
||||
|
||||
/** the output path pattern for renditions */
|
||||
|
@@ -73,6 +73,12 @@ public class RenderingEngineTemplateImpl
|
||||
return (String)nodeService.getProperty(this.nodeRef, ContentModel.PROP_NAME);
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
final NodeService nodeService = this.getServiceRegistry().getNodeService();
|
||||
return (String)nodeService.getProperty(this.nodeRef, ContentModel.PROP_TITLE);
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
final NodeService nodeService = this.getServiceRegistry().getNodeService();
|
||||
|
Reference in New Issue
Block a user