|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.rendering.template.assignment.MetaDataBasedTemplateDefinitionAssignment
@Singleton public class MetaDataBasedTemplateDefinitionAssignment
Uses the template id stored in the node's meta data.
Constructor Summary | |
---|---|
MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry templateDefinitionRegistry)
Deprecated. since 5.2.2 - please use MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry, SimpleTranslator) instead. |
|
MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry templateDefinitionRegistry,
info.magnolia.i18nsystem.SimpleTranslator simpleTranslator)
|
Method Summary | |
---|---|
String |
getAssignedTemplate(javax.jcr.Node content)
Returns the id of the template assigned to a node or null if none has been assigned. |
TemplateDefinition |
getAssignedTemplateDefinition(javax.jcr.Node content)
|
Collection<TemplateDefinition> |
getAvailableTemplates(javax.jcr.Node content)
|
TemplateDefinition |
getDefaultTemplate(javax.jcr.Node content)
Get the Template that could be used for the provided content as a default. |
protected boolean |
hasReadAccess(javax.jcr.Node content)
|
protected boolean |
isAvailable(javax.jcr.Node content,
TemplateDefinition templateDefinition)
|
protected boolean |
isTemplateAvailable(javax.jcr.Node content,
TemplateDefinition templateDefinition)
|
protected boolean |
isVisible(TemplateDefinition templateDefinition)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry templateDefinitionRegistry, info.magnolia.i18nsystem.SimpleTranslator simpleTranslator)
@Deprecated public MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry templateDefinitionRegistry)
MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry, SimpleTranslator)
instead.
Method Detail |
---|
public String getAssignedTemplate(javax.jcr.Node content) throws javax.jcr.RepositoryException
TemplateDefinitionAssignment
getAssignedTemplate
in interface TemplateDefinitionAssignment
javax.jcr.RepositoryException
public TemplateDefinition getAssignedTemplateDefinition(javax.jcr.Node content) throws info.magnolia.registry.RegistrationException
getAssignedTemplateDefinition
in interface TemplateDefinitionAssignment
info.magnolia.registry.RegistrationException
public TemplateDefinition getDefaultTemplate(javax.jcr.Node content)
getDefaultTemplate
in interface TemplateDefinitionAssignment
public Collection<TemplateDefinition> getAvailableTemplates(javax.jcr.Node content)
getAvailableTemplates
in interface TemplateDefinitionAssignment
protected boolean isTemplateAvailable(javax.jcr.Node content, TemplateDefinition templateDefinition)
protected boolean isVisible(TemplateDefinition templateDefinition)
protected boolean isAvailable(javax.jcr.Node content, TemplateDefinition templateDefinition)
protected boolean hasReadAccess(javax.jcr.Node content)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |