com.ibm.ram.policy
Class PolicyEvent

java.lang.Object
  extended by com.ibm.ram.policy.PolicyEvent

public class PolicyEvent
extends java.lang.Object

Contains an event type, such as create or update, and an Asset

Since:
7.2

Field Summary
static int ASSET_CREATE_EVENT
          Asset create event.
static int ASSET_UPDATE_EVENT
          Asset update event.
 
Constructor Summary
PolicyEvent(int eventType, Asset asset)
           
 
Method Summary
 Asset getAsset()
           
 int getEventType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASSET_CREATE_EVENT

public static final int ASSET_CREATE_EVENT
Asset create event.

Since:
7.2
See Also:
Constant Field Values

ASSET_UPDATE_EVENT

public static final int ASSET_UPDATE_EVENT
Asset update event.

Since:
7.2
See Also:
Constant Field Values
Constructor Detail

PolicyEvent

public PolicyEvent(int eventType,
                   Asset asset)
Parameters:
eventType - The type of event to perform.
asset - The asset on which to perform an event.
Since:
7.2
Method Detail

getEventType

public int getEventType()
Returns:
The type of event to perform.
Since:
7.2

getAsset

public Asset getAsset()
Returns:
The asset to be created/updated as part of this event.
Since:
7.2