Skip navigation links


com.bea.content.federated.events
Class ContentEventFactory

java.lang.Object
  extended by com.bea.content.federated.events.ContentEventFactory


public class ContentEventFactory
extends Object

A Factory class which helps create the content management events. All events generated by the CM system should be generated by this class.


Method Summary
static ContentConfigEvent createContentConfigEvent(ContentContext context, String repository, String action, String target)
          Create a ContentConfigEvent
static ContentCreateEvent createContentCreateEvent(ContentContext context, String repository, String nodeId, String nodeName, String path, String status, String contentType)
          Create a ContentCreateEvent
static ContentDeleteEvent createContentDeleteEvent(ContentContext context, String repository, String nodeId, String nodeName, String path, String status, String contentType)
          Create a ContentDeleteEvent
static ContentReIndexEvent createContentReIndexeEvent(ContentContext context, String repositoryName, String path, String typeId, String action)
          Create a ContentCreateEvent
static ContentUpdateEvent createContentUpdateEvent(ContentContext context, String repository, String nodeId, String nodeName, String path, String status, String destination, String action, String contentType)
          Create a ContentUpdateEvent

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

createContentCreateEvent

public static ContentCreateEvent createContentCreateEvent(ContentContext context,
                                                          String repository,
                                                          String nodeId,
                                                          String nodeName,
                                                          String path,
                                                          String status,
                                                          String contentType)
                                                   throws RepositoryException
Create a ContentCreateEvent
Parameters
context - The ContentContext object. Note that if the context does not have a request object in it, the event will be generated with anonymous credentials.
repository - The name of the repository
nodeId - The ID of the node
nodeName - The name of the node
path - The path of the node
status - The workflow status of the node - would be either PUBLISHED or RETIRED
contentType - The object class name associated with the node, if any.
Returns
The ContentCreateEvent
Throws
RepositoryException

createContentConfigEvent

public static ContentConfigEvent createContentConfigEvent(ContentContext context,
                                                          String repository,
                                                          String action,
                                                          String target)
                                                   throws RepositoryException
Create a ContentConfigEvent
Parameters
context - The ContentContext object. Note that if the context does not have a request object in it, the event will be generated with anonymous credentials.
repository - The name of the repository
action - The action for the Config event
target - Optional parameter which indicates the target on which the event is applied [Could be repositoryName, objectClassID or workflowId]
Returns
The ContentConfigEvent
Throws
RepositoryException

createContentUpdateEvent

public static ContentUpdateEvent createContentUpdateEvent(ContentContext context,
                                                          String repository,
                                                          String nodeId,
                                                          String nodeName,
                                                          String path,
                                                          String status,
                                                          String destination,
                                                          String action,
                                                          String contentType)
                                                   throws RepositoryException
Create a ContentUpdateEvent
Parameters
context - The ContentContext object. Note that if the context does not have a request object in it, the event will be generated with anonymous credentials.
repository - The name of the repository
nodeId - The ID of the node
nodeName - The name of the node
path - The path of the node ID
status - The workflow status of the node - would be either PUBLISHED or RETIRED
destination - The destination node id
action - The action taken
contentType - The object class name associated with the node, if any.
Returns
The update event.
Throws
RepositoryException

createContentDeleteEvent

public static ContentDeleteEvent createContentDeleteEvent(ContentContext context,
                                                          String repository,
                                                          String nodeId,
                                                          String nodeName,
                                                          String path,
                                                          String status,
                                                          String contentType)
                                                   throws RepositoryException
Create a ContentDeleteEvent
Parameters
context - The ContentContext object. Note that if the context does not have a request object in it, the event will be generated with anonymous credentials.
repository - The name of the repository
nodeId - The ID of the node
nodeName - The name of the node
path - The path of the node ID
status - The workflow status of the node - would be either PUBLISHED or RETIRED
contentType - The object class name associated with the node, if any.
Returns
The delete event
Throws
RepositoryException

createContentReIndexeEvent

public static ContentReIndexEvent createContentReIndexeEvent(ContentContext context,
                                                             String repositoryName,
                                                             String path,
                                                             String typeId,
                                                             String action)
                                                      throws RepositoryException
Create a ContentCreateEvent
Parameters
context - The ContentContext object. Note that if the context does not have a request object in it, the event will be generated with anonymous credentials.
repositoryName - The name of the repository
path - The path (if any) to index
typeId - The type (if any) to index
action - The index action -- either ContentReIndexEvent.RE_INDEX_PATH or ContentReIndexEvent.RE_INDEX_TYPE
Returns
The ContentCreateEvent
Throws
RepositoryException

Skip navigation links


Copyright © 2010, Oracle. All rights reserved.