info.magnolia.rendering.template.assignment
Interface TemplateDefinitionAssignment

All Known Implementing Classes:
MetaDataBasedTemplateDefinitionAssignment

public interface TemplateDefinitionAssignment

Knows which template to use for the rendering of the content.

Version:
$Id$

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)
           
 

Method Detail

getAssignedTemplate

String getAssignedTemplate(javax.jcr.Node content)
                           throws javax.jcr.RepositoryException
Returns the id of the template assigned to a node or null if none has been assigned.

Throws:
javax.jcr.RepositoryException

getAssignedTemplateDefinition

TemplateDefinition getAssignedTemplateDefinition(javax.jcr.Node content)
                                                 throws info.magnolia.registry.RegistrationException
Throws:
info.magnolia.registry.RegistrationException

getDefaultTemplate

TemplateDefinition getDefaultTemplate(javax.jcr.Node content)

getAvailableTemplates

Collection<TemplateDefinition> getAvailableTemplates(javax.jcr.Node content)


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.