@Singleton public class MetaDataBasedTemplateDefinitionAssignment extends Object implements TemplateDefinitionAssignment
Constructor and Description |
---|
MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry templateDefinitionRegistry) |
MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry templateDefinitionRegistry,
SimpleTranslator simpleTranslator)
Deprecated.
since 5.3.8 - please use again constructor
MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry) . |
Modifier and Type | Method and Description |
---|---|
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) |
@Inject public MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry templateDefinitionRegistry)
@Deprecated public MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry templateDefinitionRegistry, SimpleTranslator simpleTranslator)
MetaDataBasedTemplateDefinitionAssignment(TemplateDefinitionRegistry)
.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 RegistrationException
getAssignedTemplateDefinition
in interface TemplateDefinitionAssignment
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)
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.