Interface TriggerApplicabilityCondition
-
- All Known Implementing Classes:
CanTriggerAnything
,CanTriggerEnvironments
,CanTriggerIfAnotherEnvironmentExistsInProject
,CanTriggerPlans
,CanTriggerPlansWithBitbucketCloudRepository
,CanTriggerPlansWithRepositories
,CanTriggerPlansWithStashRepository
public interface TriggerApplicabilityCondition
Trigger plugin component that defines if trigger is applicable to a specificTriggerable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TriggerApplicabilityCondition.CanTriggerPredicate
Deprecated.since 5.10 use lambda insteadstatic class
TriggerApplicabilityCondition.CanTriggerTypePredicate
Deprecated.since 5.10 use lambda instead
-
Method Summary
All Methods Instance Methods Abstract 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
boolean canTriggerType(@NotNull @NotNull Class<? extends Triggerable> triggerableType)
General check of trigger applicability.- Parameters:
triggerableType
-- Returns:
- true iff the trigger can trigger some instances of given triggerable type.
-
canTrigger
boolean canTrigger(@NotNull @NotNull Triggerable triggerable)
Detailed check of trigger applicability. This can check attributes of the triggerable, not just its type, thus being more exact.- Parameters:
triggerable
-- Returns:
-
-