com.pyxis.greenhopper.jira.configurations
Class ComponentAssociations

java.lang.Object
  extended by com.pyxis.greenhopper.jira.configurations.ComponentAssociations
All Implemented Interfaces:
Associations

public class ComponentAssociations
extends java.lang.Object
implements Associations


Constructor Summary
ComponentAssociations(BoardContext boardContext)
           
ComponentAssociations(com.opensymphony.user.User user, ProjectConfiguration projectConfiguration, com.atlassian.jira.project.Project project)
           
 
Method Summary
 java.util.Collection<java.lang.Long> getAllFirstSubIds(java.lang.Long masterId)
           
 java.util.Collection<java.lang.Long> getAllSubIds(java.lang.Long masterId)
           
 java.lang.Long getCommitment(com.atlassian.jira.issue.Issue issue)
           
 java.util.LinkedList<java.lang.Long> getHierarchyOf(java.lang.Long componentId)
           
 java.lang.Long getMaster(java.lang.Long componentId)
           
 int getWeight(java.lang.Long id)
           
 boolean isMaster(java.lang.Long id)
           
 void removeMaster(java.lang.Long componentId)
           
 void setMaster(java.lang.Long componentId, java.lang.Long masterId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentAssociations

public ComponentAssociations(com.opensymphony.user.User user,
                             ProjectConfiguration projectConfiguration,
                             com.atlassian.jira.project.Project project)

ComponentAssociations

public ComponentAssociations(BoardContext boardContext)
Method Detail

getHierarchyOf

public java.util.LinkedList<java.lang.Long> getHierarchyOf(java.lang.Long componentId)
Specified by:
getHierarchyOf in interface Associations

getCommitment

public java.lang.Long getCommitment(com.atlassian.jira.issue.Issue issue)
Specified by:
getCommitment in interface Associations

isMaster

public boolean isMaster(java.lang.Long id)
Specified by:
isMaster in interface Associations

getMaster

public java.lang.Long getMaster(java.lang.Long componentId)
Specified by:
getMaster in interface Associations

setMaster

public void setMaster(java.lang.Long componentId,
                      java.lang.Long masterId)
Specified by:
setMaster in interface Associations

removeMaster

public void removeMaster(java.lang.Long componentId)
Specified by:
removeMaster in interface Associations

getWeight

public int getWeight(java.lang.Long id)
Specified by:
getWeight in interface Associations

getAllSubIds

public java.util.Collection<java.lang.Long> getAllSubIds(java.lang.Long masterId)
Specified by:
getAllSubIds in interface Associations
Parameters:
masterId -
Returns:
the All children (Component)

getAllFirstSubIds

public java.util.Collection<java.lang.Long> getAllFirstSubIds(java.lang.Long masterId)
Specified by:
getAllFirstSubIds in interface Associations


Copyright © 2007-2011 Atlassian. All Rights Reserved.