com.pyxis.greenhopper.jira.boards
Class VersionBoard

java.lang.Object
  extended by com.pyxis.greenhopper.jira.boards.AbstractBoard
      extended by com.pyxis.greenhopper.jira.boards.AbstractPlanningBoard
          extended by com.pyxis.greenhopper.jira.boards.AbstractNestableBoard
              extended by com.pyxis.greenhopper.jira.boards.VersionBoard
All Implemented Interfaces:
Board, BoardWithCapacities, BoardWithMarkers, NestableBoard, PlanningBoard, java.lang.Comparable<Board>
Direct Known Subclasses:
ChartBoard, TaskBoard

public class VersionBoard
extends AbstractNestableBoard


Field Summary
static java.lang.String DATA_KEY
           
protected  java.util.SortedSet<java.util.Date> nonWorkingDates
           
protected  java.util.SortedSet<NonWorkingDay> nonWorkingDays
           
static java.lang.String VIEW
           
 
Fields inherited from class com.pyxis.greenhopper.jira.boards.AbstractBoard
canBoardRank, context, id, issueView, log, name, pager
 
Fields inherited from interface com.pyxis.greenhopper.jira.boards.PlanningBoard
KEY
 
Constructor Summary
VersionBoard(BoardContext boardContext, com.atlassian.jira.project.version.Version version)
           
 
Method Summary
 com.atlassian.jira.jql.builder.JqlClauseBuilder applyAsFilter(com.atlassian.jira.jql.builder.JqlClauseBuilder builder, boolean pretty)
           
 boolean canDrag(BoardIssue boardIssue)
           
 boolean canEditName()
          Can edit a box label
 boolean canManage()
           
protected  void computeNonWorkingDaysAndDates()
           
 void doSynchronize()
          Fixes all issues that are not respecting the board hierarchy by assigning the missing boards to the issue.
 java.util.Set<com.atlassian.jira.issue.Issue> doSynchronizeReport()
          Retreives all issues that are not respecting the hierarchy of boards.
 void doUpdate(java.util.Set<com.atlassian.jira.issue.Issue> issues, java.lang.String boardId)
          TODO Need to check if field is required...
 java.util.List<SubtaskBoard> doUpdateReport(java.util.Set<com.atlassian.jira.issue.Issue> issues)
          Retrieves all the standard issues with subtasks that can be part of the update from the defined set of issues
 java.util.TreeSet<VersionBoard> getAllBoards()
           
 Associations getAssociations()
          Retrieves the associations
protected  ColumnPagination getBoardColumnPagination()
          Retrieves the board column pagination
 java.lang.String getCapacityDescription()
           
 java.lang.String getCapacityKey(WatchedField field)
           
 java.lang.String getCapacityTitle()
           
 java.util.List<VersionBoard> getCarryonOptions()
           
 java.util.List<com.atlassian.jira.issue.Issue> getCommittedNotDoneIssues()
           
 java.util.List<com.atlassian.jira.issue.Issue> getCommittedNotDoneIssuesNotEditable()
           
 java.lang.String getDescription()
          Retrieves the description of the board
 java.lang.String getDisplayableBoardForIssue(com.atlassian.jira.issue.Issue issue)
          Retrieves the id of the board where the issue is displayed in
 java.lang.String getEndDate()
           
 java.util.Set<VersionBoard> getFirstLevelSubVersions()
           
 java.lang.String getMarkerKey(WatchedField field)
           
 com.atlassian.jira.project.version.Version getMaster()
           
 java.util.SortedSet<java.util.Date> getNonWorkingDates()
           
 java.util.SortedSet<NonWorkingDay> getNonWorkingDays()
           
