Interface TriggerScriptObject
-
public interface TriggerScriptObjectThis class contains the methods to retrieve trigger context. This class has no properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SchedulerEntitygetSchedulerEntity()Returns the related SchedulerEntity that this trigger is operating on.StringgetUserName()Returns the name of the user executing this context.
-
-
-
Method Detail
-
getSchedulerEntity
SchedulerEntity getSchedulerEntity()
Returns the related SchedulerEntity that this trigger is operating on. The returned entity is dependent upon the context of the Trigger. ForTriggerPoint.BeforeJobOnChange,TriggerPoint.BeforeJobPreRunning, andTriggerPoint.BeforeJobPostRunningtheJobis returned. ForTriggerPoint.BeforeDefinitionChangethe SchedulerEntity being changed is returned.- Returns:
- the related SchedulerEntity.
-
getUserName
String getUserName()
Returns the name of the user executing this context. The returned username is dependent upon the context of the Trigger. ForTriggerPoint.BeforeJobOnChange,TriggerPoint.BeforeJobPreRunning, andTriggerPoint.BeforeJobPostRunningtheJob.getOwnerSubject()is returned. ForTriggerPoint.BeforeDefinitionChangethe UserContext is returned.- Returns:
- the username
-
-