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 int
compareTo(PlanDependencyImpl o)
boolean
equals(Object o)
@Nullable Plan
getChildPlan()
String
getDependencyType()
Get the unique key representing the dependency type.@Nullable Plan
getParentPlan()
int
hashCode()
boolean
isEditable()
Can the user edit this dependency?void
setChildPlan(Plan childPlan)
void
setDependencyType(String key)
void
setParentPlan(Plan parentPlan)
String
toString()
-
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:
getChildPlan
in interfacePlanDependency
- Returns:
- the child plan in this dependency relationship
-
setChildPlan
public void setChildPlan(Plan childPlan)
-
getParentPlan
@Nullable public @Nullable Plan getParentPlan()
- Specified by:
getParentPlan
in interfacePlanDependency
- 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 interfacePlanDependency
- 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 interfacePlanDependency
- Returns:
- String representation of the dependency type
-
setDependencyType
public void setDependencyType(String key)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
compareTo
public int compareTo(PlanDependencyImpl o)
- Specified by:
compareTo
in interfaceComparable<PlanDependencyImpl>
-
-