com.anwrt.anycontent.extensions.page
Class AbstractPageManager

java.lang.Object
  extended bycom.anwrt.anycontent.extensions.page.AbstractPageManager
Direct Known Subclasses:
AdministratorManager, ContributorManager

public abstract class AbstractPageManager
extends java.lang.Object

This class is an abstract ancester for class that manage page extensions such as contributor.
It is base on a configuration file, dividing icons into categories.


Nested Class Summary
protected  class AbstractPageManager.Item
          This class describe an item of a page handle by the page manager.
 
Field Summary
protected  java.util.Map _categories
          The categories of icones
protected  java.lang.String _extensionPointId
          The extensions point id associated to the page manager implementation
protected  java.util.List _orderedCategoriesId
          A list of ordered categroies'id
 
Constructor Summary
AbstractPageManager()
           
 
Method Summary
protected  void configure(Configuration configuration, AbstractPageExtensionPoint apep)
          Configure the page manager
 void init(java.lang.String contextPath)
          Initialize the manager reading the configuration file
 void toSAX(org.xml.sax.ContentHandler ch, Principal principal, java.util.Map objectModel, ServiceManager manager)
          Send the SAX events to build a icon page
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_extensionPointId

protected java.lang.String _extensionPointId
The extensions point id associated to the page manager implementation


_categories

protected java.util.Map _categories
The categories of icones


_orderedCategoriesId

protected java.util.List _orderedCategoriesId
A list of ordered categroies'id

Constructor Detail

AbstractPageManager

public AbstractPageManager()
Method Detail

init

public void init(java.lang.String contextPath)
          throws java.lang.Exception
Initialize the manager reading the configuration file

Parameters:
contextPath - The context path of the servlet
Throws:
java.lang.Exception - if an error occured opening, reading or making the configuration

configure

protected void configure(Configuration configuration,
                         AbstractPageExtensionPoint apep)
                  throws ConfigurationException
Configure the page manager

Parameters:
configuration - The page configuration
apep - The extension point associated to the current implementation of the page manager
Throws:
ConfigurationException - if configuration is incorrect

toSAX

public void toSAX(org.xml.sax.ContentHandler ch,
                  Principal principal,
                  java.util.Map objectModel,
                  ServiceManager manager)
           throws org.xml.sax.SAXException
Send the SAX events to build a icon page

Parameters:
ch - The content handler where to sax events
principal - The current principal to determines rights. Can be null if rights does not have to be checked.
objectModel - The cocoon objectModel
manager - The avalon service manager
Throws:
org.xml.sax.SAXException - If an error occured


Copyright © 2006 Anyware Technologies. All Rights Reserved.