public interface ITeamAreaHierarchy
Modifier and Type | Method and Description |
---|---|
void |
addChild(ITeamAreaHandle parent,
ITeamAreaHandle child)
Adds a given team area as a child to another given team area.
|
void |
addRoot(ITeamAreaHandle root,
IDevelopmentLineHandle developmentLine)
Adds the given team area as a root to this hierarchy in the given
development line.
|
java.util.Set |
getChildren(ITeamAreaHandle parent)
Returns the children for the given team area.
|
IDevelopmentLineHandle |
getDevelopmentLine(ITeamAreaHandle teamAreaHandle)
Returns the development line to which the given team area belongs in this
hierarchy or
null if the team area does not belong to a
development line. |
ITeamAreaHandle |
getParent(ITeamAreaHandle child)
Returns the parent of the given team area or
null if the
team area is a root. |
IDevelopmentLineHandle |
getRawDevelopmentLine(ITeamAreaHandle teamAreaHandle)
Returns the development line to which the given team area belongs in this
hierarchy or
null if the team area does not belong to a
development line. |
java.util.Set |
getRoots()
Returns all root team areas.
|
java.util.List |
getTeamAreas()
Returns a list of all team areas contained in this team area hierarchy.
|
void |
promoteToRoot(ITeamAreaHandle root)
Promotes the given team area to be a root of this hierarchy within its
current development line.
|
void |
remove(ITeamAreaHandle teamArea)
Removes the given team area from the hierarchy.
|
void |
reparent(ITeamAreaHandle newParent,
ITeamAreaHandle child)
Adds a given team area as a child to another given team area when the child team area
may already have a parent team area.
|
void |
setDevelopmentLine(ITeamAreaHandle root,
IDevelopmentLineHandle developmentLine)
Sets the development line of the given root team area.
|
java.util.Set getRoots()
ITeamAreaHandle
)void addRoot(ITeamAreaHandle root, IDevelopmentLineHandle developmentLine)
root
- the new rootdevelopmentLine
- the development line to which the team area will
be added or null
TeamAreaHierarchyException
- in case the given root is already a
child in this hierarchyjava.lang.IllegalArgumentException
- in case the given handle is already a
root team area in another development linevoid promoteToRoot(ITeamAreaHandle root)
root
- a handle to the new rootTeamAreaHierarchyException
- in case the given handle already
references a root in the hierarchy or is not part of this hierarchyITeamAreaHandle getParent(ITeamAreaHandle child)
null
if the
team area is a root.child
- the team areanull
if the team area does not
have a parent (is a root)TeamAreaHierarchyException
- if the child is not part of this
hierarchyjava.util.Set getChildren(ITeamAreaHandle parent)
parent
- the parent team areaITeamAreaHandle
)TeamAreaHierarchyException
- if the parent is not part of this
hierarchyvoid addChild(ITeamAreaHandle parent, ITeamAreaHandle child)
parent
- the parent team areachild
- the child team areaTeamAreaHierarchyException
- if the parent is not part of this
hierarchy or the child already has a parentvoid remove(ITeamAreaHandle teamArea)
teamArea
- the team areaTeamAreaHierarchyException
- if the team area is not part of this
hierarchy or the team area has childrenvoid reparent(ITeamAreaHandle newParent, ITeamAreaHandle child)
newParent
- the parent team areachild
- the child team areaTeamAreaHierarchyException
- if the parent is not part of this
hierarchyjava.util.List getTeamAreas()
ITeamAreaHandle
)IDevelopmentLineHandle getDevelopmentLine(ITeamAreaHandle teamAreaHandle)
null
if the team area does not belong to a
development line. If the given handle is not a root, this method returns
the development line which the handle inherits.
If the given team area is not explicitly assigned to a development line,
this method will return the project development line, if any. To
distinguish between team areas that are in the project development line
and those that have no persisted development line set, use
getRawDevelopmentLine(ITeamAreaHandle)
instead.
teamAreaHandle
- the team area handlenull
TeamAreaHierarchyException
- if the team area is not part of this
hierarchyvoid setDevelopmentLine(ITeamAreaHandle root, IDevelopmentLineHandle developmentLine)
root
- a handle to the root team areadevelopmentLine
- the development line to setTeamAreaHierarchyException
- in case the given handle is not
already a root in this hierarchyIDevelopmentLineHandle getRawDevelopmentLine(ITeamAreaHandle teamAreaHandle)
null
if the team area does not belong to a
development line. If the given handle is not a root, this method returns
the development line which the handle inherits.
Unlike getDevelopmentLine(ITeamAreaHandle)
, this method does
not consider the implicitly assigned project development line. If a team
area is not explicitly assigned to a development line, this method will
always return null
.
teamAreaHandle
- the team area handlenull
TeamAreaHierarchyException
- if the team area is not part of this
hierarchy