Class PlanDependencyImpl

    • Constructor Detail

      • PlanDependencyImpl

        public PlanDependencyImpl()
      • PlanDependencyImpl

        public PlanDependencyImpl​(Plan parentPlan,
                                  Plan childPlan)
      • PlanDependencyImpl

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

      • 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