com.pyxis.greenhopper.jira.boards
Class ProjectBoard

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.ProjectBoard
All Implemented Interfaces:
Board, BoardWithCapacities, BoardWithMarkers, PlanningBoard, java.lang.Comparable<Board>

public class ProjectBoard
extends AbstractPlanningBoard


Field Summary
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
ProjectBoard(BoardContext boardContext)
           
 
Method Summary
 com.atlassian.jira.jql.builder.JqlClauseBuilder applyAsFilter(com.atlassian.jira.jql.builder.JqlClauseBuilder builder, boolean pretty)
           
 boolean canDrag(BoardIssue issue)
           
 boolean canEditName()
          Can edit a box label
 void doUpdate(java.util.Set<com.atlassian.jira.issue.Issue> issues, java.lang.String boardId)
          Will associate all issues with the new board
 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<ProjectBoard> getAllBoards()
           
protected  ColumnPagination getBoardColumnPagination()
          Retrieves the board column pagination
 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.util.Collection<com.atlassian.jira.issue.Issue> getSubtasks(SubtaskBoard parent)
          Retrieves the subtasks of the specified parent that are associated with the board
 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 isCapacitySupported()
           
 boolean isInSame(com.atlassian.jira.issue.Issue issue1, com.atlassian.jira.issue.Issue issue2)
          Checks if both issues are in the same board
 void updateName(java.lang.String name)
          Updates the name of the board
 int updatePermission()
           
 
Methods inherited from class com.pyxis.greenhopper.jira.boards.AbstractPlanningBoard
canBoardRank, canEditSettings, canManage, getAllByBoardFilterKey, getAllByBoardFilters, getBoardCapacityKey, getBoardMarkerKey, getByBoardFilter, getCapacityDescription, getCapacityKey, getCapacityTitle, getColumnPagination, getCursor, getKey, getMarkerKey, getPrettyQuery, getQuery, isByBoardFilterSupported, isTaskBoardAvailable, isUnset, setByBoardFilterId, showLegendBar
 
Methods inherited from class com.pyxis.greenhopper.jira.boards.AbstractBoard
canManageStats, canRank, canSelect, compareTo, computeStartFor, containsIssue, equals, focusOn, getAllIssues, getBoardContext, getBoardIssue, getBoxCss, getContext, getDecoratedName, getDefaultStart, getDescription, getDisplayableIssues, getDisplayableIssuesFrom, getDisplayQuery, 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, isModifierOn, 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, getBoxCss, getContext, getDecoratedName, getDisplayQuery, getHighLightedIssues, getId, getIssues, getIssuesInPage, getIssueView, getMaxIssues, getMaxPagine, getName, getNavigatorQuery, getPagination, getProject, getProjectId, getQuery, getStart, getSummary, hasMenuItems, hideDone, hideSubs, isAssignedToMeOn, isCardsDisplayed, isHighLighting, isListDisplayed, isLocked, isMarkersSupported, isModifierOn, isSelectable, issueCount, isSummariesDisplayed, showParentSubInfo, showProgressStats, showStats
 

Field Detail

VIEW

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

ProjectBoard

public ProjectBoard(BoardContext boardContext)
Method Detail

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

getAllBoards

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

canDrag

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

hasSettings

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

Returns:
true if the board has settings

isCapacitySupported

public boolean isCapacitySupported()
Specified by:
isCapacitySupported in interface Board
Overrides:
isCapacitySupported in class AbstractPlanningBoard

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)
Description copied from interface: PlanningBoard
Updates the name of the board

Parameters:
name - the new name of the board

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
Description copied from interface: PlanningBoard
Will associate all issues with the new board

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

getDescription

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

Returns:
the description of 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

hasDescription

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

Returns:
true if the board has a description

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

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

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


getBoardColumnPagination

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

Specified by:
getBoardColumnPagination in class AbstractPlanningBoard
Returns:
the ColumnPagination


Copyright © 2007-2012 Atlassian. All Rights Reserved.