Interface TriggerScriptObject
-
public interface TriggerScriptObject
This 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 SchedulerEntity
getSchedulerEntity()
Returns the related SchedulerEntity that this trigger is operating on.String
getUserName()
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.BeforeJobPostRunning
theJob
is returned. ForTriggerPoint.BeforeDefinitionChange
the 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.BeforeJobPostRunning
theJob.getOwnerSubject()
is returned. ForTriggerPoint.BeforeDefinitionChange
the UserContext is returned.- Returns:
- the username
-
-