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
ConstructorsConstructorDescriptionPlanDependencyImpl(Plan parentPlan, Plan childPlan) PlanDependencyImpl(String dependencyType, Plan parentPlan, Plan childPlan) -
Method Summary
Modifier and TypeMethodDescriptionintboolean@Nullable PlanGet the unique key representing the dependency type.@Nullable PlaninthashCode()booleanCan the user edit this dependency?voidsetChildPlan(Plan childPlan) voidsetDependencyType(String key) voidsetParentPlan(Plan parentPlan) toString()Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Constructor Details
-
PlanDependencyImpl
public PlanDependencyImpl() -
PlanDependencyImpl
-
PlanDependencyImpl
-
-
Method Details
-
getChildPlan
- Specified by:
getChildPlanin interfacePlanDependency- Returns:
- the child plan in this dependency relationship
-
setChildPlan
-
getParentPlan
- Specified by:
getParentPlanin interfacePlanDependency- Returns:
- the parent plan in this dependency relationship
-
setParentPlan
-
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
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
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
equals
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
compareTo
- Specified by:
compareToin interfaceComparable<PlanDependencyImpl>
-
toString
-