Package ch.autumo.beetroot.handler.roles
Class RolesAddHandler
java.lang.Object
org.nanohttpd.router.RouterNanoHTTPD.DefaultStreamHandler
org.nanohttpd.router.RouterNanoHTTPD.DefaultHandler
ch.autumo.beetroot.handler.BaseHandler
ch.autumo.beetroot.handler.DefaultAddHandler
ch.autumo.beetroot.handler.roles.RolesAddHandler
- All Implemented Interfaces:
Handler,RouterNanoHTTPD.UriResponder
Roles add 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
ConstructorsConstructorDescriptionRolesAddHandler(String entity) RolesAddHandler(String entity, String errMsg) -
Method Summary
Modifier and TypeMethodDescriptionGet additional mandatory fields of the table that are not present and mandatory fields in the GUI.Class<?>Get bean entity class that has been generated trough PLANT, self-written or null (then null in extract calls too).Class<?>Overwrite to get the right re-route/redirect index handler after modifying data.booleanOverwrite this method, to specifically extend handler authorization, e.g. with more app user roles.Methods inherited from class ch.autumo.beetroot.handler.DefaultAddHandler
extractCustomSingleInputDiv, extractSingleInputDiv, extractSingleInputDiv, formatSingleValueForDB, getResource, getSelectValues, isSelect, readData, saveDataMethods inherited from class ch.autumo.beetroot.handler.BaseHandler
addCheckBox, addErrorMessage, addHtmlDataLine, addHtmlHeadLine, addSuccessMessage, addWarningMessage, columns, columnsSize, deleteData, get, getColumn, getColumnsForSql, getColumnsForSql, getCurrentEntityDbId, getCurrentSession, getCustomizedExceptionInformation, getData, getEmptyBean, getEntity, getHandlerClass, getHtmlData, getHtmlHead, getInsertValues, getLayout, getMessageType, getMimeType, getNewScanner, getNewScanner, getPaginator, getSimpleManagementUserRoles, getStatus, getTableExport, getTemplateEngineErrorMessage, getTemplateEngineErrorTitle, getText, getText, getTitle, 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, setCurrentEntityDbId, setMessageType, setVar, setVarAll, showLangMenu, showMenu, uniqueFields, uniqueTest, updateDataMethods inherited from class org.nanohttpd.router.RouterNanoHTTPD.DefaultStreamHandler
delete, other, post, put
-
Constructor Details
-
RolesAddHandler
-
RolesAddHandler
-
-
Method Details
-
getRedirectHandler
Description copied from class:BaseHandlerOverwrite to get the right re-route/redirect index handler after modifying data. It must be of the same entity as the last executing handler!- Overrides:
getRedirectHandlerin classBaseHandler- Returns:
- redirect index handler
-
getAddMandatoryFields
Description copied from class:DefaultAddHandlerGet additional mandatory fields of the table that are not present and mandatory fields in the GUI. They are usually the DB NOT NULL fields. Return the column/value pair within a map. The value must be an object that is representable as a string!- Specified by:
getAddMandatoryFieldsin classDefaultAddHandler- Returns:
- column/value pair map
-
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
-
getBeanClass
Description copied from class:DefaultAddHandlerGet bean entity class that has been generated trough PLANT, self-written or null (then null in extract calls too).- Overrides:
getBeanClassin classDefaultAddHandler- Returns:
- bean entity class
-