Package ch.autumo.beetroot.handler.users
Class NewQRCodeHandler
java.lang.Object
org.nanohttpd.router.RouterNanoHTTPD.DefaultStreamHandler
org.nanohttpd.router.RouterNanoHTTPD.DefaultHandler
ch.autumo.beetroot.handler.BaseHandler
ch.autumo.beetroot.handler.users.NewQRCodeHandler
- All Implemented Interfaces:
Handler,RouterNanoHTTPD.UriResponder
New QR Code 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.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet web entity (use plural, e.g.Get web resource file as it lies on the file system relatively to the started server process.booleanOverwrite this method, to specifically extend handler authorization, e.g. with more app user roles.protected StringisNoContentResponseButRoute(Session userSession) Overwrite this if your handler doesn't have an output.readData(BeetRootHTTPSession session, int id) Read data from DB that must be filled when the template is parsed.Methods inherited from class ch.autumo.beetroot.handler.BaseHandler
addCheckBox, addErrorMessage, addHtmlDataLine, addHtmlHeadLine, addSuccessMessage, addWarningMessage, columns, columnsSize, deleteData, formatSingleValueForDB, get, getBeanClass, getColumn, getColumnsForSql, getColumnsForSql, getCurrentEntityDbId, getCurrentSession, getCustomizedExceptionInformation, getData, getEmptyBean, getHandlerClass, getHtmlData, getHtmlHead, getInsertValues, getLayout, getMessageType, getMimeType, getNewScanner, getNewScanner, getPaginator, getRedirectHandler, getSimpleManagementUserRoles, getStatus, getTableExport, getTemplateEngineErrorMessage, getTemplateEngineErrorTitle, getText, getText, getTitle, getTransientFields, getUpdateSetClause, getUpdateSetClause, hasExternalLinks, hasNoColumnsConfig, initialize, initialValue, initValuesSize, isCurrentUserUpdate, isCustomResponse, isNoContentResponse, 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
-
NewQRCodeHandler
-
-
Method Details
-
readData
Description copied from class:BaseHandlerRead data from DB that must be filled when the template is parsed. Used by index and view handlers.- Overrides:
readDatain classBaseHandler- Parameters:
session- HTTP sessionid- db record id > 0 if a single record should be read otherwise < 0;- Returns:
- response or null, null means success, response's status must be checked!
- Throws:
Exception- exception
-
isNoContentResponseButRoute
Description copied from class:BaseHandlerOverwrite this if your handler doesn't have an output. When a new route (e.g. 'users/index') is returned, that new route is loaded by a script refresh. Ifnullis returned, nothing happens.- Overrides:
isNoContentResponseButRoutein classBaseHandler- Parameters:
userSession- user session- Returns:
nullor a new route
-
getResource
Description copied from class:BaseHandlerGet web resource file as it lies on the file system relatively to the started server process.- Specified by:
getResourcein interfaceHandler- Specified by:
getResourcein classBaseHandler- Returns:
- web resource
-
getEntity
Description copied from class:BaseHandlerGet web entity (use plural, e.g. 'tasks', 'users'.- Overrides:
getEntityin classBaseHandler- Returns:
- web entity
-
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
-