com.atlassian.confluence.pages.templates
Class DefaultPageTemplateManager

java.lang.Object
  extended bycom.atlassian.confluence.pages.templates.DefaultPageTemplateManager
All Implemented Interfaces:
PageTemplateManager

public class DefaultPageTemplateManager
extends Object
implements PageTemplateManager


Constructor Summary
DefaultPageTemplateManager()
           
 
Method Summary
 List getGlobalPageTemplates()
           
 PageTemplate getPageTemplate(long id)
           
 PageTemplate getPageTemplate(String name, Space space)
           
 List getPageTemplates(Space space)
           
 List getTemplateVariables(PageTemplate template)
          Todo: use a single proper regexp later!
 String mergeVariables(PageTemplate template, List variables)
           
 void refreshPageTemplate(PageTemplate pageTemplate)
           
 void removeAllPageTemplates(Space space)
           
 void removePageTemplate(PageTemplate page)
           
 void savePageTemplate(PageTemplate pageTemplate, PageTemplate originalTemplate)
           
 void setEventManager(EventManager eventManager)
           
 void setPageTemplateDao(PageTemplateDao pageTemplateDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPageTemplateManager

public DefaultPageTemplateManager()
Method Detail

setPageTemplateDao

public void setPageTemplateDao(PageTemplateDao pageTemplateDao)

savePageTemplate

public void savePageTemplate(PageTemplate pageTemplate,
                             PageTemplate originalTemplate)
Specified by:
savePageTemplate in interface PageTemplateManager

refreshPageTemplate

public void refreshPageTemplate(PageTemplate pageTemplate)
Specified by:
refreshPageTemplate in interface PageTemplateManager

removePageTemplate

public void removePageTemplate(PageTemplate page)
Specified by:
removePageTemplate in interface PageTemplateManager

getPageTemplate

public PageTemplate getPageTemplate(long id)
Specified by:
getPageTemplate in interface PageTemplateManager

getPageTemplate

public PageTemplate getPageTemplate(String name,
                                    Space space)
Specified by:
getPageTemplate in interface PageTemplateManager

getPageTemplates

public List getPageTemplates(Space space)
Specified by:
getPageTemplates in interface PageTemplateManager
Returns:
the list of all templates of the space

getGlobalPageTemplates

public List getGlobalPageTemplates()
Specified by:
getGlobalPageTemplates in interface PageTemplateManager

setEventManager

public void setEventManager(EventManager eventManager)
Specified by:
setEventManager in interface PageTemplateManager

removeAllPageTemplates

public void removeAllPageTemplates(Space space)
Specified by:
removeAllPageTemplates in interface PageTemplateManager

getTemplateVariables

public List getTemplateVariables(PageTemplate template)
Todo: use a single proper regexp later!

Specified by:
getTemplateVariables in interface PageTemplateManager

mergeVariables

public String mergeVariables(PageTemplate template,
                             List variables)
Specified by:
mergeVariables in interface PageTemplateManager


Confluence is developed by Atlassian.