|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.web.component.TableLayoutUtilsImpl
public class TableLayoutUtilsImpl
Constructor Summary | |
---|---|
TableLayoutUtilsImpl(ApplicationProperties applicationProperties,
FieldManager fieldManager)
|
Method Summary | |
---|---|
java.util.List<ColumnLayoutItem> |
getColumns(com.opensymphony.user.User user,
java.util.List<java.lang.String> fields)
Get the columns based off the a list of field names |
java.util.List<ColumnLayoutItem> |
getColumns(com.opensymphony.user.User user,
java.lang.String applicationPropertyName)
Get the columns based off an application property |
java.util.List<ColumnLayoutItem> |
getColumns(com.opensymphony.user.User user,
java.lang.String context,
java.util.List<java.lang.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. |
java.util.List<java.lang.String> |
getDefaultColumnNames(java.lang.String applicationPropertyName)
Users can specify a list of columns to display in their application properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableLayoutUtilsImpl(ApplicationProperties applicationProperties, FieldManager fieldManager)
Method Detail |
---|
public java.util.List<java.lang.String> getDefaultColumnNames(java.lang.String applicationPropertyName)
TableLayoutUtils
getDefaultColumnNames
in interface TableLayoutUtils
applicationPropertyName
- The name of the property in jira-application.properties
public java.util.List<ColumnLayoutItem> getColumns(com.opensymphony.user.User user, java.lang.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 properties
FieldException
- if there is an exception thrown while retieving the fieldspublic java.util.List<ColumnLayoutItem> getColumns(com.opensymphony.user.User user, java.util.List<java.lang.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 java.util.List<ColumnLayoutItem> getColumns(com.opensymphony.user.User user, java.lang.String context, java.util.List<java.lang.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 fields
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |