Class PropertiesIndexHandler
java.lang.Object
org.nanohttpd.router.RouterNanoHTTPD.DefaultStreamHandler
org.nanohttpd.router.RouterNanoHTTPD.DefaultHandler
ch.autumo.beetroot.handler.BaseHandler
ch.autumo.beetroot.handler.DefaultIndexHandler
ch.autumo.beetroot.handler.properties.PropertiesIndexHandler
- All Implemented Interfaces:
Handler,RouterNanoHTTPD.UriResponder
Properties index handler.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.autumo.beetroot.handler.BaseHandler
BaseHandler.IfSectionHandler -
Field Summary
Fields inherited from class ch.autumo.beetroot.handler.DefaultIndexHandler
LOGFields inherited from class ch.autumo.beetroot.handler.BaseHandler
action, columns, emptyBean, entity, htmlData, htmlHead, initialValues, insertServletNameInTemplateRefs, MSG_TYPE_ERR, MSG_TYPE_INFO, MSG_TYPE_WARN, PRECISION_INPUT_TYPES, servletName, TAG_PREFIX_LANG, transientFields, uniqueFields -
Constructor Summary
ConstructorsConstructorDescriptionPropertiesIndexHandler(String entity) PropertiesIndexHandler(String entity, String msg) -
Method Summary
Modifier and TypeMethodDescriptionextractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) Extract one single table data field from result set standing at current row.Class<?>Get bean entity class that has been generated trough PLANT, self-written or null (then null in extract calls too).Page title show left above the navigation area.booleanOverwrite this method, to specifically extend handler authorization, e.g. with more app user roles.Methods inherited from class ch.autumo.beetroot.handler.DefaultIndexHandler
addAdditionalActions, changeAllowed, deleteAllowed, extractCustomSingleTableData, generateActionsTableData, getDeleteName, getPaginator, getResource, prepare, readDataMethods inherited from class ch.autumo.beetroot.handler.BaseHandler
addCheckBox, addErrorMessage, addHtmlDataLine, addHtmlHeadLine, addSuccessMessage, addWarningMessage, columns, columnsSize, deleteData, formatSingleValueForDB, get, getColumn, getColumnsForSql, getColumnsForSql, getCurrentEntityDbId, getCurrentSession, getCustomizedExceptionInformation, getData, getEmptyBean, getEntity, getHandlerClass, getHtmlData, getHtmlHead, getInsertValues, getLayout, getMessageType, getMimeType, getNewScanner, getNewScanner, getRedirectHandler, getSimpleManagementUserRoles, getStatus, getTableExport, getTemplateEngineErrorMessage, getTemplateEngineErrorTitle, getText, getText, getTransientFields, getUpdateSetClause, getUpdateSetClause, hasExternalLinks, hasNoColumnsConfig, initialize, initialValue, initValuesSize, isCurrentUserUpdate, isCustomResponse, isNoContentResponse, isNoContentResponseButRoute, isPrecisionInputType, isRetryCall, loginMarker, parseAssociatedEntities, parseUnassociatedEntities, patchInputValue, readSnippetResource, redirectedMarker, refreshUserRoles, registerDisplayField, registerRoutes, render, renderAll, saveData, setCurrentEntityDbId, setMessageType, setVar, setVarAll, showLangMenu, showMenu, uniqueFields, uniqueTest, updateDataMethods inherited from class org.nanohttpd.router.RouterNanoHTTPD.DefaultStreamHandler
delete, other, post, put
-
Constructor Details
-
PropertiesIndexHandler
-
PropertiesIndexHandler
-
-
Method Details
-
extractSingleTableData
public String extractSingleTableData(BeetRootHTTPSession session, ResultSet set, String columnName, int idx, Entity entity) throws Exception Description copied from class:DefaultIndexHandlerExtract one single table data field from result set standing at current row. NOTE: Never call "set.next()" !- Overrides:
extractSingleTableDatain classDefaultIndexHandler- Parameters:
session- HTTP sessionset- database result set pointing to current recordcolumnName- column name as configured in 'web/<entity>/columns.cfg'idx- SQL result set column indexentity- whole entity bean- Returns:
- html data extract <td>...</td>
- Throws:
Exception- exception
-
getBeanClass
Description copied from class:DefaultIndexHandlerGet bean entity class that has been generated trough PLANT, self-written or null (then null in extract calls too).- Overrides:
getBeanClassin classDefaultIndexHandler- Returns:
- bean entity class
-
hasAccess
Description copied from class:BaseHandlerOverwrite this method, to specifically extend handler authorization, e.g. with more app user roles.- Overrides:
hasAccessin classBaseHandler- Parameters:
userSession- user session- Returns:
- true if access is allowed, otherwise false
-
getTitle
Description copied from class:BaseHandlerPage title show left above the navigation area. If not overwritten, the entity name is shown starting with an upper-case letter!- Overrides:
getTitlein classBaseHandler- Parameters:
userSession- user session- Returns:
- page title
-