Enum Class PlanBranchWorkflow

java.lang.Object
java.lang.Enum<PlanBranchWorkflow>
com.atlassian.bamboo.plan.branch.PlanBranchWorkflow
All Implemented Interfaces:
Serializable, Comparable<PlanBranchWorkflow>, Constable

public enum PlanBranchWorkflow extends Enum<PlanBranchWorkflow>
Types of workflows for automatic plan branch management.
Since:
6.0
  • Enum Constant Details

    • BRANCH_WORKFLOW

      public static final PlanBranchWorkflow BRANCH_WORKFLOW
      Branch workflow indicates that Bamboo will react on VCS branches being created and/or deleted in the repository when managing plan branches.
    • MANUAL_WORKFLOW

      public static final PlanBranchWorkflow MANUAL_WORKFLOW
      Manual workflow indicates that Bamboo will not react on VCS branches nor pull requests being created and/or deleted in the repository when managing plan branches.
    • PULL_REQUEST_WORKFLOW

      public static final PlanBranchWorkflow PULL_REQUEST_WORKFLOW
      Pull request workflow indicates that Bamboo will react on pull requests being created and/or deleted in the repository when managing plan branches. This workflow does not let perform pull requests from forked repositories.
    • FORK_ENABLED_PULL_REQUEST_WORKFLOW

      public static final PlanBranchWorkflow FORK_ENABLED_PULL_REQUEST_WORKFLOW
      Pull request (from both master repository and forked repositories) workflow indicates that Bamboo will react on pull requests being created and/or deleted in the repository when managing plan branches.
  • Method Details

    • values

      public static PlanBranchWorkflow[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PlanBranchWorkflow valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • defaultValue

      public static PlanBranchWorkflow defaultValue()
      Returns the default workflow.
    • fromKey

      @NotNull public static @NotNull PlanBranchWorkflow fromKey(@NotNull @NotNull String key)
      Returns an instance of PlanBranchWorkflow based on the passed key.
      Parameters:
      key - key of the workflow
      Returns:
      instance of plan branching workflow
      Throws:
      IllegalArgumentException - if the key does not match any known workflow
    • getKey

      @NotNull public @NotNull String getKey()
      Key to be used for storing this enum in any configuration as string.
    • getIntegrationStrategies

      @NotNull public @NotNull Set<BranchIntegrationStrategy> getIntegrationStrategies()
      Allowed integration strategies for this workflow.
    • isOneOfPullRequestWorkflows

      public boolean isOneOfPullRequestWorkflows()