org.apache.lenya.cms.observation
Class RepositoryEventFactory

java.lang.Object
  extended by org.apache.lenya.cms.observation.RepositoryEventFactory

public class RepositoryEventFactory
extends java.lang.Object

Factory to create repository events.


Constructor Summary
RepositoryEventFactory()
           
 
Method Summary
static RepositoryEvent createEvent(org.apache.avalon.framework.service.ServiceManager manager, Document doc, org.apache.avalon.framework.logger.Logger logger, java.lang.Object descriptor)
          Creates a repository event for a node.
static RepositoryEvent createEvent(org.apache.avalon.framework.service.ServiceManager manager, Node node, org.apache.avalon.framework.logger.Logger logger, java.lang.Object descriptor)
          Creates a repository event for a node.
static RepositoryEvent createEvent(org.apache.avalon.framework.service.ServiceManager manager, Session session, org.apache.avalon.framework.logger.Logger logger, java.lang.Object descriptor)
          Creates a repository event for a node.
protected static Document getDocument(org.apache.avalon.framework.service.ServiceManager manager, Node node, org.apache.avalon.framework.logger.Logger logger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryEventFactory

public RepositoryEventFactory()
Method Detail

createEvent

public static final RepositoryEvent createEvent(org.apache.avalon.framework.service.ServiceManager manager,
                                                Session session,
                                                org.apache.avalon.framework.logger.Logger logger,
                                                java.lang.Object descriptor)
Creates a repository event for a node.

Parameters:
manager - The service manager.
session - The session.
logger - The logger.
descriptor - The descriptor.
Returns:
An event.

createEvent

public static final RepositoryEvent createEvent(org.apache.avalon.framework.service.ServiceManager manager,
                                                Document doc,
                                                org.apache.avalon.framework.logger.Logger logger,
                                                java.lang.Object descriptor)
Creates a repository event for a node.

Parameters:
manager - The service manager.
doc - The document.
logger - The logger.
descriptor - The descriptor.
Returns:
An event.

createEvent

public static final RepositoryEvent createEvent(org.apache.avalon.framework.service.ServiceManager manager,
                                                Node node,
                                                org.apache.avalon.framework.logger.Logger logger,
                                                java.lang.Object descriptor)
Creates a repository event for a node.

Parameters:
manager - The service manager.
node - The node.
logger - The logger.
descriptor - The descriptor.
Returns:
An event.

getDocument

protected static final Document getDocument(org.apache.avalon.framework.service.ServiceManager manager,
                                            Node node,
                                            org.apache.avalon.framework.logger.Logger logger)
Parameters:
manager - The service manager.
node - The node.
logger - The logger.
Returns:
The document represented by the node or null if the node doesn't represent a document.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.