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 boolean
canTrigger(@NotNull Triggerable triggerable)
Detailed check of trigger applicability.boolean
canTriggerType(@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:TriggerApplicabilityCondition
General check of trigger applicability.- Specified by:
canTriggerType
in 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:TriggerApplicabilityCondition
Detailed check of trigger applicability. This can check attributes of the triggerable, not just its type, thus being more exact.- Specified by:
canTrigger
in interfaceTriggerApplicabilityCondition
- Returns:
-
-