Class JKUserWebControllers
java.lang.Object
com.jk.web.faces.controllers.JKWebController
com.jk.webstack.controllers.JKWebAppBaseController
com.jk.webstack.controllers.JKWebControllerWithSqlDataAccess
com.jk.webstack.controllers.JKWebControllerWithOrmSupport<User>
com.jk.webstack.security.controllers.JKUserWebControllers
- All Implemented Interfaces:
Serializable
@Named("usersController")
@ViewScoped
public class JKUserWebControllers
extends JKWebControllerWithOrmSupport<User>
The Class MB_Login.
- See Also:
-
Field Summary
Fields inherited from class com.jk.webstack.controllers.JKWebControllerWithOrmSupport
mode
Fields inherited from class com.jk.webstack.controllers.JKWebControllerWithSqlDataAccess
sqlDataAccess
Fields inherited from class com.jk.web.faces.controllers.JKWebController
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Before insert.protected void
Before update.Change password.Gets the current password.Gets the user name.Gets the new password.protected SecurityService
Gets the service.getUser()
Return account object for current logged in user.boolean
isAdmin()
Checks if is admin.reset()
Reset.void
setCurrentPassword
(String currentPassword) Sets the current password.void
setNewPassword
(String newPassword) Sets the new password.Methods inherited from class com.jk.webstack.controllers.JKWebControllerWithOrmSupport
add, addToDatabase, afterDelete, afterInsert, afterUpdate, approvePayload, beforeDelete, cancelEdit, createEmptyModel, delete, deleteFromDatabase, duplicate, edit, fill, find, findPayload, getDataAccess, getEmptyModel, getFilterList, getFilterList2, getIdValue, getIdValue, getMode, getModel, getModelClass, getModelList, getOriginal, getPayload, getPayloads, getWorkflowEntityName, isAllowAdd, isAllowDelete, isAllowEdit, isAllowFill, isAllowReset, isAllowSave, isAlwaysRefreshList, isConfirmReeset, isEditMode, isEditTabular, isFieldModified, isInputDisabled, isReadOnlyMode, isWorkflowAvialable, rejectPayload, resetWorkFlow, save, saveAll, saveAllToDatabase, saveToDatabase, setAlwaysRefreshList, setConfirmReeset, setEditTabular, setFilterList, setFilterList2, setIdValue, setModel, setOriginal, setPayload, setPayloads, viewPayload
Methods inherited from class com.jk.webstack.controllers.JKWebControllerWithSqlDataAccess
execute, getSqlDataAccess, init
Methods inherited from class com.jk.webstack.controllers.JKWebAppBaseController
getActionLogName, getActionLogService, getEmail, getEmailService, getFamilyName, getFirstName, getIdToken, getUserName, isUserLoggedIn, logAction
Methods inherited from class com.jk.web.faces.controllers.JKWebController
context, error, error, executeAsyc, getContextParam, getContextPath, getFromAppliaction, getFromRequest, getFromSession, getParam, getParamterFromRequest, getRoles, getViewScopedManagedBean, handleException, isDebug, isDevelopmentMode, redirect, request, session, success, success, suggestName, updateUi, warning
-
Constructor Details
-
JKUserWebControllers
public JKUserWebControllers()
-
-
Method Details
-
getMessage
Gets the user name.- Returns:
- the user name
-
getUser
Return account object for current logged in user.- Returns:
- the user
-
getService
Gets the service.- Returns:
- the service
-
getCurrentPassword
Gets the current password.- Returns:
- the current password
-
setCurrentPassword
Sets the current password.- Parameters:
currentPassword
- the new current password
-
getNewPassword
Gets the new password.- Returns:
- the new password
-
setNewPassword
Sets the new password.- Parameters:
newPassword
- the new new password
-
changePassword
Change password.- Returns:
- the string
-
isAdmin
public boolean isAdmin()Checks if is admin.- Returns:
- true, if is admin
-
beforeInsert
protected void beforeInsert()Before insert.- Overrides:
beforeInsert
in classJKWebControllerWithOrmSupport<User>
-
beforeUpdate
protected void beforeUpdate()Before update.- Overrides:
beforeUpdate
in classJKWebControllerWithOrmSupport<User>
-
reset
Reset.- Overrides:
reset
in classJKWebControllerWithOrmSupport<User>
- Returns:
- the string
-