public class MB_Security extends JKManagedBean
logger| Constructor and Description |
|---|
MB_Security() |
| Modifier and Type | Method and Description |
|---|---|
String |
changePassword()
Change password.
|
String |
getCurrentPassword()
Gets the current password.
|
String |
getMessage()
Gets the user name.
|
String |
getNewPassword()
Gets the new password.
|
protected SecurityService |
getService()
Gets the service.
|
User |
getUser()
Return account object for current logged in user.
|
String |
getUserName()
Gets the user name.
|
boolean |
isAdmin()
Checks if is admin.
|
boolean |
isUserLoggedIn()
Checks if is user logged in.
|
void |
setCurrentPassword(String currentPassword)
Sets the current password.
|
void |
setNewPassword(String newPassword)
Sets the new password.
|
context, error, error, executeAsyc, getContextParam, getContextPath, getFromAppliaction, getFromRequest, getFromSession, getParam, getParamterFromRequest, getRoles, getViewScopedManagedBean, handleException, isDebug, isDevelopmentMode, logAction, redirect, request, session, success, success, suggestName, updateUi, warningpublic String getMessage()
public User getUser()
public String getUserName()
getUserName in class JKManagedBeanpublic boolean isUserLoggedIn()
protected SecurityService getService()
public String getCurrentPassword()
public void setCurrentPassword(String currentPassword)
currentPassword - the new current passwordpublic String getNewPassword()
public void setNewPassword(String newPassword)
newPassword - the new new passwordpublic String changePassword()
public boolean isAdmin()
Copyright © 2023 Smart-Cloud. All rights reserved.