Package com.atlassian.jira.web.component
Class TableLayoutFactory
java.lang.Object
com.atlassian.jira.web.component.TableLayoutFactory
A class for creating
IssueTableLayoutBean
objects.-
Constructor Summary
ConstructorDescriptionTableLayoutFactory
(FieldManager fieldManager, TableLayoutUtils tableLayoutUtils, ColumnLayoutItemFactory columnLayoutItemFactory, SearchService searchService, SearchSortUtil searchSortUtil, SubTaskService subtasks) -
Method Summary
Modifier and TypeMethodDescriptiongetAllColumnsExcelLayout
(SearchRequest searchRequest, ApplicationUser user) getAllUserCsvColumnsFields
(SearchRequest searchRequest, ApplicationUser user) getCurrentUserCsvColumnsFields
(SearchRequest searchRequest, ApplicationUser user) getDashboardLayout
(ApplicationUser user, List<String> columnNames) Get the columns relevant for the dashboard, but limiting to a specific list of column names.getPrintableLayout
(SearchRequest searchRequest, ApplicationUser user) getStandardExcelLayout
(SearchRequest searchRequest, ApplicationUser user) getStandardLayout
(SearchRequest searchRequest, ApplicationUser user) getSubTaskIssuesLayout
(ApplicationUser user, Issue parentIssue, SubTaskBean subTaskBean, String subTaskView, boolean timeTrackingData) Get the layout for sub-tasks on the view issue page.
-
Constructor Details
-
TableLayoutFactory
public TableLayoutFactory(FieldManager fieldManager, TableLayoutUtils tableLayoutUtils, ColumnLayoutItemFactory columnLayoutItemFactory, SearchService searchService, SearchSortUtil searchSortUtil, SubTaskService subtasks)
-
-
Method Details
-
getStandardLayout
-
getDashboardLayout
public IssueTableLayoutBean getDashboardLayout(ApplicationUser user, List<String> columnNames) throws FieldException Get the columns relevant for the dashboard, but limiting to a specific list of column names. The column names have to matchIssueFieldConstants
. If you pass null you will get the default columns.- Parameters:
columnNames
- The columns to display. If no columns are specified, this will default to the columns specified in the jira-application.properties file with the key represented byAPKeys.ISSUE_TABLE_COLS_DASHBOARD
- Returns:
- A layout using the columns specified or default, with the correct display properties for the Dashboard.
- Throws:
FieldException
-
getPrintableLayout
-
getStandardExcelLayout
public IssueTableLayoutBean getStandardExcelLayout(SearchRequest searchRequest, ApplicationUser user) -
getAllColumnsExcelLayout
public IssueTableLayoutBean getAllColumnsExcelLayout(SearchRequest searchRequest, ApplicationUser user) -
getSubTaskIssuesLayout
public IssueTableLayoutBean getSubTaskIssuesLayout(ApplicationUser user, Issue parentIssue, SubTaskBean subTaskBean, String subTaskView, boolean timeTrackingData) throws ColumnLayoutStorageException, FieldException Get the layout for sub-tasks on the view issue page.Users can specify which columns to show in jira-application.properties. The default columns that are always shown:
- The sequence number (1, 2, etc)
- The summary of the sub-task
- The controls to re-order sub-tasks (if they are not disabled by dark feature)
- The links to update workflow on the subtasks
The standard columns are retrieved from
ColumnLayoutItemFactory
.- Parameters:
user
- To get the available columns fromparentIssue
- The parent issue of all the subTaskssubTaskBean
- The subTask bean that contains all the subtasks that will be displayed on this pagesubTaskView
- The 'view' which is passed to the subTaskBean to get the list of subtasks to display. Usually either 'unresolved' or 'all'timeTrackingData
- whether or not time tracking data should be shown- Returns:
- the IssueTableLayoutBean based on the application configuration.
- Throws:
ColumnLayoutStorageException
- if there is a problem accessing the column layout backing dataFieldException
- if there is a problem accessing the field backing data
-
getAllUserCsvColumnsFields
-
getCurrentUserCsvColumnsFields
public List<Field> getCurrentUserCsvColumnsFields(SearchRequest searchRequest, ApplicationUser user)
-