Class ScheduledTriggerReason
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.trigger.AbstractTriggerReason
-
- com.atlassian.bamboo.v2.build.trigger.ScheduledTriggerReason
-
- All Implemented Interfaces:
TriggerReason
,Serializable
public class ScheduledTriggerReason extends AbstractTriggerReason
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.commons.lang3.time.FastDateFormat
DATE_FORMAT
static String
DATE_FORMAT_STRING
static String
KEY
static String
TRIGGER_SCHEDULED_DATE
-
Fields inherited from class com.atlassian.bamboo.v2.build.trigger.AbstractTriggerReason
PLUGIN_KEY, TRIGGER_REASON_KEY
-
-
Constructor Summary
Constructors Constructor Description ScheduledTriggerReason()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Gives the trigger reasonString
getNameForSentence()
Gives the trigger reason in a format that can be used in a sentence eg.@Nullable PlanResultKey
getPlanResultKey()
Date
getScheduledDate()
@Nullable String
getUserScheduledBy()
void
init(String key, @NotNull ResultsSummary resultsSummary)
Initializes theTriggerReason
using data from theResultsSummary
void
init(String key, Map<String,String> fields)
Initializes theTriggerReason
using data from theMap
void
updateCustomData(@NotNull BambooCustomDataAware customDataAware)
Updates theTriggerReason
given aBambooCustomDataAware
-
Methods inherited from class com.atlassian.bamboo.v2.build.trigger.AbstractTriggerReason
getChildTriggerReason, getKey, init, toString, updateIfValueNotNull
-
-
-
-
Field Detail
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
TRIGGER_SCHEDULED_DATE
public static final String TRIGGER_SCHEDULED_DATE
- See Also:
- Constant Field Values
-
DATE_FORMAT_STRING
public static final String DATE_FORMAT_STRING
- See Also:
- Constant Field Values
-
DATE_FORMAT
public static final org.apache.commons.lang3.time.FastDateFormat DATE_FORMAT
-
-
Method Detail
-
init
public void init(String key, Map<String,String> fields)
Description copied from interface:TriggerReason
Initializes theTriggerReason
using data from theMap
-
init
public void init(String key, @NotNull @NotNull ResultsSummary resultsSummary)
Description copied from interface:TriggerReason
Initializes theTriggerReason
using data from theResultsSummary
-
updateCustomData
public void updateCustomData(@NotNull @NotNull BambooCustomDataAware customDataAware)
Description copied from interface:TriggerReason
Updates theTriggerReason
given aBambooCustomDataAware
-
getName
public String getName()
Description copied from interface:TriggerReason
Gives the trigger reason- Returns:
- {String} - the trigger reason
-
getNameForSentence
public String getNameForSentence()
Description copied from interface:TriggerReason
Gives the trigger reason in a format that can be used in a sentence eg. "was triggered at the scheduled time of 6:34 PM"- Returns:
- {String} - the trigger reason, must be HTML escaped.
-
getScheduledDate
public Date getScheduledDate()
-
getPlanResultKey
@Nullable public @Nullable PlanResultKey getPlanResultKey()
-
getUserScheduledBy
@Nullable public @Nullable String getUserScheduledBy()
-
-