com.pyxis.greenhopper.jira.boards
Class TaskBoard

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
                  extended by com.pyxis.greenhopper.jira.boards.TaskBoard
All Implemented Interfaces:
Board, BoardWithCapacities, BoardWithMarkers, NestableBoard, PlanningBoard, java.lang.Comparable<Board>
Direct Known Subclasses:
OrphanTaskBoard, ParentTaskBoard

public class TaskBoard
extends VersionBoard


Field Summary
static java.lang.String KEY
           
protected  java.util.Map<java.lang.String,StepBoard> steps
           
static java.lang.String VIEW
           
 
Fields inherited from class com.pyxis.greenhopper.jira.boards.VersionBoard
DATA_KEY, nonWorkingDates, nonWorkingDays
 
Fields inherited from class com.pyxis.greenhopper.jira.boards.AbstractBoard
canBoardRank, context, id, issueView, log, name, pager
 
Constructor Summary
TaskBoard(BoardContext boardContext, com.atlassian.jira.project.version.Version version)
           
 
Method Summary
 boolean canBoardRank()
           
 boolean canDrag(BoardIssue boardIssue)
           
 boolean canSelect(BoardIssue issue)
           
 int computeStartFor(com.atlassian.jira.issue.Issue issue, int fallBackStart)
          Retrieves the page number where the issue is displayed
 boolean containsIssue(com.atlassian.jira.issue.MutableIssue issue)
          Checks if whether or not the issue is associated with the board
 java.util.TreeSet<VersionBoard> getAllBoards()
           
 java.util.Set<AssigneeBoard> getAllByBoardFilters()
           
 java.util.Set<TaskBoardTransition> getAvailableActions(com.atlassian.jira.issue.Issue issue)
           
 java.util.Set<TaskBoardTransition> getAvailableActions(com.atlassian.jira.issue.Issue issue, java.lang.String stepId)
           
 java.lang.String getBoardContainingIssue(com.atlassian.jira.issue.Issue issue)
           
 BoardIssue getBoardIssue(com.atlassian.jira.issue.Issue issue)
          Retrieves the decorated isssue
 PlanningBoard getByBoardFilter()
           
 double getColWidth()
           
 java.util.List<StepBoard> getConfiguredSteps()
           
 java.lang.String getDisplayableBoardForIssue(com.atlassian.jira.issue.Issue issue)
          Retrieves the id of the board where the issue is displayed in
 java.util.List<Board> getDisplayableParentBoards(com.atlassian.jira.issue.Issue issue, int defaultStart)
           
 java.util.List<Board> getDisplayableParentBoards(java.util.List<Board> boards, int start)
           
 int getExpandedColumnCount()
           
 java.util.Set<ResolveTransition> getInnerStatusActions(com.atlassian.jira.issue.Issue issue, java.lang.String stepId)
           
 java.lang.String getKey()
          Retrieves the key of the board
 StepBoard getLastStepBoard()
           
protected  com.atlassian.query.Query getMainQuery(boolean pretty)
           
 int getMaxIssues()
          Retrieves the maximum number of issues that can be displayed
 OrphanTaskBoard getOrphanBoard()
           
 java.util.List<ParentTaskBoard> getParentBoards()
           
 java.util.Set<java.lang.String> getParentIssueKeys()
           
 java.util.List<com.atlassian.jira.issue.Issue> getParentIssues()
           
protected  com.atlassian.query.Query getPrettyQuery()
           
protected  com.atlassian.query.Query getQuery()
           
 StepBoard getStepBoard(java.lang.String stepId)
           
 java.util.List<StepBoard> getStepBoards()
           
 int getStepBoardsCount()
           
 java.util.Map<java.lang.String,StepBoard> getSteps()
           
 java.lang.String getView()
          The issue view to display the issues in
 java.util.TreeSet<StepBoard> getVisibleStepBoards()
           
 boolean hideSubs()
           
protected  int indexOfBoard(ParentTaskBoard board)
           
protected  int indexOfParentIssue(com.atlassian.jira.issue.Issue issue)
           
 boolean isCompact()
           
 boolean isParentBoard(com.atlassian.jira.issue.Issue issue)
           
 int issuePagineCount()
           
 void setByBoardFilterId(java.lang.String boardFilterId)
           
 boolean showPending()
          Returns whether or not the board should be showing only the pending issues.
 
