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
|
managerobjectModel, parameters, resolver, sourcecontentHandler, 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) |
disposerecycle, setupsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetConsumerprotected SearchUIModelExtensionPoint _searchModelManager
protected ServerCommHelper _serverCommHelper
public ModelColumnsGenerator()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class ServiceableGeneratorServiceExceptionpublic 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