Class PrivilegedEntityObjectWrapper
java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.templatemodel.PrivilegedEntityObjectWrapper
- All Implemented Interfaces:
TemplateObjectWrapper
@Component
public class PrivilegedEntityObjectWrapper
extends Object
implements TemplateObjectWrapper
Wraps
PrivilegedEntities
in a PrivilegedEntityHashModel
.-
Constructor Summary
ConstructorDescriptionPrivilegedEntityObjectWrapper
(Context context, DefaultDisplayService defaultDisplayService, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
freemarker.template.TemplateModel
wrap
(Object object, TemplateDefaultObjectWrapper defaultObjectWrapper)
-
Constructor Details
-
PrivilegedEntityObjectWrapper
public PrivilegedEntityObjectWrapper(Context context, DefaultDisplayService defaultDisplayService, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager)
-
-
Method Details
-
useInDefaultObjectWrapper
public boolean useInDefaultObjectWrapper()- Specified by:
useInDefaultObjectWrapper
in interfaceTemplateObjectWrapper
-
wrap
public freemarker.template.TemplateModel wrap(Object object, TemplateDefaultObjectWrapper defaultObjectWrapper) throws freemarker.template.TemplateModelException - Specified by:
wrap
in interfaceTemplateObjectWrapper
- Throws:
freemarker.template.TemplateModelException
-
canWrap
- Specified by:
canWrap
in interfaceTemplateObjectWrapper
- Returns:
- true if this implementation can wrap the provided object
-