Package com.atlassian.bamboo.build
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>
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.build.PlanDependency
AUTOMATIC_DEP_KEY, DEFAULT_DEP_KEY
-
-
Constructor Summary
Constructors Constructor Description PlanDependencyImpl()PlanDependencyImpl(Plan parentPlan, Plan childPlan)PlanDependencyImpl(String dependencyType, Plan parentPlan, Plan childPlan)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PlanDependencyImpl o)booleanequals(Object o)@Nullable PlangetChildPlan()StringgetDependencyType()Get the unique key representing the dependency type.@Nullable PlangetParentPlan()inthashCode()booleanisEditable()Can the user edit this dependency?voidsetChildPlan(Plan childPlan)voidsetDependencyType(String key)voidsetParentPlan(Plan parentPlan)StringtoString()-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Method Detail
-
getChildPlan
@Nullable public @Nullable Plan getChildPlan()
- Specified by:
getChildPlanin interfacePlanDependency- Returns:
- the child plan in this dependency relationship
-
setChildPlan
public void setChildPlan(Plan childPlan)
-
getParentPlan
@Nullable public @Nullable Plan getParentPlan()
- Specified by:
getParentPlanin interfacePlanDependency- Returns:
- the parent plan in this dependency relationship
-
setParentPlan
public void setParentPlan(Plan parentPlan)
-
isEditable
public boolean isEditable()
Description copied from interface:PlanDependencyCan the user edit this dependency?- Specified by:
isEditablein interfacePlanDependency- Returns:
- true if the user can remove/change this dependency
-
getDependencyType
public String getDependencyType()
Description copied from interface:PlanDependencyGet the unique key representing the dependency type. Use this to differentiate groups of dependencies from one another- Specified by:
getDependencyTypein interfacePlanDependency- Returns:
- String representation of the dependency type
-
setDependencyType
public void setDependencyType(String key)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
compareTo
public int compareTo(PlanDependencyImpl o)
- Specified by:
compareToin interfaceComparable<PlanDependencyImpl>
-
-