com.sun.identity.policy
Class PolicyEvent

java.lang.Object
  extended by com.sun.identity.policy.PolicyEvent

public class PolicyEvent
extends Object

Class to represent policy change events, used by policy framework to notify interested listeners

See Also:
PolicyListener

Field Summary
static int POLICY_ADDED
          constant to indicate change type policy added
static int POLICY_MODIFIED
          constant to indicate change type policy modified
static int POLICY_REMOVED
          constant to indicate change type policy removed
 
Method Summary
 int getChangeType()
          Gets the change type The change type gives the type of policy change that triggered this event indicating whether a policy was added, modified or removed.
 Set getResourceNames()
          Gets the resource names affected by the policy change.
 

Field Detail

POLICY_ADDED

public static final int POLICY_ADDED
constant to indicate change type policy added

See Also:
Constant Field Values

POLICY_MODIFIED

public static final int POLICY_MODIFIED
constant to indicate change type policy modified

See Also:
Constant Field Values

POLICY_REMOVED

public static final int POLICY_REMOVED
constant to indicate change type policy removed

See Also:
Constant Field Values
Method Detail

getResourceNames

public Set getResourceNames()
Gets the resource names affected by the policy change. This indicates that policy decisions for the affected resource names would likely be different from those computed before the change.

Returns:
names of the resources affected by the policy change.

getChangeType

public int getChangeType()
Gets the change type The change type gives the type of policy change that triggered this event indicating whether a policy was added, modified or removed. This change type does not indicate whether resource(s) were added, modified or removed.

Returns:
change type