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)
TableLayoutUtils
getDefaultColumnNames
in interface TableLayoutUtils
applicationPropertyName
- The name of the property in jira-application.propertiespublic List<ColumnLayoutItem> getColumns(ApplicationUser user, String applicationPropertyName) throws FieldException
TableLayoutUtils
getColumns
in interface TableLayoutUtils
user
- 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
TableLayoutUtils
getColumns
in interface TableLayoutUtils
user
- 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
TableLayoutUtils
getColumns
in interface TableLayoutUtils
user
- 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-2017 Atlassian. All Rights Reserved.