public class ModelColumnsGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
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 |
---|---|
void |
generate() |
protected List<CriteriaSearchUIModelWrapper.Column> |
getColumnsFromParameters(Map<String,Object> jsParameters)
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
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 occursprotected 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<CriteriaSearchUIModelWrapper.Column> getColumnsFromParameters(Map<String,Object> jsParameters)
jsParameters
- The JS parameters