com.pyxis.greenhopper.jira.configurations
Class DisabledVersionAssociations

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

public class DisabledVersionAssociations
extends VersionAssociations


Constructor Summary
DisabledVersionAssociations(BoardContext boardContext)
           
DisabledVersionAssociations(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)
          New: returns the version that is the heavier, thus at the top of the ordered version list on the JIRA admin page.
 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

DisabledVersionAssociations

public DisabledVersionAssociations(BoardContext boardContext)

DisabledVersionAssociations

public DisabledVersionAssociations(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
Overrides:
getHierarchyOf in class VersionAssociations

getCommitment

public java.lang.Long getCommitment(com.atlassian.jira.issue.Issue issue)
New: returns the version that is the heavier, thus at the top of the ordered version list on the JIRA admin page.

Specified by:
getCommitment in interface Associations
Overrides:
getCommitment in class VersionAssociations

isMaster

public boolean isMaster(java.lang.Long versionId)
Specified by:
isMaster in interface Associations
Overrides:
isMaster in class VersionAssociations

getMaster

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

setMaster

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

removeMaster

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

getAllFirstSubIds

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

getAllSubIds

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

getWeight

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


Copyright © 2007-2012 Atlassian. All Rights Reserved.