Package com.atlassian.bamboo.plan
Class TriggerableInternalKeyImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.TriggerableInternalKeyImpl
-
- All Implemented Interfaces:
TriggerableInternalKey
@Internal public class TriggerableInternalKeyImpl extends Object implements TriggerableInternalKey
Helper class that carries around Chain/Environment id and lets easily get its instance from correct service.
-
-
Constructor Summary
Constructors Constructor Description TriggerableInternalKeyImpl(@NotNull PlanKey planKey)TriggerableInternalKeyImpl(@NotNull PlanKey planKey, long stageId)TriggerableInternalKeyImpl(@NotNull Triggerable triggerable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static TriggerableInternalKeyforEnvironmentId(long environmentId)static TriggerableInternalKeyforPlanKey(@NotNull PlanKey planKey)static TriggerableInternalKeyforStageId(@NotNull PlanKey planKey, long stageId)@NotNull StringgetKey()@Nullable PlanKeygetPlanKey()@Nullable TriggerablegetTriggerable()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
TriggerableInternalKeyImpl
public TriggerableInternalKeyImpl(@NotNull @NotNull Triggerable triggerable)
-
TriggerableInternalKeyImpl
public TriggerableInternalKeyImpl(@NotNull @NotNull PlanKey planKey)
-
TriggerableInternalKeyImpl
public TriggerableInternalKeyImpl(@NotNull @NotNull PlanKey planKey, long stageId)
-
-
Method Detail
-
forEnvironmentId
public static TriggerableInternalKey forEnvironmentId(long environmentId)
-
forPlanKey
public static TriggerableInternalKey forPlanKey(@NotNull @NotNull PlanKey planKey)
-
forStageId
public static TriggerableInternalKey forStageId(@NotNull @NotNull PlanKey planKey, long stageId)
-
getKey
@NotNull public @NotNull String getKey()
- Specified by:
getKeyin interfaceTriggerableInternalKey- Returns:
- a unique
Stringidentifier
-
getPlanKey
@Nullable public @Nullable PlanKey getPlanKey()
Description copied from interface:TriggerableInternalKey- Specified by:
getPlanKeyin interfaceTriggerableInternalKey- Returns:
-
getTriggerable
@Nullable public @Nullable Triggerable getTriggerable()
- Specified by:
getTriggerablein interfaceTriggerableInternalKey- Returns:
- Immutable instance of
Triggerablerepresented by this key
-
-