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