mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. Create Web Project wizard now reads default selections
- for file patterns, templates and rendering file patterns from model as persisted by the Create Form Wizard . Some UI tidy ups git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4356 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -978,7 +978,7 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
||||
private String description;
|
||||
private WorkflowWrapper workflow;
|
||||
private String filenamePattern;
|
||||
private List<PresentationTemplate> templates = new ArrayList<PresentationTemplate>(4);
|
||||
private List<PresentationTemplate> templates = null;
|
||||
|
||||
FormWrapper(Form form)
|
||||
{
|
||||
@@ -1037,6 +1037,10 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
||||
*/
|
||||
public String getFilenamePattern()
|
||||
{
|
||||
if (this.filenamePattern == null)
|
||||
{
|
||||
this.filenamePattern = this.form.getOutputPathPattern();
|
||||
}
|
||||
return this.filenamePattern;
|
||||
}
|
||||
|
||||
@@ -1053,6 +1057,15 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
||||
*/
|
||||
public List<PresentationTemplate> getTemplates()
|
||||
{
|
||||
if (this.templates == null)
|
||||
{
|
||||
List<RenderingEngineTemplate> templates = this.form.getRenderingEngineTemplates();
|
||||
this.templates = new ArrayList<PresentationTemplate>(templates.size());
|
||||
for (RenderingEngineTemplate template : templates)
|
||||
{
|
||||
this.templates.add(new PresentationTemplate(template));
|
||||
}
|
||||
}
|
||||
return this.templates;
|
||||
}
|
||||
|
||||
@@ -1071,9 +1084,9 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
||||
{
|
||||
String none = '<' + Application.getMessage(FacesContext.getCurrentInstance(), MSG_NONE) + '>';
|
||||
return MessageFormat.format(Application.getMessage(FacesContext.getCurrentInstance(), MSG_FORM_SUMMARY),
|
||||
this.workflow != null ? this.workflow.name : none,
|
||||
this.filenamePattern != null ? this.filenamePattern : none,
|
||||
this.templates != null ? this.templates.size() : 0);
|
||||
getWorkflow() != null ? this.workflow.name : none,
|
||||
getFilenamePattern() != null ? this.filenamePattern : none,
|
||||
getTemplates() != null ? this.templates.size() : 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1087,6 +1100,11 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
||||
private String description;
|
||||
private String filenamePattern;
|
||||
|
||||
public PresentationTemplate(RenderingEngineTemplate ret)
|
||||
{
|
||||
this(ret, null);
|
||||
}
|
||||
|
||||
public PresentationTemplate(RenderingEngineTemplate ret, String filenamePattern)
|
||||
{
|
||||
this.ret = ret;
|
||||
@@ -1121,6 +1139,10 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
||||
*/
|
||||
public String getFilenamePattern()
|
||||
{
|
||||
if (this.filenamePattern == null)
|
||||
{
|
||||
this.filenamePattern = ret.getOutputPathPattern();
|
||||
}
|
||||
return this.filenamePattern;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user