- 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:
Ariel Backenroth
2006-11-17 20:51:01 +00:00
parent 906874b537
commit 19facbdd97
9 changed files with 142 additions and 19 deletions

View File

@@ -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);
}

View File

@@ -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();

View File

@@ -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,

View File

@@ -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 */

View File

@@ -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();