public class TableLayoutFactory extends Object
IssueTableLayoutBean
objects.Constructor and Description |
---|
TableLayoutFactory(FieldManager fieldManager,
TableLayoutUtils tableLayoutUtils,
ColumnLayoutItemFactory columnLayoutItemFactory,
SearchService searchService,
SearchSortUtil searchSortUtil,
SubTaskService subtasks) |
public TableLayoutFactory(FieldManager fieldManager, TableLayoutUtils tableLayoutUtils, ColumnLayoutItemFactory columnLayoutItemFactory, SearchService searchService, SearchSortUtil searchSortUtil, SubTaskService subtasks)
public IssueTableLayoutBean getStandardLayout(SearchRequest searchRequest, ApplicationUser user)
public IssueTableLayoutBean getDashboardLayout(ApplicationUser user, List<String> columnNames) throws FieldException
IssueFieldConstants
. If you pass null
you will get the default columns.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 by APKeys.ISSUE_TABLE_COLS_DASHBOARD
FieldException
public IssueTableLayoutBean getPrintableLayout(SearchRequest searchRequest, ApplicationUser user)
public IssueTableLayoutBean getStandardExcelLayout(SearchRequest searchRequest, ApplicationUser user)
public IssueTableLayoutBean getAllColumnsExcelLayout(SearchRequest searchRequest, ApplicationUser user)
public IssueTableLayoutBean getSubTaskIssuesLayout(ApplicationUser user, Issue parentIssue, SubTaskBean subTaskBean, String subTaskView, boolean timeTrackingData) throws ColumnLayoutStorageException, FieldException
Users can specify which columns to show in jira-application.properties. The default columns that are always shown:
The standard columns are retrieved from ColumnLayoutItemFactory
.
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 shownColumnLayoutStorageException
- if there is a problem accessing the column layout backing dataFieldException
- if there is a problem accessing the field backing datapublic List<Field> getAllUserCsvColumnsFields(SearchRequest searchRequest, ApplicationUser user)
public List<Field> getCurrentUserCsvColumnsFields(SearchRequest searchRequest, ApplicationUser user)
Copyright © 2002-2019 Atlassian. All Rights Reserved.