Class CanTriggerEnvironments
- java.lang.Object
-
- com.atlassian.bamboo.trigger.applicability.CanTriggerEnvironments
-
- All Implemented Interfaces:
TriggerApplicabilityCondition
- Direct Known Subclasses:
CanTriggerIfAnotherEnvironmentExistsInProject
public class CanTriggerEnvironments extends Object implements TriggerApplicabilityCondition
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.trigger.applicability.TriggerApplicabilityCondition
TriggerApplicabilityCondition.CanTriggerPredicate, TriggerApplicabilityCondition.CanTriggerTypePredicate
-
-
Constructor Summary
Constructors Constructor Description CanTriggerEnvironments()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanTrigger(@NotNull Triggerable triggerable)Detailed check of trigger applicability.booleancanTriggerType(@NotNull Class<? extends Triggerable> triggerableType)General check of trigger applicability.
-
-
-
Method Detail
-
canTriggerType
public boolean canTriggerType(@NotNull @NotNull Class<? extends Triggerable> triggerableType)Description copied from interface:TriggerApplicabilityConditionGeneral check of trigger applicability.- Specified by:
canTriggerTypein interfaceTriggerApplicabilityCondition- Returns:
- true iff the trigger can trigger some instances of given triggerable type.
-
canTrigger
public boolean canTrigger(@NotNull @NotNull Triggerable triggerable)Description copied from interface:TriggerApplicabilityConditionDetailed check of trigger applicability. This can check attributes of the triggerable, not just its type, thus being more exact.- Specified by:
canTriggerin interfaceTriggerApplicabilityCondition- Returns:
-
-