org.eclipse.higgins.idas.spi
Class SubjectNotification

java.lang.Object
  extended byorg.eclipse.higgins.idas.spi.SubjectNotification

public class SubjectNotification
extends Object


Field Summary
static String UPDATE_ADD
          This action is set when the IDigitalSubject returned by getSubject() was added
static String UPDATE_ATTR_NOTIFY
          This action is set when there is a AttributeNotification to be returned by getAttributeNotification() This signifies that an attribute on the subject was updated.
static String UPDATE_METADATA_NOTIFY
          This action is set when there is a MetadataNotification to be returned by getMetadataNotification() This signifies that a metadata element on the subject was updated.
static String UPDATE_REMOVE
          This action is set when the IDigitalSubject returned by getSubject() was removed
 
Constructor Summary
SubjectNotification(org.eclipse.higgins.idas.api.IDigitalSubject subject, String action, AttributeNotification attrNotif, MetadataNotification metadataNotif)
           
 
Method Summary
 String getAction()
           
 AttributeNotification getAttributeNotification()
           
 MetadataNotification getMetadataNotification()
           
 org.eclipse.higgins.idas.api.IDigitalSubject getSubject()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPDATE_ADD

public static final String UPDATE_ADD
This action is set when the IDigitalSubject returned by getSubject() was added

See Also:
Constant Field Values

UPDATE_REMOVE

public static final String UPDATE_REMOVE
This action is set when the IDigitalSubject returned by getSubject() was removed

See Also:
Constant Field Values

UPDATE_ATTR_NOTIFY

public static final String UPDATE_ATTR_NOTIFY
This action is set when there is a AttributeNotification to be returned by getAttributeNotification() This signifies that an attribute on the subject was updated.

See Also:
Constant Field Values

UPDATE_METADATA_NOTIFY

public static final String UPDATE_METADATA_NOTIFY
This action is set when there is a MetadataNotification to be returned by getMetadataNotification() This signifies that a metadata element on the subject was updated.

See Also:
Constant Field Values
Constructor Detail

SubjectNotification

public SubjectNotification(org.eclipse.higgins.idas.api.IDigitalSubject subject,
                           String action,
                           AttributeNotification attrNotif,
                           MetadataNotification metadataNotif)
Parameters:
subject -
action -
attrNotif -
Method Detail

getSubject

public org.eclipse.higgins.idas.api.IDigitalSubject getSubject()
Returns:
the IDigitalSubject being added or removed when the action is set to UPDATE_ADD or UPDATE_REMOVE

getAction

public String getAction()
Returns:
one of: UPDATE_ADD, UPDATE_REMOVE, UPDATE_METADATA_NOTIFY, UPDATE_ATTR_NOTIFY

getAttributeNotification

public AttributeNotification getAttributeNotification()
Returns:
an AttributeNotification when the action is set to UPDATE_ATTR_NOTIFY.

getMetadataNotification

public MetadataNotification getMetadataNotification()
Returns:
an MetadataNotification when the action is set to UPDATE_METADATA_NOTIFY.