public class ModelColumnsGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
protected ColumnHelper |
_columnHelper
The helper for columns
|
protected ContentTypesHelper |
_cTypeHelper
The content type helper.
|
protected SearchUIModelExtensionPoint |
_searchModelManager
The extenstion point for search UI
|
protected ServerCommHelper |
_serverCommHelper
The servercomm helper
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
ModelColumnsGenerator() |
Modifier and Type | Method and Description |
---|---|
private List<ColumnHelper.Column> |
_getColumns(SearchUIModel model,
Map<String,Object> jsParameters,
Map<String,Object> contextualParameters) |
void |
generate() |
protected List<ColumnHelper.Column> |
getColumnsFromParameters(Map<String,Object> jsParameters,
Optional<String> contentType)
Get the columns from JS parameters
|
protected SearchUIModel |
getSearchModel(Map<String,Object> jsParameters)
Get search model.
|
protected void |
saxColumn(SearchUIColumn column,
Optional<String> label)
Sax search column.
|
protected void |
saxColumns(Map<String,Object> jsParameters)
Sax search columns.
|
void |
service(ServiceManager smanager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected SearchUIModelExtensionPoint _searchModelManager
protected ServerCommHelper _serverCommHelper
protected ContentTypesHelper _cTypeHelper
protected ColumnHelper _columnHelper
public ModelColumnsGenerator()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected SearchUIModel getSearchModel(Map<String,Object> jsParameters)
jsParameters
- JS parametersprotected void saxColumns(Map<String,Object> jsParameters) throws SAXException
jsParameters
- JS parametersSAXException
- if an error occursprivate List<ColumnHelper.Column> _getColumns(SearchUIModel model, Map<String,Object> jsParameters, Map<String,Object> contextualParameters)
protected void saxColumn(SearchUIColumn column, Optional<String> label) throws SAXException
column
- Column to SAXlabel
- The label of the column. Cannot be nullSAXException
- if an error occursprotected List<ColumnHelper.Column> getColumnsFromParameters(Map<String,Object> jsParameters, Optional<String> contentType)
jsParameters
- The JS parameterscontentType
- The content type