info.magnolia.module.templating
Class TemplateManager

java.lang.Object
  extended by info.magnolia.cms.beans.config.ObservedManager
      extended by info.magnolia.module.templating.TemplateManager

Deprecated. since 4.5, use the TemplateDefinitionRegistry instead

@Singleton
public class TemplateManager
extends info.magnolia.cms.beans.config.ObservedManager

Manages the templates of the system.


Field Summary
 
Fields inherited from class info.magnolia.cms.beans.config.ObservedManager
log, registeredUUIDs
 
Constructor Summary
TemplateManager()
          Deprecated.  
 
Method Summary
 Iterator<Template> getAvailableTemplates()
          Deprecated. Get templates collection.
 Iterator<Template> getAvailableTemplates(info.magnolia.cms.core.Content node)
          Deprecated.  
 Template getDefaultTemplate(info.magnolia.cms.core.Content node)
          Deprecated. Get the Template that could be used for the provided Content as a default.
 Template getInfo(String key, String extension)
          Deprecated. Returns the cached content of the requested template.
static TemplateManager getInstance()
          Deprecated.  
 Template getTemplateDefinition(String key)
          Deprecated. Returns the cached content of the requested template.
protected  void onClear()
          Deprecated.  
protected  void onRegister(info.magnolia.cms.core.Content node)
          Deprecated. Called by the ObservedManager.
 
Methods inherited from class info.magnolia.cms.beans.config.ObservedManager
clear, register, reload, reload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateManager

public TemplateManager()
Deprecated. 
Method Detail

onRegister

protected void onRegister(info.magnolia.cms.core.Content node)
Deprecated. 
Called by the ObservedManager.

Specified by:
onRegister in class info.magnolia.cms.beans.config.ObservedManager

onClear

protected void onClear()
Deprecated. 
Specified by:
onClear in class info.magnolia.cms.beans.config.ObservedManager

getTemplateDefinition

public Template getTemplateDefinition(String key)
Deprecated. 
Returns the cached content of the requested template. TemplateInfo properties:
  1. title - title describing template
  2. type - jsp / servlet
  3. path - jsp / servlet path
  4. description - description of a template

Returns:
TemplateInfo

getInfo

public Template getInfo(String key,
                        String extension)
Deprecated. 
Returns the cached content of the requested template. TemplateInfo properties:
  1. title - title describing template
  2. type - jsp / servlet
  3. path - jsp / servlet path
  4. description - description of a template

Returns:
TemplateInfo

getAvailableTemplates

public Iterator<Template> getAvailableTemplates(info.magnolia.cms.core.Content node)
Deprecated. 

getAvailableTemplates

public Iterator<Template> getAvailableTemplates()
Deprecated. 
Get templates collection.

Returns:
Collection list containing templates as Template objects

getDefaultTemplate

public Template getDefaultTemplate(info.magnolia.cms.core.Content node)
Deprecated. 
Get the Template that could be used for the provided Content as a default.


getInstance

public static TemplateManager getInstance()
Deprecated. 
Returns:
Returns the instance.


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