org.eclipse.higgins.idas.spi
Class EntityNotification

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

public class EntityNotification
extends Object


Field Summary
static String UPDATE_ADD
          This action is set when the IEntity returned by getEntity() 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 entity 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 entity was updated.
static String UPDATE_REMOVE
          This action is set when the IEntity returned by getEntity() was removed
 
Constructor Summary
EntityNotification(org.eclipse.higgins.idas.api.IEntity entity, String action, AttributeNotification attrNotif, MetadataNotification metadataNotif)
           
 
Method Summary
 String getAction()
           
 AttributeNotification getAttributeNotification()
           
 org.eclipse.higgins.idas.api.IEntity getEntity()
           
 MetadataNotification getMetadataNotification()
           
 
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 IEntity returned by getEntity() was added

See Also:
Constant Field Values

UPDATE_REMOVE

public static final String UPDATE_REMOVE
This action is set when the IEntity returned by getEntity() 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 entity 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 entity was updated.

See Also:
Constant Field Values
Constructor Detail

EntityNotification

public EntityNotification(org.eclipse.higgins.idas.api.IEntity entity,
                          String action,
                          AttributeNotification attrNotif,
                          MetadataNotification metadataNotif)
Parameters:
entity -
action -
attrNotif -
Method Detail

getEntity

public org.eclipse.higgins.idas.api.IEntity getEntity()
Returns:
the IEntity 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.