Class PlanDependencyImpl

java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.build.PlanDependencyImpl
All Implemented Interfaces:
PlanDependency, BambooIdProvider, BambooObject, Cloneable, Comparable<PlanDependencyImpl>

@Entity public class PlanDependencyImpl extends BambooEntityObject implements PlanDependency, Comparable<PlanDependencyImpl>
  • Constructor Details

    • PlanDependencyImpl

      public PlanDependencyImpl()
    • PlanDependencyImpl

      public PlanDependencyImpl(Plan parentPlan, Plan childPlan)
    • PlanDependencyImpl

      public PlanDependencyImpl(String dependencyType, Plan parentPlan, Plan childPlan)
  • Method Details

    • getChildPlan

      @Nullable public @Nullable Plan getChildPlan()
      Specified by:
      getChildPlan in interface PlanDependency
      Returns:
      the child plan in this dependency relationship
    • setChildPlan

      public void setChildPlan(Plan childPlan)
    • getParentPlan

      @Nullable public @Nullable Plan getParentPlan()
      Specified by:
      getParentPlan in interface PlanDependency
      Returns:
      the parent plan in this dependency relationship
    • setParentPlan

      public void setParentPlan(Plan parentPlan)
    • isEditable

      public boolean isEditable()
      Description copied from interface: PlanDependency
      Can the user edit this dependency?
      Specified by:
      isEditable in interface PlanDependency
      Returns:
      true if the user can remove/change this dependency
    • getDependencyType

      public String getDependencyType()
      Description copied from interface: PlanDependency
      Get the unique key representing the dependency type. Use this to differentiate groups of dependencies from one another
      Specified by:
      getDependencyType in interface PlanDependency
      Returns:
      String representation of the dependency type
    • setDependencyType

      public void setDependencyType(String key)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class com.atlassian.core.bean.EntityObject
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class com.atlassian.core.bean.EntityObject
    • compareTo

      public int compareTo(PlanDependencyImpl o)
      Specified by:
      compareTo in interface Comparable<PlanDependencyImpl>
    • toString

      public String toString()
      Overrides:
      toString in class Object