com.pyxis.greenhopper.jira.configurations
Class VersionAssociations

java.lang.Object
  extended by com.pyxis.greenhopper.jira.configurations.VersionAssociations
All Implemented Interfaces:
Associations
Direct Known Subclasses:
DisabledVersionAssociations

public class VersionAssociations
extends java.lang.Object
implements Associations


Constructor Summary
VersionAssociations(BoardContext boardContext)
           
VersionAssociations(BoardContext boardContext, boolean released)
           
 
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 versionId)
           
 java.lang.Long getMaster(java.lang.Long versionId)
           
 int getWeight(java.lang.Long id)
           
 boolean isMaster(java.lang.Long versionId)
           
 void removeMaster(java.lang.Long versionId)
           
 void setMaster(java.lang.Long versionId, java.lang.Long masterId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionAssociations

public VersionAssociations(BoardContext boardContext)

VersionAssociations

public VersionAssociations(BoardContext boardContext,
                           boolean released)
Method Detail

getHierarchyOf

public java.util.LinkedList<java.lang.Long> getHierarchyOf(java.lang.Long versionId)
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 versionId)
Specified by:
isMaster in interface Associations

getMaster

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

setMaster

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

removeMaster

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

getAllFirstSubIds

public java.util.Collection<java.lang.Long> getAllFirstSubIds(java.lang.Long masterId)
Specified by:
getAllFirstSubIds 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 (Version)

getWeight

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


Copyright © 2007-2012 Atlassian. All Rights Reserved.