protected  java.lang.String getPendingKey()
           
 com.atlassian.query.Query getPendingQuery(boolean filter)
          Builds the query to show only the pending issues
 java.util.List<com.atlassian.jira.project.version.Version> getPossibleMasters()
           
 java.util.Date getRegisteredEndDate()
           
 java.util.Date getRegisteredStartDate()
           
 java.lang.String getReleaseDate()
           
 java.lang.String getStartDate()
           
 java.util.Collection<com.atlassian.jira.issue.Issue> getSubtasks(SubtaskBoard parent)
          Retrieves the subtasks of the specified parent that are associated with the board
 com.atlassian.jira.project.version.Version getVersion()
           
 java.lang.String getView()
          The issue view to display the issues in
 boolean hasDescription()
          Checks if the board has a description
 boolean hasSettings()
          Checks if the board has settings
 boolean hasSubtasks(SubtaskBoard parent)
          Checks if the parent has some subtasks associated with the board
 boolean isAssociatedWith(com.atlassian.jira.issue.Issue issue)
          Checks whether the issue is associated with this board, e.g.
 boolean isInRange(java.util.Date date)
           
 boolean isInSame(com.atlassian.jira.issue.Issue issue1, com.atlassian.jira.issue.Issue issue2)
          Checks if both issues are in the same board
 boolean isOverdue()
           
 boolean isReleasable()
           
 boolean isReleased()
           
 boolean isTaskBoardAvailable()
           
 void release(java.lang.String swapId)
           
 void swapUnDoneIssuesTo(java.lang.String swapVersionId)
           
 void synchronize()
           
 java.util.Set<com.atlassian.jira.issue.Issue> synchronizeReport()
           
 void updateMaster(java.lang.String masterId)
          Updates the master of the board
 void updateName(java.lang.String name)
          Updates the name of the board
 int updatePermission()
           
 
Methods inherited from class com.pyxis.greenhopper.jira.boards.AbstractNestableBoard
compareTo, getBoxCss, getDecoratedName, getDisplayQuery, getHierarchy, getMasterId, hasChildren, isInHierarchy, isMaster, isModifierOn, showPending
 
Methods inherited from class com.pyxis.greenhopper.jira.boards.AbstractPlanningBoard
canBoardRank, canEditSettings, getAllByBoardFilterKey, getAllByBoardFilters, getBoardCapacityKey, getBoardMarkerKey, getByBoardFilter, getColumnPagination, getCursor, getKey, getPrettyQuery, getQuery, isByBoardFilterSupported, isCapacitySupported, isUnset, setByBoardFilterId, showLegendBar
 
Methods inherited from class com.pyxis.greenhopper.jira.boards.AbstractBoard
canManageStats, canRank, canSelect, computeStartFor, containsIssue, equals, focusOn, getAllIssues, getBoardContext, getBoardIssue, getContext, getDefaultStart, getDescription, getDisplayableIssues, getDisplayableIssuesFrom, getFocussedIssue, getHighLightedIssues, getId, getIssueKeys, getIssues, getIssues, getIssuesInPage, getIssueView, getMaxIssues, getMaxPagine, getName, getNavigatorQuery, getPageNumber, getPager, getPager, getPagination, getPluginLinks, getProject, getProjectId, getQuery, getRawName, getStart, getSummary, hashCode, hasMenuItems, hideDone, hideSubs, indexOf, isAssignedToMeOn, isCardsDisplayed, isHighLighting, isListDisplayed, isLocked, isMarkersSupported, isProjectAdmin, isSelectable, issueCount, issuePagineCount, isSummariesDisplayed, showParentSubInfo, showProgressStats, showStats, truncate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.pyxis.greenhopper.jira.boards.PlanningBoard
canManageStats
 
Methods inherited from interface com.pyxis.greenhopper.jira.boards.Board
canRank, canSelect, computeStartFor, containsIssue, focusOn, getAllIssues, getBoardContext, getBoardIssue, getContext, getHighLightedIssues, getId, getIssues, getIssuesInPage, getIssueView, getMaxIssues, getMaxPagine, getName, getNavigatorQuery, getPagination, getProject, getProjectId, getQuery, getStart, getSummary, hasMenuItems, hideDone, hideSubs, isAssignedToMeOn, isCardsDisplayed, isHighLighting, isListDisplayed, isLocked, isMarkersSupported, isSelectable, issueCount, isSummariesDisplayed, showParentSubInfo, showProgressStats, showStats
 

Field Detail

VIEW

public static final java.lang.String VIEW
See Also:
Constant Field Values

DATA_KEY

public static final java.lang.String DATA_KEY
See Also:
Constant Field Values

