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 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(Content node)
          Deprecated.  
 Template getDefaultTemplate(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. The implementor should clear everthing.
protected  void onRegister(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(Content node)
Deprecated. 
Called by the ObservedManager.

Specified by:
onRegister in class ObservedManager

onClear

protected void onClear()
Deprecated. 
Description copied from class: ObservedManager
The implementor should clear everthing. If needed the nodes will get registered.

Specified by:
onClear in class 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(Content node)
Deprecated. 

getAvailableTemplates

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

Returns:
Collection list containing templates as Template objects

getDefaultTemplate

public Template getDefaultTemplate(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.