com.xmlserv.app.contentstructure
Class GenericOverviewModule

java.lang.Object
  |
  +--com.xmlserv.app.contentstructure.GenericOverviewModule
All Implemented Interfaces:
BackendModule

public class GenericOverviewModule
extends java.lang.Object
implements BackendModule

This module provides an overview of a contentgroup (including its sub-contentgroups) by returning a listing of the most recent articles in each contentgroup.


Constructor Summary
GenericOverviewModule()
           
 
Method Summary
 boolean isCachable()
          Indicate whether instances may be cached by a ContentManager.
 org.jdom.Element toElement(java.sql.Connection con, java.lang.String context, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest req, SecurityManager securityManager)
          Main processing method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericOverviewModule

public GenericOverviewModule()
Method Detail

toElement

public org.jdom.Element toElement(java.sql.Connection con,
                                  java.lang.String context,
                                  javax.servlet.ServletContext servletContext,
                                  javax.servlet.http.HttpServletRequest req,
                                  SecurityManager securityManager)
                           throws XMLServException
Main processing method. Implement isCachable() according to thread-safety of this method.
Specified by:
toElement in interface BackendModule
Parameters:
con - The DB connection.
context - The context String (the location where the module is integrated)
servletContext - The Servlet context.
req - The HTTP request.
securityManager - The SecurityManager instance.
Returns:
A JDOM Element.
Throws:
XMLServException - On any error.

isCachable

public boolean isCachable()
Indicate whether instances may be cached by a ContentManager.
Specified by:
isCachable in interface BackendModule
Returns:
true if the instance is cachable, false otherwise.