public class TableLayoutUtilsImpl extends Object implements TableLayoutUtils
| Constructor and Description |
|---|
TableLayoutUtilsImpl(ApplicationProperties applicationProperties,
FieldManager fieldManager) |
| Modifier and Type | Method and Description |
|---|---|
List<ColumnLayoutItem> |
getColumns(ApplicationUser user,
List<String> fields)
Get the columns based off the a list of field names
|
List<ColumnLayoutItem> |
getColumns(ApplicationUser user,
String applicationPropertyName)
Get the columns based off an application property
|
List<ColumnLayoutItem> |
getColumns(ApplicationUser user,
String context,
List<String> columnNames,
boolean addDefaults)
Get the columns based on a list of field names, and the default as defined in application properties
with the given property name.
|
List<String> |
getDefaultColumnNames(String applicationPropertyName)
Users can specify a list of columns to display in their application properties.
|
public TableLayoutUtilsImpl(ApplicationProperties applicationProperties, FieldManager fieldManager)
public List<String> getDefaultColumnNames(String applicationPropertyName)
TableLayoutUtilsgetDefaultColumnNames in interface TableLayoutUtilsapplicationPropertyName - The name of the property in jira-application.propertiespublic List<ColumnLayoutItem> getColumns(ApplicationUser user, String applicationPropertyName) throws FieldException
TableLayoutUtilsgetColumns in interface TableLayoutUtilsuser - The suer to retreive columns for.applicationPropertyName - The property to get the list of fields from in the application propertiesFieldException - if there is an exception thrown while retieving the fieldspublic List<ColumnLayoutItem> getColumns(ApplicationUser user, List<String> fields) throws FieldException
TableLayoutUtilsgetColumns in interface TableLayoutUtilsuser - The suer to retreive columns for.fields - The list of columns to retrieve.FieldException - if there is an exception thrown while retieving the fieldspublic List<ColumnLayoutItem> getColumns(ApplicationUser user, String context, List<String> columnNames, boolean addDefaults) throws FieldException
TableLayoutUtilsgetColumns in interface TableLayoutUtilsuser - The user to retreive columns for.context - The name of the property in jira-application.propertiescolumnNames - The list of columns to retrieve.addDefaults - if true, will add the default columns.FieldException - if there is an exception thrown while retieving the fieldsCopyright © 2002-2021 Atlassian. All Rights Reserved.