public class DefaultModelHelper extends Object
See http://www.alfresco.org/mediawiki/index.php/Template_Guide for details
Modifier and Type | Field and Description |
---|---|
static TemplateImageResolver |
imageResolver
Template Image resolver helper
|
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
buildDefaultModel(ServiceRegistry services,
User user,
org.alfresco.service.cmr.repository.NodeRef template)
Construct the default FreeMarker template model.
|
static Map<String,Object> |
buildDefaultModel(ServiceRegistry services,
User user,
org.alfresco.service.cmr.repository.NodeRef template,
TemplateImageResolver resolver)
Construct the default FreeMarker template model.
|
public static final TemplateImageResolver imageResolver
public static Map<String,Object> buildDefaultModel(ServiceRegistry services, User user, org.alfresco.service.cmr.repository.NodeRef template)
Other root level objects such as the current Space or Document are generally added by the appropriate bean responsible for provided access to those nodes.
Uses the default TemplateImageResolver instance to resolve icons - assumes that the client has a valid FacesContext.
See http://www.alfresco.org/mediawiki/index.php/Template_Guide for details
public static Map<String,Object> buildDefaultModel(ServiceRegistry services, User user, org.alfresco.service.cmr.repository.NodeRef template, TemplateImageResolver resolver)
Other root level objects such as the current Space or Document are generally added by the appropriate bean responsible for provided access to those nodes.
See http://www.alfresco.org/mediawiki/index.php/Template_Guide for details
Copyright © 2005–2017 Alfresco Software. All rights reserved.