AdventNet Web NMS 4 API Specification

com.adventnet.management.policydb
Class PolicyEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.adventnet.management.policydb.PolicyEvent
All Implemented Interfaces:
java.io.Serializable

public class PolicyEvent
extends java.util.EventObject

A semantic event which indicates that a policy-defined action occured.

All PolicyEvent's are constructed with reference to an object, the "source" that is logically deemed to be the object upon which the event in question initialy occurred upon.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PolicyEvent(java.lang.Object source)
          Constructs a prototypical event.
 
Method Summary
 void addPolicyGroupsToTrigger(java.lang.String s)
          Adds a policy group to the list of policy groups to be triggered
 void addPolicyNamesToTrigger(java.lang.String s)
          Adds a policy to the list of policies to be triggered
 java.lang.Object getAdditionalInfo()
          Gets the additional information needed.
 java.util.Vector getPolicyGroupsToTrigger()
          Returns the groups of the policies that are to be triggered
 java.util.Vector getPolicyNamesToTrigger()
          Returns names of the policies that are to be triggered
 java.lang.Object getTarget()
          Returns the target on which the action should be taken.
 void setAdditionalInfo(java.lang.Object obj)
          sets the additional information needed.
 void setPolicyGroupsToTrigger(java.util.Vector vec)
          Sets the groups of the policies that are to be triggered
 void setPolicyNamesToTrigger(java.util.Vector vec)
          Sets policies that are to be triggered
 void setTarget(java.lang.Object obj)
          Sets the target on which the action should be taken.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolicyEvent

public PolicyEvent(java.lang.Object source)
Constructs a prototypical event.
Parameters:
source - the object on which the Event initally occurred.
Method Detail

getTarget

public java.lang.Object getTarget()
Returns the target on which the action should be taken.
Returns:
Object the target

setTarget

public void setTarget(java.lang.Object obj)
Sets the target on which the action should be taken.
Parameters:
Obj - the target

getAdditionalInfo

public java.lang.Object getAdditionalInfo()
Gets the additional information needed.
Returns:
Object that contains the information

setAdditionalInfo

public void setAdditionalInfo(java.lang.Object obj)
sets the additional information needed.
Parameters:
Obj - Object that contains the information

getPolicyNamesToTrigger

public java.util.Vector getPolicyNamesToTrigger()
Returns names of the policies that are to be triggered
Returns:
Vector containing the policy names

setPolicyNamesToTrigger

public void setPolicyNamesToTrigger(java.util.Vector vec)
Sets policies that are to be triggered
Parameters:
vec - Vector containing the policy names

addPolicyNamesToTrigger

public void addPolicyNamesToTrigger(java.lang.String s)
Adds a policy to the list of policies to be triggered
Parameters:
s - the policy name to be added.

getPolicyGroupsToTrigger

public java.util.Vector getPolicyGroupsToTrigger()
Returns the groups of the policies that are to be triggered
Returns:
Vector containing the policy group names

setPolicyGroupsToTrigger

public void setPolicyGroupsToTrigger(java.util.Vector vec)
Sets the groups of the policies that are to be triggered
Parameters:
vec - Vector containing the policy group names

addPolicyGroupsToTrigger

public void addPolicyGroupsToTrigger(java.lang.String s)
Adds a policy group to the list of policy groups to be triggered
Parameters:
s - the policy group name to be added.

AdventNet Web NMS 4 API Specification