|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.telelogic.cs.api.TriggerEvent
com.telelogic.cs.api.AttributeEvent
public class AttributeEvent
Sent when an attribute is modified.
An attribute trigger is defined within the lifecycle on individual attributes. Attribute triggers can be fired when an attribute is modified and when the attribute is modified during a submission or transition.
Constructor Summary | |
---|---|
AttributeEvent(User triggerUser,
User adminUser,
java.lang.String objectId,
java.lang.String objectType,
Attribute attribute,
Attribute[] requestedAttributes)
|
Method Summary | |
---|---|
User |
getAdminUser()
Gets information about the admin user for the database the trigger fired in. |
Attribute |
getAttribute()
Gets a single Attribute that represents the attribute which caused the AttributeTrigger
to fire. |
Attribute[] |
getAttributes()
Same as getAttribute , but wraps
the attribute as in array. |
java.lang.String |
getObjectId()
Gets the object id (problem_number) of the object which caused the trigger to fire. |
java.lang.String |
getObjectType()
Gets the type of object that this trigger is firing for. |
Attribute[] |
getRequestedAttributes()
Gets an array of Attribute s for all the attributes requested to be sent to the trigger. |
java.lang.String |
getTriggerType()
Gets the type of this trigger, that is the type of action the spawned this trigger. |
User |
getTriggerUser()
Gets information about this user that performed the action that fired this trigger. |
Methods inherited from class com.telelogic.cs.api.TriggerEvent |
---|
fail, getFailure, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeEvent(User triggerUser, User adminUser, java.lang.String objectId, java.lang.String objectType, Attribute attribute, Attribute[] requestedAttributes)
Method Detail |
---|
public java.lang.String getObjectId()
getObjectId
in interface CollectibleEvent
public java.lang.String getObjectType()
public Attribute getAttribute()
Attribute
that represents the attribute which caused the AttributeTrigger
to fire.
public Attribute[] getRequestedAttributes()
Attribute
s for all the attributes requested to be sent to the trigger.
These are attributes that were specifically marked to be sent to all triggers in the lifecycle.
getRequestedAttributes
in interface CollectibleEvent
public User getAdminUser()
TriggerEvent
getAdminUser
in class TriggerEvent
public User getTriggerUser()
TriggerEvent
getTriggerUser
in class TriggerEvent
public java.lang.String getTriggerType()
TriggerEvent
getTriggerType
in class TriggerEvent
public Attribute[] getAttributes()
getAttribute
, but wraps
the attribute as in array. Satisfies the CollectibleEvent
interface.
getAttributes
in interface CollectibleEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |