Class TriggerConfigChain
java.lang.Object
com.dabsquared.gitlabjenkins.trigger.handler.merge.TriggerConfigChain
- All Implemented Interfaces:
Predicate<MergeRequestObjectAttributes>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionacceptIf
(boolean condition, Predicate<MergeRequestObjectAttributes> trigger) acceptOnlyIf
(boolean condition, EnumSet<State> states, EnumSet<Action> actions) add
(Collection<State> states, Collection<Action> actions) rejectUnless
(boolean condition, EnumSet<State> states, EnumSet<Action> actions) rejectUnless
(boolean condition, Predicate<MergeRequestObjectAttributes> trigger) boolean
test
(MergeRequestObjectAttributes mergeRequestObjectAttributes)
-
Constructor Details
-
TriggerConfigChain
public TriggerConfigChain()
-
-
Method Details
-
rejectUnless
public TriggerConfigChain rejectUnless(boolean condition, Predicate<MergeRequestObjectAttributes> trigger) -
rejectUnless
public TriggerConfigChain rejectUnless(boolean condition, EnumSet<State> states, EnumSet<Action> actions) -
acceptOnlyIf
public TriggerConfigChain acceptOnlyIf(boolean condition, EnumSet<State> states, EnumSet<Action> actions) -
acceptIf
public TriggerConfigChain acceptIf(boolean condition, Predicate<MergeRequestObjectAttributes> trigger) -
acceptIf
public TriggerConfigChain acceptIf(boolean condition, EnumSet<State> states, EnumSet<Action> actions) -
add
-
acceptIf
public TriggerConfigChain acceptIf(boolean condition, Predicate<State> states, Predicate<Action> actions) -
test
- Specified by:
test
in interfacePredicate<MergeRequestObjectAttributes>
-