Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ru.gammalabs.ice.publishing.framework
Class PageTemplateManager  view PageTemplateManager download PageTemplateManager.java

java.lang.Object
  extended byru.gammalabs.ice.framework.RepresentativeSupport
      extended byru.gammalabs.ice.publishing.framework.AbstractTemplateManager
          extended byru.gammalabs.ice.publishing.framework.PageTemplateManager
All Implemented Interfaces:
ru.gammalabs.ice.framework.Representative, TemplateManager

public class PageTemplateManager
extends AbstractTemplateManager

Page Template Manager. The class is used for handling page Templates.

Version:
1.1

Field Summary
private static org.apache.log4j.Category log
          For debugging.
protected static java.util.Map templates
          HashMap containing all of the templates.
 
Fields inherited from class ru.gammalabs.ice.framework.RepresentativeSupport
 
Constructor Summary
PageTemplateManager()
           
 
Method Summary
 void add(Template template)
           
private  ru.gammalabs.ice.publishing.framework.dao.PageTemplateManagerDAO getPageTemplateManagerDAO(java.sql.Connection connection)
           
protected  java.util.Map getTemplates()
           
private  void loadTemplates()
          Loads all of the templates.
 void remove(java.lang.String name)
           
 void update(java.lang.String name, Template template)
           
 
Methods inherited from class ru.gammalabs.ice.publishing.framework.AbstractTemplateManager
checkPermission, getAll, getById, getById, getByName, isUnique
 
Methods inherited from class ru.gammalabs.ice.framework.RepresentativeSupport
getActor, setActor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Category log
For debugging.


templates

protected static java.util.Map templates
HashMap containing all of the templates. If there are no templates, templates should be an empty HashMap. If templates equals null, that means that templates haven't been loaded yet.

Constructor Detail

PageTemplateManager

public PageTemplateManager()
Method Detail

getTemplates

protected java.util.Map getTemplates()
Specified by:
getTemplates in class AbstractTemplateManager

loadTemplates

private void loadTemplates()
Loads all of the templates.


add

public void add(Template template)
         throws PageTemplateManagerException,
                ru.gammalabs.ice.security.AccessDeniedException
Specified by:
add in interface TemplateManager
Specified by:
add in class AbstractTemplateManager

update

public void update(java.lang.String name,
                   Template template)
            throws PageTemplateManagerException,
                   ru.gammalabs.ice.security.AccessDeniedException
Specified by:
update in interface TemplateManager
Specified by:
update in class AbstractTemplateManager

remove

public void remove(java.lang.String name)
            throws PageTemplateManagerException,
                   ru.gammalabs.ice.security.AccessDeniedException
Specified by:
remove in interface TemplateManager
Specified by:
remove in class AbstractTemplateManager

getPageTemplateManagerDAO

private ru.gammalabs.ice.publishing.framework.dao.PageTemplateManagerDAO getPageTemplateManagerDAO(java.sql.Connection connection)