nonWorkingDays

protected java.util.SortedSet<NonWorkingDay> nonWorkingDays

nonWorkingDates

protected java.util.SortedSet<java.util.Date> nonWorkingDates
Constructor Detail

VersionBoard

public VersionBoard(BoardContext boardContext,
                    com.atlassian.jira.project.version.Version version)
Method Detail

getVersion

public com.atlassian.jira.project.version.Version getVersion()

getView

public java.lang.String getView()
Description copied from interface: Board
The issue view to display the issues in

Returns:
true if the context bar should be shown

getMaster

public com.atlassian.jira.project.version.Version getMaster()

getCarryonOptions

public java.util.List<VersionBoard> getCarryonOptions()

getReleaseDate

public java.lang.String getReleaseDate()

getRegisteredStartDate

public java.util.Date getRegisteredStartDate()

getStartDate

public java.lang.String getStartDate()

getRegisteredEndDate

public java.util.Date getRegisteredEndDate()

getEndDate

public java.lang.String getEndDate()

getNonWorkingDays

public java.util.SortedSet<NonWorkingDay> getNonWorkingDays()

getNonWorkingDates

public java.util.SortedSet<java.util.Date> getNonWorkingDates()

isInRange

public boolean isInRange(java.util.Date date)

isReleasable

public boolean isReleasable()

isReleased

public boolean isReleased()

isOverdue

public boolean isOverdue()

getPossibleMasters

public java.util.List<com.atlassian.jira.project.version.Version> getPossibleMasters()

getCommittedNotDoneIssues

public java.util.List<com.atlassian.jira.issue.Issue> getCommittedNotDoneIssues()

getCommittedNotDoneIssuesNotEditable

public java.util.List<com.atlassian.jira.issue.Issue> getCommittedNotDoneIssuesNotEditable()

getAllBoards

public java.util.TreeSet<VersionBoard> getAllBoards()

swapUnDoneIssuesTo

public void swapUnDoneIssuesTo(java.lang.String swapVersionId)
                        throws GreenHopperException
Throws:
GreenHopperException

release

public void release(java.lang.String swapId)
             throws GreenHopperException
Throws:
GreenHopperException

synchronize

public void synchronize()

synchronizeReport

public java.util.Set<com.atlassian.jira.issue.Issue> synchronizeReport()

hasSettings

public boolean hasSettings()
Description copied from interface: Board
Checks if the board has settings

Returns:
true if the board has settings

doSynchronize

public void doSynchronize()
Description copied from interface: NestableBoard
Fixes all issues that are not respecting the board hierarchy by assigning the missing boards to the issue.


doSynchronizeReport

public java.util.Set<com.atlassian.jira.issue.Issue> doSynchronizeReport()
Description copied from interface: NestableBoard
Retreives all issues that are not respecting the hierarchy of boards.

Returns:
all issues that are not respecting the hierarchy of boards.

updateMaster

public void updateMaster(java.lang.String masterId)
                  throws GreenHopperException
Description copied from interface: NestableBoard
Updates the master of the board

Parameters:
masterId - the new master
Throws:
GreenHopperException

getPendingQuery

public com.atlassian.query.Query getPendingQuery(boolean filter)
Description copied from interface: NestableBoard
Builds the query to show only the pending issues

Returns:
the query to show only the pending issues

getAssociations

public Associations getAssociations()
Description copied from interface: NestableBoard
Retrieves the associations

Returns:
Associations

getFirstLevelSubVersions

public java.util.Set<VersionBoard> getFirstLevelSubVersions()

canDrag

public boolean canDrag(BoardIssue boardIssue)
Returns:
whether or not the issue can be dragged in the board

canEditName

public boolean canEditName()
Description copied from interface: PlanningBoard
Can edit a box label

Returns:
true if the user can edit the box label

updatePermission

public int updatePermission()
Returns:
the Permission to Update

updateName

public void updateName(java.lang.String name)
                throws java.lang.Exception
Description copied from interface: PlanningBoard
Updates the name of the board

Parameters:
name - the new name of the board
Throws:
java.lang.Exception

doUpdateReport

