Package org.ametys.cms.search.ui.model
Class ColumnHelper
- java.lang.Object
-
- org.ametys.cms.search.ui.model.ColumnHelper
-
- All Implemented Interfaces:
Component
,Serviceable
public class ColumnHelper extends Object implements Component, Serviceable
Component providing methods to manipulatecolumns
for search models.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ColumnHelper.Column
A column and its (optional) label
-
Field Summary
Fields Modifier and Type Field Description protected ContentTypeExtensionPoint
_cTypeEP
The content type extension pointprotected ContentTypesHelper
_cTypeHelper
The content type helper.protected SystemPropertyExtensionPoint
_systemPropEP
The system property extension point.static String
ROLE
The Avalon role
-
Constructor Summary
Constructors Constructor Description ColumnHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ColumnHelper.Column>
getColumns(String columnsStr, Set<String> contentTypeIds)
From a string representing columns, returns the list of column ids with their (optional) labels.List<ColumnHelper.Column>
getColumns(List<String> columns, Set<String> contentTypeIds)
From a list of string representing columns, returns the list of column ids with their (optional) labels.void
service(ServiceManager manager)
-
-
-
Field Detail
-
_cTypeEP
protected ContentTypeExtensionPoint _cTypeEP
The content type extension point
-
_cTypeHelper
protected ContentTypesHelper _cTypeHelper
The content type helper.
-
_systemPropEP
protected SystemPropertyExtensionPoint _systemPropEP
The system property extension point.
-
-
Constructor Detail
-
ColumnHelper
public ColumnHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getColumns
public List<ColumnHelper.Column> getColumns(String columnsStr, Set<String> contentTypeIds)
From a string representing columns, returns the list of column ids with their (optional) labels.- Parameters:
columnsStr
- The columns as a stringcontentTypeIds
- The common content type- Returns:
- the list of column ids with their (optional) labels.
-
getColumns
public List<ColumnHelper.Column> getColumns(List<String> columns, Set<String> contentTypeIds)
From a list of string representing columns, returns the list of column ids with their (optional) labels.- Parameters:
columns
- The columnscontentTypeIds
- The common content type- Returns:
- the list of column ids with their (optional) labels.
-
-