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
ConstructorDescriptionPlanDependencyImpl
(Plan parentPlan, Plan childPlan) PlanDependencyImpl
(String dependencyType, Plan parentPlan, Plan childPlan) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
@Nullable Plan
Get the unique key representing the dependency type.@Nullable Plan
int
hashCode()
boolean
Can the user edit this dependency?void
setChildPlan
(Plan childPlan) void
setDependencyType
(String key) void
setParentPlan
(Plan parentPlan) 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
-
Constructor Details
-
PlanDependencyImpl
public PlanDependencyImpl() -
PlanDependencyImpl
-
PlanDependencyImpl
-
-
Method Details
-
getChildPlan
- Specified by:
getChildPlan
in interfacePlanDependency
- Returns:
- the child plan in this dependency relationship
-
setChildPlan
-
getParentPlan
- Specified by:
getParentPlan
in interfacePlanDependency
- Returns:
- the parent plan in this dependency relationship
-
setParentPlan
-
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
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
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
equals
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PlanDependencyImpl>
-
toString
-