public java.util.List<SubtaskBoard> doUpdateReport(java.util.Set<com.atlassian.jira.issue.Issue> issues)
Description copied from interface: PlanningBoard
Retrieves all the standard issues with subtasks that can be part of the update from the defined set of issues

Parameters:
issues - Set of issues to retrieve the parents that have candidate subtasks for the update
Returns:
The list of SubtaskBoard

doUpdate

public void doUpdate(java.util.Set<com.atlassian.jira.issue.Issue> issues,
                     java.lang.String boardId)
              throws java.lang.Exception
TODO Need to check if field is required...

Parameters:
issues - issues to update
boardId - Id of the board to associate
Throws:
java.lang.Exception

getSubtasks

public java.util.Collection<com.atlassian.jira.issue.Issue> getSubtasks(SubtaskBoard parent)
Description copied from interface: PlanningBoard
Retrieves the subtasks of the specified parent that are associated with the board

Returns:
the subtasks of the specified parent that are associated with the board

hasDescription

public boolean hasDescription()
Description copied from interface: PlanningBoard
Checks if the board has a description

Returns:
true if the board has a description

hasSubtasks

public boolean hasSubtasks(SubtaskBoard parent)
Description copied from interface: PlanningBoard
Checks if the parent has some subtasks associated with the board

Returns:
true if the parent has some subtasks associated with the board

isInSame

public boolean isInSame(com.atlassian.jira.issue.Issue issue1,
                        com.atlassian.jira.issue.Issue issue2)
Description copied from interface: PlanningBoard
Checks if both issues are in the same board

Returns:
true if both issues are in the same board

getDescription

public java.lang.String getDescription()
Description copied from interface: PlanningBoard
Retrieves the description of the board

Returns:
the description of the board

applyAsFilter

public com.atlassian.jira.jql.builder.JqlClauseBuilder applyAsFilter(com.atlassian.jira.jql.builder.JqlClauseBuilder builder,
                                                                     boolean pretty)

getDisplayableBoardForIssue

public java.lang.String getDisplayableBoardForIssue(com.atlassian.jira.issue.Issue issue)
Description copied from interface: Board
Retrieves the id of the board where the issue is displayed in

Parameters:
issue - to locate
Returns:
the id of the board

isAssociatedWith

public boolean isAssociatedWith(com.atlassian.jira.issue.Issue issue)
Description copied from interface: Board
Checks whether the issue is associated with this board, e.g. whether the issue version is the same or a sub version of this boards version


getCapacityKey

public java.lang.String getCapacityKey(WatchedField field)
Specified by:
getCapacityKey in interface BoardWithCapacities
Overrides:
getCapacityKey in class AbstractPlanningBoard

getMarkerKey

public java.lang.String getMarkerKey(WatchedField field)
Specified by:
getMarkerKey in interface BoardWithMarkers
Overrides:
getMarkerKey in class AbstractPlanningBoard

isTaskBoardAvailable

public boolean isTaskBoardAvailable()
Specified by:
isTaskBoardAvailable in interface PlanningBoard
Overrides:
isTaskBoardAvailable in class AbstractPlanningBoard

canManage

public boolean canManage()
Specified by:
canManage in interface PlanningBoard
Overrides:
canManage in class AbstractPlanningBoard

getCapacityTitle

public java.lang.String getCapacityTitle()
Specified by:
getCapacityTitle in interface BoardWithCapacities
Overrides:
getCapacityTitle in class AbstractPlanningBoard

getCapacityDescription

public java.lang.String getCapacityDescription()
Specified by:
getCapacityDescription in interface BoardWithCapacities
Overrides:
getCapacityDescription in class AbstractPlanningBoard

getBoardColumnPagination

protected ColumnPagination getBoardColumnPagination()
Description copied from class: AbstractPlanningBoard
Retrieves the board column pagination

Specified by:
getBoardColumnPagination in class AbstractPlanningBoard
Returns:
the ColumnPagination

getPendingKey

protected java.lang.String getPendingKey()
Specified by:
getPendingKey in class AbstractNestableBoard

computeNonWorkingDaysAndDates

protected void computeNonWorkingDaysAndDates()


Copyright © 2007-2012 Atlassian. All Rights Reserved.