|
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.service.relation.AbstractRelationWatcher
A basic implementation for a IRelationWatcher .
| Field Summary | |
protected java.lang.String |
id
The relation watcher's unique id. |
protected boolean |
isCreateWatcher
flag to indicate that this watcher want's to be called when a relation was created. |
protected boolean |
isDeleteWatcher
flag to indicate that this watcher want's to be called when a relation is to be deleted. |
protected boolean |
isPropertyDeleteWatcher
flag to indicate that this watcher want's to be called when a property was deleted from a relation. |
protected boolean |
isPropertySetWatcher
flag to indicate that this watcher want's to be called when a property was set for a relation. |
protected boolean |
isSourceChangeWatcher
flag to indicate that this watcher want's to be called when a relation's source operand changed. |
protected boolean |
isSourceCopyWatcher
flag to indicate that this watcher want's to be called when a relation's source operand was copied. |
protected boolean |
isSourceDeleteWatcher
flag to indicate that this watcher want's to be called when a relation's source operand was deleted. |
protected boolean |
isTargetChangeWatcher
flag to indicate that this watcher want's to be called when a relation's target operand changed. |
protected boolean |
isTargetCopyWatcher
flag to indicate that this watcher want's to be called when a relation's target operand was copied. |
protected boolean |
isTargetDeleteWatcher
flag to indicate that this watcher want's to be called when a relation's target operand was deleted. |
| Constructor Summary | |
protected |
AbstractRelationWatcher(java.lang.String id)
Create a relation watcher for a given id, which does nothing. |
| Method Summary | |
boolean |
equals(java.lang.Object object)
Compare two IRelationWatcher s for equality. |
java.lang.String |
getID()
Get a unique ID for this watcher. |
boolean |
isCreateWatcher()
returns true if this watcher is interested in create events. |
boolean |
isDeleteWatcher()
returns true if this watcher is interested in delete events. |
boolean |
isPropertyDeleteWatcher()
returns true if this watcher is interested in delete property events. |
boolean |
isPropertySetWatcher()
returns true if this watcher is interested in set property events. |
boolean |
isSourceChangeWatcher()
returns true if this watcher is interested in source change events. |
boolean |
isSourceCopyWatcher()
returns true if this watcher is interested in source copy events. |
boolean |
isSourceDeleteWatcher()
returns true if this watcher is interested in source delete events. |
boolean |
isTargetChangeWatcher()
returns true if this watcher is interested in target change events. |
boolean |
isTargetCopyWatcher()
returns true if this watcher is interested in target copy events. |
boolean |
isTargetDeleteWatcher()
returns true if this watcher is interested in target delete events. |
void |
onCreate(IRelation relation)
callback when a new relation was created. |
void |
onDelete(IRelation relation)
callback when a relation is about to be deleted. |
void |
onPropertyDelete(IRelation relation,
IPropertyName deletedProperty)
callback when a property was deleted from a relation. |
void |
onPropertySet(IRelation relation,
IProperty setProperty)
callback when a property was set on a relation. |
void |
onSourceChange(IRelation relation,
java.lang.String oldSourceId,
java.lang.String newSourceId)
callback when a relation's source operand rename was detected. (the relation is only changed if automatic change tracking is enabled) |
void |
onSourceChangeDelete(IRelation relation,
java.lang.String oldSourceId)
|
void |
onSourceCopy(IRelation relation,
IRelation originalRelation)
callback when an exisiting relation was copied because the source operand was copied (will happen only, when isSourceCopyTrackingEnabled()
is set for the relation type). |
void |
onSourceDelete(IRelation relation)
callback when a relation source operand was deleted. (the relation will only be deleted if automatic delete tracking is enabled) |
void |
onTargetChange(IRelation relation,
java.lang.String oldTargetId,
java.lang.String newSourceId)
callback when a relation's target operand rename was detected. (the relation is only changed if automatic change tracking is enabled) |
void |
onTargetChangeDelete(IRelation relation,
java.lang.String oldTargetId)
|
void |
onTargetCopy(IRelation relation,
IRelation originalRelation)
callback when an exisiting relation was copied because the target operand was copied (will happen only, when isTargetCopyTrackingEnabled()
is set for the relation type). |
void |
onTargetDelete(IRelation relation)
callback when a relation target operand was deleted. (the relation will only be deleted if automatic delete tracking is enabled) |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String id
protected boolean isCreateWatcher
protected boolean isDeleteWatcher
protected boolean isPropertySetWatcher
protected boolean isPropertyDeleteWatcher
protected boolean isSourceChangeWatcher
protected boolean isTargetChangeWatcher
protected boolean isSourceDeleteWatcher
protected boolean isTargetDeleteWatcher
protected boolean isSourceCopyWatcher
protected boolean isTargetCopyWatcher
| Constructor Detail |
protected AbstractRelationWatcher(java.lang.String id)
id - a String with the id for this watcher. if null
, the classname is used.| Method Detail |
public boolean equals(java.lang.Object object)
IRelationWatcher s for equality. Two watchers are
considered equal if they have the same id (as returned by IRelationWatcher.getID().equals in class java.lang.Objectobject - the Object to compare with this one.true if this watcher has the same id a the other
watcher referenced by the given object.public java.lang.String getID()
IRelationWatchergetID in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherString with the unique id of this watcher.public boolean isCreateWatcher()
IRelationWatcherisCreateWatcher in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherboolean true if onCreate should be
called.public void onCreate(IRelation relation)
IRelationWatcheronCreate in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherrelation - the IRelation which was created.public boolean isDeleteWatcher()
IRelationWatcherisDeleteWatcher in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherboolean true if onDelete should be
called.public void onDelete(IRelation relation)
IRelationWatcheronDelete in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherrelation - the IRelation which is about to be deleted.public boolean isPropertySetWatcher()
IRelationWatcherisPropertySetWatcher in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherboolean true if onPropertySet should be
called.
public void onPropertySet(IRelation relation,
IProperty setProperty)
IRelationWatcheronPropertySet in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherrelation - the IRelation where the property was set.setProperty - TBD: Description of the incoming method parameterpublic boolean isPropertyDeleteWatcher()
IRelationWatcherisPropertyDeleteWatcher in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherboolean true if onPropertyDelete should
be called.
public void onPropertyDelete(IRelation relation,
IPropertyName deletedProperty)
IRelationWatcheronPropertyDelete in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherrelation - the IRelation where the property was deleted.deletedProperty - the IPropertyName of the property that
was deleted from the relation.public boolean isSourceChangeWatcher()
IRelationWatcherisSourceChangeWatcher in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherboolean true if onSourceChange should
be called.
public void onSourceChange(IRelation relation,
java.lang.String oldSourceId,
java.lang.String newSourceId)
IRelationWatcheronSourceChange in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherrelation - the IRelation which was affected.oldSourceId - the String with the old source id.newSourceId - TBD: Description of the incoming method parameterpublic boolean isTargetChangeWatcher()
IRelationWatcherisTargetChangeWatcher in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherboolean true if onTargetChange should
be called.
public void onTargetChange(IRelation relation,
java.lang.String oldTargetId,
java.lang.String newSourceId)
IRelationWatcheronTargetChange in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherrelation - the IRelation which was affected.oldTargetId - the String with the old target id.newSourceId - TBD: Description of the incoming method parameterpublic boolean isSourceDeleteWatcher()
IRelationWatcherisSourceDeleteWatcher in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherboolean true if onSourceDelete should
be called.public void onSourceDelete(IRelation relation)
IRelationWatcheronSourceDelete in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherrelation - the IRelation which is about to be deleted.
public void onSourceChangeDelete(IRelation relation,
java.lang.String oldSourceId)
public boolean isTargetDeleteWatcher()
IRelationWatcherisTargetDeleteWatcher in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherboolean true if onTargetDelete should
be called.public void onTargetDelete(IRelation relation)
IRelationWatcheronTargetDelete in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherrelation - the IRelation which is about to be deleted.
public void onTargetChangeDelete(IRelation relation,
java.lang.String oldTargetId)
public boolean isSourceCopyWatcher()
IRelationWatcherisSourceCopyWatcher in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherboolean true if onSourceCopy should be
called.
public void onSourceCopy(IRelation relation,
IRelation originalRelation)
IRelationWatcherisSourceCopyTrackingEnabled()
is set for the relation type).onSourceCopy in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherrelation - the IRelation which was created.originalRelation - the IRelation from which the relation
was copied.public boolean isTargetCopyWatcher()
IRelationWatcherisTargetCopyWatcher in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherboolean true if onTargetCopy should be
called.
public void onTargetCopy(IRelation relation,
IRelation originalRelation)
IRelationWatcherisTargetCopyTrackingEnabled()
is set for the relation type).onTargetCopy in interface IRelationWatchercom.sapportals.wcm.service.relation.IRelationWatcherrelation - the IRelation which was created.originalRelation - the IRelation from which the relation
was copied.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||