com.atlassian.bamboo.build
Class PlanDependencyImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.build.PlanDependencyImpl
All Implemented Interfaces:
PlanDependency, BambooIdProvider, BambooObject, java.lang.Cloneable, java.lang.Comparable<PlanDependencyImpl>

public class PlanDependencyImpl
extends BambooEntityObject
implements PlanDependency, java.lang.Comparable<PlanDependencyImpl>


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Fields inherited from interface com.atlassian.bamboo.build.PlanDependency
AUTOMATIC_DEP_KEY, DEFAULT_DEP_KEY
 
Constructor Summary
PlanDependencyImpl()
           
PlanDependencyImpl(Plan parentPlan, Plan childPlan)
           
PlanDependencyImpl(java.lang.String dependencyType, Plan parentPlan, Plan childPlan)
           
 
Method Summary
 int compareTo(PlanDependencyImpl o)
           
 boolean equals(java.lang.Object o)
          This method needs to be here in order to use proper id
 Plan getChildPlan()
           
 java.lang.String getDependencyType()
          Get the unique key representing the dependency type.
 Plan getParentPlan()
           
 int hashCode()
          This method needs to be here in order to use proper id
 boolean isEditable()
          Can the user edit this dependency?
 void setChildPlan(Plan childPlan)
           
 void setDependencyType(java.lang.String key)
           
 void setParentPlan(Plan parentPlan)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlanDependencyImpl

public PlanDependencyImpl()

PlanDependencyImpl

public PlanDependencyImpl(Plan parentPlan,
                          Plan childPlan)

PlanDependencyImpl

public PlanDependencyImpl(java.lang.String dependencyType,
                          Plan parentPlan,
                          Plan childPlan)
Method Detail

getChildPlan

@Nullable
public 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 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 java.lang.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(java.lang.String key)

hashCode

public int hashCode()
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
hashCode in class BambooEntityObject

equals

public boolean equals(java.lang.Object o)
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
equals in class BambooEntityObject

compareTo

public int compareTo(PlanDependencyImpl o)
Specified by:
compareTo in interface java.lang.Comparable<PlanDependencyImpl>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.