|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.repository.manager.ResourceEvent
Implements the events known for resources.
Copyright 2004 SAP AG
| Field Summary | |
static int |
ALL
any kind of event... that means: an undefined event! |
static ResourceEvent |
ALL_TEMPLATE
constants for event templates |
static int |
CHECKIN
signals a VersioningManager.checkIn() |
static ResourceEvent |
CHECKIN_TEMPLATE
|
static int |
CHECKOUT
signals a VersioningManager.checkOut() |
static ResourceEvent |
CHECKOUT_TEMPLATE
|
protected java.lang.String |
clientId
Client context asscociated to the event |
static int |
COPY
signals a NamespaceManager.copy() |
static ResourceEvent |
COPY_TEMPLATE
|
protected java.lang.String |
correlationId
Correlationid of the event |
static int |
CREATE_CHILD
signals a NamespaceManager.createChild() |
static ResourceEvent |
CREATE_CHILD_TEMPLATE
|
static int |
CREATE_COLLECTION
signals a NamespaceManager.createCollection() |
static ResourceEvent |
CREATE_COLLECTION_TEMPLATE
|
static int |
CREATE_LINK
signals a NamespaceManager.createLink() |
static ResourceEvent |
CREATE_LINK_TEMPLATE
|
static int |
DELETE
signals a NamespaceManager.delete() |
static ResourceEvent |
DELETE_TEMPLATE
|
static int |
ENABLE_VERSIONING
Signals that versioning was activated for a resource |
static ResourceEvent |
ENABLE_VERSIONING_TEMPLATE
|
static int |
GET
signals a NamespaceManager.getContentInputStream() |
static int |
GET_CHILDREN
signals a NamespaceManager.getChildren() |
static ResourceEvent |
GET_CHILDREN_TEMPLATE
|
static ResourceEvent |
GET_TEMPLATE
|
static int |
LOCK
signals a LockManager.unlock() |
static ResourceEvent |
LOCK_TEMPLATE
|
static int |
MIGRATION
signals a migration |
static ResourceEvent |
MIGRATION_TEMPLATE
|
static int |
MOVE
signals a NamespaceManager.move() |
static ResourceEvent |
MOVE_TEMPLATE
|
protected java.lang.Object |
param
This events parameter(s) |
static int |
PRE_CHECKIN
Before IVersioningManager.checkIn() |
static ResourceEvent |
PRE_CHECKIN_TEMPLATE
|
static int |
PRE_DELETE
Before INamespaceManager.delete() |
static ResourceEvent |
PRE_DELETE_TEMPLATE
|
static int |
PRE_MOVE
Before INamespaceManager.delete() |
static ResourceEvent |
PRE_MOVE_TEMPLATE
|
static int |
PRE_RENAME
Before INamespaceManager.rename() |
static ResourceEvent |
PRE_RENAME_TEMPLATE
|
static int |
PRE_SET
Before IContentManager.updateContent() |
static ResourceEvent |
PRE_SET_TEMPLATE
|
static int |
PROPERTY_DELETE
signals a PropertyManager.delete() |
static ResourceEvent |
PROPERTY_DELETE_TEMPLATE
|
static int |
PROPERTY_GET
signals a PropertyManager.get() |
static ResourceEvent |
PROPERTY_GET_TEMPLATE
|
static int |
PROPERTY_SET
signals a PropertyManager.set() |
static ResourceEvent |
PROPERTY_SET_TEMPLATE
|
static int |
RENAME
signals a NamespaceManager.move() |
static ResourceEvent |
RENAME_TEMPLATE
|
protected IResource |
resource
This events associated resource. |
protected IResourceContext |
resourceContext
Resource context asscociated to the event |
static int |
SET
signals a NamespaceManager.updateContent() |
static ResourceEvent |
SET_TEMPLATE
|
protected int |
type
This events type. |
static int |
UNDO_CHECKOUT
Signals a VersioningManager.undoCheckOut() |
static ResourceEvent |
UNDO_CHECKOUT_TEMPLATE
|
protected java.lang.String |
uniqueId
Unique id of the event |
static int |
UNLOCK
signals a LockManager.lock() |
static ResourceEvent |
UNLOCK_TEMPLATE
|
static int |
UPDATE_LINK
signals a NamespaceManager.updateLink() |
static ResourceEvent |
UPDATE_LINK_TEMPLATE
|
| Constructor Summary | |
ResourceEvent(int type,
IResource resource)
Create resource event from type and resource. |
|
ResourceEvent(int type,
IResource resource,
java.lang.Object param)
Create resource event from type and resource. |
|
ResourceEvent(IResource resource,
int type)
Create resource event based on resource event type and resource. |
|
ResourceEvent(IResource resource,
int type,
java.lang.Object param)
Create resource event based on resource event type and resource. |
|
ResourceEvent(IResource resource,
int type,
java.lang.String correlationId)
Create resource event based on resource event type and resource. |
|
ResourceEvent(IResource resource,
int type,
java.lang.String correlationId,
java.lang.Object param)
Create resource event from type and resource. |
|
| Method Summary | |
java.lang.String |
getClientId()
Returns the client identifier used when the event was build. |
java.lang.String |
getCorrelationId()
Get correlation id of event. |
java.lang.String |
getDescription()
|
java.lang.String |
getDescription(java.util.Locale locale)
|
java.lang.Object |
getParameter()
Returns the event's parameter |
java.lang.Object |
getReceiverProperty(java.lang.String name)
Returns the property with the specified name. |
IResource |
getResource()
Get a reference to the IResource , that caused the event. |
IResourceContext |
getResourceContext()
Returns the resource context used when the event was build. |
int |
getType()
Returns the event's type |
java.lang.String |
getUniqueId()
Get unique id of event. |
boolean |
isLike(IEvent template)
Compares this event with another event for equality or some kind of "similarity". |
void |
setReceiverProperty(java.lang.String name,
java.lang.Object value)
Stores a property (name/value pair) at this event. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int ALL
public static final int UNLOCK
public static final int LOCK
public static final int PROPERTY_DELETE
public static final int PROPERTY_SET
public static final int PROPERTY_GET
public static final int DELETE
public static final int CREATE_CHILD
public static final int CREATE_COLLECTION
public static final int CREATE_LINK
public static final int UPDATE_LINK
public static final int SET
public static final int GET
public static final int GET_CHILDREN
public static final int MOVE
public static final int RENAME
public static final int COPY
public static final int CHECKOUT
public static final int CHECKIN
public static final int UNDO_CHECKOUT
public static final int ENABLE_VERSIONING
public static final int PRE_SET
public static final int PRE_DELETE
public static final int PRE_RENAME
public static final int PRE_MOVE
public static final int PRE_CHECKIN
public static final int MIGRATION
public static final ResourceEvent ALL_TEMPLATE
public static final ResourceEvent UNLOCK_TEMPLATE
public static final ResourceEvent LOCK_TEMPLATE
public static final ResourceEvent PROPERTY_DELETE_TEMPLATE
public static final ResourceEvent PROPERTY_SET_TEMPLATE
public static final ResourceEvent PROPERTY_GET_TEMPLATE
public static final ResourceEvent DELETE_TEMPLATE
public static final ResourceEvent CREATE_CHILD_TEMPLATE
public static final ResourceEvent CREATE_COLLECTION_TEMPLATE
public static final ResourceEvent CREATE_LINK_TEMPLATE
public static final ResourceEvent UPDATE_LINK_TEMPLATE
public static final ResourceEvent SET_TEMPLATE
public static final ResourceEvent GET_TEMPLATE
public static final ResourceEvent GET_CHILDREN_TEMPLATE
public static final ResourceEvent MOVE_TEMPLATE
public static final ResourceEvent RENAME_TEMPLATE
public static final ResourceEvent COPY_TEMPLATE
public static final ResourceEvent CHECKOUT_TEMPLATE
public static final ResourceEvent CHECKIN_TEMPLATE
public static final ResourceEvent UNDO_CHECKOUT_TEMPLATE
public static final ResourceEvent ENABLE_VERSIONING_TEMPLATE
public static final ResourceEvent PRE_SET_TEMPLATE
public static final ResourceEvent PRE_DELETE_TEMPLATE
public static final ResourceEvent PRE_RENAME_TEMPLATE
public static final ResourceEvent PRE_MOVE_TEMPLATE
public static final ResourceEvent PRE_CHECKIN_TEMPLATE
public static final ResourceEvent MIGRATION_TEMPLATE
protected final int type
protected final IResource resource
protected IResourceContext resourceContext
protected final java.lang.String clientId
protected final java.lang.String uniqueId
protected final java.lang.String correlationId
protected final java.lang.Object param
| Constructor Detail |
public ResourceEvent(int type,
IResource resource)
type - The type for this event (action).resource - The resource that caused the event.
public ResourceEvent(int type,
IResource resource,
java.lang.Object param)
type - The type for this event (action).resource - The resource that caused the event.param - Additional parameter(s):RIDIRidList of all deleted RIDa - that is the
identifier of the collection and all its children. The repository
manager is not required to provide this list.RIDRID
public ResourceEvent(IResource resource,
int type)
resource - resource that caused the eventtype - type for this event (action)
public ResourceEvent(IResource resource,
int type,
java.lang.String correlationId)
resource - resource that caused the eventtype - type for this event (action)correlationId - (unique event) id to which this event is related
public ResourceEvent(IResource resource,
int type,
java.lang.Object param)
resource - resource that caused the eventtype - type for this event (action)param - additional parameter(s):RIDIRidList of all deleted RIDa - that is the
identifier of the collection and all its children. The repository
manager is not required to provide this list.RIDRID
public ResourceEvent(IResource resource,
int type,
java.lang.String correlationId,
java.lang.Object param)
resource - resource that caused the eventtype - type for this event (action)correlationId - (unique event) id to which this event is relatedparam - additional parameter(s):RIDIRidList of all deleted RIDa - that is the
identifier of the collection and all its children. The repository
manager is not required to provide this list.RIDRID| Method Detail |
public IResource getResource()
IResourceEventIResource , that caused the event.getResource in interface IResourceEventcom.sapportals.wcm.repository.manager.IResourceEventIResource Resource, that caused the event.public IResourceContext getResourceContext()
public java.lang.String getClientId()
public java.lang.String getUniqueId()
public java.lang.String getCorrelationId()
public int getType()
IEventgetType in interface IEventcom.sapportals.wcm.util.events.IEventpublic boolean isLike(IEvent template)
IEventisLike in interface IEventcom.sapportals.wcm.util.events.IEventtemplate - The other event to compare with.public java.lang.String getDescription()
getDescription in interface IEventpublic java.lang.String getDescription(java.util.Locale locale)
getDescription in interface IEventpublic java.lang.Object getReceiverProperty(java.lang.String name)
setReceiverProperty(String, Object).name - TBD: Description of the incoming method parameter
public void setReceiverProperty(java.lang.String name,
java.lang.Object value)
getReceiverProperty(String). Note: "subsequent
receivers" of a synchronous reveicer R are:name - receiverProperty to be setvalue - receiverProperty to be setpublic java.lang.Object getParameter()
IEventgetParameter in interface IEventcom.sapportals.wcm.util.events.IEventpublic java.lang.String toString()
toString in class java.lang.Object
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||