Methods inherited from class com.pyxis.greenhopper.jira.boards.VersionBoard
applyAsFilter, canEditName, canManage, computeNonWorkingDaysAndDates, doSynchronize, doSynchronizeReport, doUpdate, doUpdateReport, getAssociations, getBoardColumnPagination, getCapacityDescription, getCapacityKey, getCapacityTitle, getCarryonOptions, getCommittedNotDoneIssues, getCommittedNotDoneIssuesNotEditable, getDescription, getEndDate, getFirstLevelSubVersions, getMarkerKey, getMaster, getNonWorkingDates, getNonWorkingDays, getPendingKey, getPendingQuery, getPossibleMasters, getRegisteredEndDate, getRegisteredStartDate, getReleaseDate, getStartDate, getSubtasks, getVersion, hasDescription, hasSettings, hasSubtasks, isAssociatedWith, isInRange, isInSame, isOverdue, isReleasable, isReleased, isTaskBoardAvailable, release, swapUnDoneIssuesTo, synchronize, synchronizeReport, updateMaster, updateName, updatePermission
 
Methods inherited from class com.pyxis.greenhopper.jira.boards.AbstractNestableBoard
compareTo, getBoxCss, getDecoratedName, getDisplayQuery, getHierarchy, getMasterId, hasChildren, isInHierarchy, isMaster, isModifierOn
 
Methods inherited from class com.pyxis.greenhopper.jira.boards.AbstractPlanningBoard
canEditSettings, getAllByBoardFilterKey, getBoardCapacityKey, getBoardMarkerKey, getColumnPagination, getCursor, isByBoardFilterSupported, isCapacitySupported, isUnset, showLegendBar
 
Methods inherited from class com.pyxis.greenhopper.jira.boards.AbstractBoard
canManageStats, canRank, equals, focusOn, getAllIssues, getBoardContext, getContext, getDefaultStart, getDescription, getDisplayableIssues, getDisplayableIssuesFrom, getFocussedIssue, getHighLightedIssues, getId, getIssueKeys, getIssues, getIssues, getIssuesInPage, getIssueView, getMaxPagine, getName, getNavigatorQuery, getPageNumber, getPager, getPager, getPagination, getPluginLinks, getProject, getProjectId, getQuery, getRawName, getStart, getSummary, hashCode, hasMenuItems, hideDone, indexOf, isAssignedToMeOn, isCardsDisplayed, isHighLighting, isListDisplayed, isLocked, isMarkersSupported, isProjectAdmin, isSelectable, issueCount, 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, focusOn, getAllIssues, getBoardContext, getContext, getHighLightedIssues, getId, getIssues, getIssuesInPage, getIssueView, getMaxPagine, getName, getNavigatorQuery, getPagination, getProject, getProjectId, getQuery, getStart, getSummary, hasMenuItems, hideDone, 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

KEY

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

steps

protected java.util.Map<java.lang.String,StepBoard> steps
Constructor Detail

TaskBoard

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

isCompact

public boolean isCompact()

getKey

public java.lang.String getKey()
Description copied from interface: Board
Retrieves the key of the board

Specified by:
getKey in interface Board
Overrides:
getKey in class AbstractPlanningBoard
Returns:
the name

issuePagineCount

public int issuePagineCount()
Overrides:
issuePagineCount in class AbstractBoard

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

Specified by:
getDisplayableBoardForIssue in interface Board
Specified by:
getDisplayableBoardForIssue in interface PlanningBoard
Overrides:
getDisplayableBoardForIssue in class VersionBoard
Parameters:
issue - to locate
Returns:
the id of the board

getByBoardFilter

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

setByBoardFilterId

public void setByBoardFilterId(java.lang.String boardFilterId)
Specified by:
setByBoardFilterId in interface PlanningBoard
Overrides:
setByBoardFilterId in class AbstractPlanningBoard

getAllByBoardFilters

public java.util.Set<AssigneeBoard> getAllByBoardFilters()
Overrides:
getAllByBoardFilters in class AbstractPlanningBoard

getAllBoards

public java.util.TreeSet<VersionBoard> getAllBoards()
Overrides:
getAllBoards in class VersionBoard

getParentBoards

public java.util.List<ParentTaskBoard> getParentBoards()

getParentIssues

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

getParentIssueKeys

public java.util.Set<java.lang.String> getParentIssueKeys()

isParentBoard

public boolean isParentBoard(com.atlassian.jira.issue.Issue issue)

getOrphanBoard

public OrphanTaskBoard getOrphanBoard()

hideSubs

public boolean hideSubs()
Specified by:
hideSubs in interface Board
Overrides:
hideSubs in class AbstractBoard
Returns:
if the subtasks should be hidden or not

getBoardIssue

