com.pyxis.greenhopper.jira.configurations
Class UserBoardSettings

java.lang.Object
  extended by com.pyxis.greenhopper.jira.configurations.UserBoardSettings

public class UserBoardSettings
extends java.lang.Object

Holds view settings for a given user and project, such as full screen, legend, selected view/board type and the selected board id. This object is intentionally kept small, as it is updated quite often (whenever the user switches board for example). See UserBoardsPreferences for longer-term user preferences.


Field Summary
static java.lang.String ASSIGNED_TOME
           
static java.lang.String CHART_CF
           
static java.lang.String CHART_MASTER
           
static java.lang.String CHART_TYPE
           
static java.lang.String FULL_SCREEN
           
static java.lang.String HIDE_SUBS
           
static java.lang.String NOT_DONE
           
static java.lang.String PENDING
           
static java.lang.String PLAIN_TASKBOARD
           
static java.lang.String SELECTED_ABOARD
           
static java.lang.String SELECTED_BOARD
           
static java.lang.String SELECTED_CBOARD
           
static java.lang.String SELECTED_CHART
           
static java.lang.String SELECTED_PLANNING_VIEW
           
static java.lang.String SELECTED_VIEW
           
static java.lang.String SELECTED_VIEW_TYPE
           
static java.lang.String SHOW_LEGEND
           
 
Constructor Summary
UserBoardSettings(com.atlassian.jira.project.Project project, com.atlassian.crowd.embedded.api.User user)
           
 
Method Summary
 WatchedField getChartCustomField(BoardContext boardContext)
           
 java.lang.String getChartType(BoardContext boardContext)
           
 java.util.HashMap<java.lang.String,java.lang.Object> getData()
           
 java.lang.String getIssueDisplay(java.lang.String view)
           
 IssueView getIssueView(java.lang.String view)
           
 java.lang.String getSelectedAssigneeId()
           
 java.lang.Long getSelectedBacklogId()
           
 java.lang.Long getSelectedChartId()
           
 java.lang.Long getSelectedComponentId()
           
 Context getSelectedContext(BoardContext boardContext, java.lang.String view)
           
 java.lang.String getSelectedContextName(java.lang.String view)
          Get the selected context for a given view.
 java.lang.String getSelectedPlanningView()
           
 java.lang.Long getSelectedVersionId()
           
 java.lang.String getSelectedView()
           
 boolean hideSubs(java.lang.String view)
           
 boolean isAssignedToMeOn(java.lang.String view)
           
 boolean isCardView(java.lang.String view)
           
 boolean isForMaster()
           
 boolean isFullScreen()
           
 boolean isListView(java.lang.String view)
           
 boolean isNotDoneOnlyOn(java.lang.String view)
           
 boolean isPlainTaskBoard()
           
 boolean isSummaryView(java.lang.String view)
           
 void removeIssueDisplay(java.lang.String view)
           
 void save()
           
 void setChartCustomField(java.lang.String fieldId)
           
 void setChartType(java.lang.String chartType)
           
 void setForMaster(boolean forMaster)
           
 void setFullScreen(boolean fullScreen)
           
 void setIssueDisplay(java.lang.String display, java.lang.String view)
           
 void setLegendBar(boolean doShow)
           
 void setPlainTaskBoard(java.lang.Boolean plainTaskBoard)
           
 void setSelectedAssigneeId(java.lang.String boardId)
           
 void setSelectedBacklogId(java.lang.Long boardId)
           
 void setSelectedChartId(java.lang.Long boardId)
           
 void setSelectedComponentId(java.lang.Long boardId)
           
 void setSelectedContextName(java.lang.String name, java.lang.String view)
           
 void setSelectedPlanningView(java.lang.String planningView)
           
 void setSelectedVersionId(java.lang.Long boardId)
           
 void setSelectedView(java.lang.String selectedView)
           
 boolean showLegendBar()
           
 boolean showPending(java.lang.String view)
           
 void toggleAssignedToMe(java.lang.String view)
           
 void toggleHideSubs(java.lang.String view)
           
 void toggleNotDoneOnly(java.lang.String view)
           
 void togglePending(java.lang.String view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECTED_VIEW_TYPE

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

HIDE_SUBS

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

PENDING

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

ASSIGNED_TOME

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

NOT_DONE

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

FULL_SCREEN

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

SHOW_LEGEND

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

SELECTED_VIEW

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

SELECTED_PLANNING_VIEW

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

SELECTED_BOARD

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

SELECTED_CHART

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

SELECTED_CBOARD

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

SELECTED_ABOARD

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

PLAIN_TASKBOARD

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

CHART_MASTER

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

CHART_TYPE

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

CHART_CF

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

UserBoardSettings

public UserBoardSettings(com.atlassian.jira.project.Project project,
                         com.atlassian.crowd.embedded.api.User user)
Method Detail

getData

public java.util.HashMap<java.lang.String,java.lang.Object> getData()

getIssueView

public IssueView getIssueView(java.lang.String view)

getSelectedView

public java.lang.String getSelectedView()

getIssueDisplay

public java.lang.String getIssueDisplay(java.lang.String view)

getSelectedContext

public Context getSelectedContext(BoardContext boardContext,
                                  java.lang.String view)

setSelectedContextName

public void setSelectedContextName(java.lang.String name,
                                   java.lang.String view)

getSelectedContextName

public java.lang.String getSelectedContextName(java.lang.String view)
Get the selected context for a given view.


showPending

public boolean showPending(java.lang.String view)

hideSubs

public boolean hideSubs(java.lang.String view)

isAssignedToMeOn

public boolean isAssignedToMeOn(java.lang.String view)

isNotDoneOnlyOn

public boolean isNotDoneOnlyOn(java.lang.String view)

getSelectedPlanningView

public java.lang.String getSelectedPlanningView()

getSelectedVersionId

public java.lang.Long getSelectedVersionId()

getSelectedBacklogId

public java.lang.Long getSelectedBacklogId()

getSelectedComponentId

public java.lang.Long getSelectedComponentId()

getSelectedChartId

public java.lang.Long getSelectedChartId()

getSelectedAssigneeId

public java.lang.String getSelectedAssigneeId()

isPlainTaskBoard

public boolean isPlainTaskBoard()

showLegendBar

public boolean showLegendBar()

setLegendBar

public void setLegendBar(boolean doShow)

isFullScreen

public boolean isFullScreen()

setFullScreen

public void setFullScreen(boolean fullScreen)

isListView

public boolean isListView(java.lang.String view)

isCardView

public boolean isCardView(java.lang.String view)

isSummaryView

public boolean isSummaryView(java.lang.String view)

getChartType

public java.lang.String getChartType(BoardContext boardContext)

getChartCustomField

public WatchedField getChartCustomField(BoardContext boardContext)

isForMaster

public boolean isForMaster()

setSelectedView

public void setSelectedView(java.lang.String selectedView)

setIssueDisplay

public void setIssueDisplay(java.lang.String display,
                            java.lang.String view)

removeIssueDisplay

public void removeIssueDisplay(java.lang.String view)

togglePending

public void togglePending(java.lang.String view)

toggleHideSubs

public void toggleHideSubs(java.lang.String view)

toggleAssignedToMe

public void toggleAssignedToMe(java.lang.String view)

toggleNotDoneOnly

public void toggleNotDoneOnly(java.lang.String view)

setSelectedPlanningView

public void setSelectedPlanningView(java.lang.String planningView)

setPlainTaskBoard

public void setPlainTaskBoard(java.lang.Boolean plainTaskBoard)

setSelectedVersionId

public void setSelectedVersionId(java.lang.Long boardId)

setSelectedComponentId

public void setSelectedComponentId(java.lang.Long boardId)

setSelectedChartId

public void setSelectedChartId(java.lang.Long boardId)

setSelectedAssigneeId

public void setSelectedAssigneeId(java.lang.String boardId)

setSelectedBacklogId

public void setSelectedBacklogId(java.lang.Long boardId)

setForMaster

public void setForMaster(boolean forMaster)

setChartType

public void setChartType(java.lang.String chartType)

setChartCustomField

public void setChartCustomField(java.lang.String fieldId)

save

public void save()


Copyright © 2007-2012 Atlassian. All Rights Reserved.