public BoardIssue getBoardIssue(com.atlassian.jira.issue.Issue issue)
Description copied from interface: Board
Retrieves the decorated isssue

Specified by:
getBoardIssue in interface Board
Overrides:
getBoardIssue in class AbstractBoard
Returns:
the BoardIssue

canBoardRank

public boolean canBoardRank()
Specified by:
canBoardRank in interface Board
Overrides:
canBoardRank in class AbstractPlanningBoard
Returns:
whether or not the ranking is enabled in the board

getStepBoard

public StepBoard getStepBoard(java.lang.String stepId)

getLastStepBoard

public StepBoard getLastStepBoard()

getStepBoards

public java.util.List<StepBoard> getStepBoards()

getVisibleStepBoards

public java.util.TreeSet<StepBoard> getVisibleStepBoards()

getSteps

public java.util.Map<java.lang.String,StepBoard> getSteps()

getStepBoardsCount

public int getStepBoardsCount()

getInnerStatusActions

public java.util.Set<ResolveTransition> getInnerStatusActions(com.atlassian.jira.issue.Issue issue,
                                                              java.lang.String stepId)

getAvailableActions

public java.util.Set<TaskBoardTransition> getAvailableActions(com.atlassian.jira.issue.Issue issue,
                                                              java.lang.String stepId)
                                                       throws com.atlassian.jira.workflow.WorkflowException
Throws:
com.atlassian.jira.workflow.WorkflowException

getAvailableActions

public java.util.Set<TaskBoardTransition> getAvailableActions(com.atlassian.jira.issue.Issue issue)
                                                       throws com.atlassian.jira.workflow.WorkflowException
Throws:
com.atlassian.jira.workflow.WorkflowException

getColWidth

public double getColWidth()

getExpandedColumnCount

public int getExpandedColumnCount()

getView

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

Specified by:
getView in interface Board
Overrides:
getView in class VersionBoard
Returns:
true if the context bar should be shown

getConfiguredSteps

public java.util.List<StepBoard> getConfiguredSteps()

getDisplayableParentBoards

public java.util.List<Board> getDisplayableParentBoards(java.util.List<Board> boards,
                                                        int start)

getDisplayableParentBoards

public java.util.List<Board> getDisplayableParentBoards(com.atlassian.jira.issue.Issue issue,
                                                        int defaultStart)

getBoardContainingIssue

public java.lang.String getBoardContainingIssue(com.atlassian.jira.issue.Issue issue)

computeStartFor

public int computeStartFor(com.atlassian.jira.issue.Issue issue,
                           int fallBackStart)
Description copied from interface: Board
Retrieves the page number where the issue is displayed

Specified by:
computeStartFor in interface Board
Overrides:
computeStartFor in class AbstractBoard
Returns:
page number where the issue is displayed

containsIssue

public boolean containsIssue(com.atlassian.jira.issue.MutableIssue issue)
Description copied from interface: Board
Checks if whether or not the issue is associated with the board

Specified by:
containsIssue in interface Board
Overrides:
containsIssue in class AbstractBoard

showPending

public boolean showPending()
Description copied from interface: NestableBoard
Returns whether or not the board should be showing only the pending issues.

Specified by:
showPending in interface NestableBoard
Overrides:
showPending in class AbstractNestableBoard
Returns:
true if the board should be showing only the pending issues.

canDrag

public boolean canDrag(BoardIssue boardIssue)
Specified by:
canDrag in interface Board
Overrides:
canDrag in class VersionBoard
Returns:
whether or not the issue can be dragged in the board

getMaxIssues

public int getMaxIssues()
Description copied from interface: Board
Retrieves the maximum number of issues that can be displayed

Specified by:
getMaxIssues in interface Board
Overrides:
getMaxIssues in class AbstractBoard
Returns:
the maximum number of issues that can be displayed

canSelect

public boolean canSelect(BoardIssue issue)
Specified by:
canSelect in interface Board
Overrides:
canSelect in class AbstractBoard
Returns:
whether or not the issue can be selected in the board

getQuery

protected com.atlassian.query.Query getQuery()
Overrides:
getQuery in class AbstractPlanningBoard

getPrettyQuery

protected com.atlassian.query.Query getPrettyQuery()
Overrides:
getPrettyQuery in class AbstractPlanningBoard

getMainQuery

protected com.atlassian.query.Query getMainQuery(boolean pretty)

indexOfBoard

protected int indexOfBoard(ParentTaskBoard board)

indexOfParentIssue

protected int indexOfParentIssue(com.atlassian.jira.issue.Issue issue)


Copyright © 2007-2014 Atlassian. All Rights Reserved.