Package de.xima.fc.gui.common.bean
Class LoginBean
-
- All Implemented Interfaces:
ISupportChangeEventBean
,Serializable
@Named @ViewScoped public class LoginBean extends AJSFContext implements ISupportChangeEventBean
Bean for processing the login and resetting the password- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
localeBean
-
-
Constructor Summary
Constructors Constructor Description LoginBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
autoLoginExternal()
void
autoLoginPrivate()
void
changePasswordByLink()
Method for updating the password on reset.void
changePasswordByLogin()
void
checkLoginAjax()
Checks whether the user is still logged in.void
checkPasswordChangeView()
void
checkPasswordStrength()
Remote command that takes a password and checks its strength.XfcSession
createSession(Benutzer user)
void
destroy()
ApplicationEventBusBean
getApplicationEventBusBean()
Deprecated.Mandant
getClient()
List<Mandant>
getClientList()
String
getConfiguredPwdRules()
String
getEncodedUrl(String url)
LoginModel
getLogin()
int
getMinPwdLength()
String
getPasswortResetQueryString()
String
getPwdChangeHint()
String
getPwdLinkHash()
String
getPwdResetHint()
String
getPwdSetHint()
String
getPwdSetLoginMsg()
SessionBean
getSessionBean()
Deprecated.SessionEventBusBean
getSessionEventBusBean()
Deprecated.ViewBean
getViewBean()
Deprecated.void
handleChangeEvent()
boolean
hasClients()
Checks whether thereMandant
s availablevoid
init()
void
invalidateSession()
boolean
isHashExpired()
boolean
isNoUserSelect()
boolean
isStayLoggedIn()
void
login()
Logs in user with internal context.void
login(ELoginContext context)
void
loginExternal()
Logs in user with external context.void
loginExternalFD2Login()
Deprecated.No separate login required anymore, Designer should be integrated with JSF.void
loginInbox()
Logs in user with inbox context.void
loginViaDialog()
Called from within the login dialog.void
logout()
Logs out currently logged in user and invalidates the session.void
passwordForget()
Method for sending password-forgotten-mailboolean
renderStayLoggedIn()
void
setApplicationEventBusBean(ApplicationEventBusBean applicationEventBusBean)
Deprecated.void
setClient(Mandant client)
void
setNoUserSelect(boolean noUserSelect)
void
setPasswortResetQueryString(String passwortResetQueryString)
void
setPwdLinkHash(String pwdLinkHash)
void
setSessionBean(SessionBean sessionBean)
Deprecated.void
setSessionEventBusBean(SessionEventBusBean sessionEventBusBean)
Deprecated.void
setStayLoggedIn(boolean stayLoggedIn)
void
setViewBean(ViewBean viewBean)
Deprecated.boolean
showPasswordReset()
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findBean, findBean, findBean, findCurrentView, findUserContext, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg
-
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
destroy
@PreDestroy public void destroy()
-
getLogin
public LoginModel getLogin()
-
isNoUserSelect
public boolean isNoUserSelect()
-
setNoUserSelect
public void setNoUserSelect(boolean noUserSelect)
-
getClient
public Mandant getClient()
-
setClient
public void setClient(Mandant client)
-
setStayLoggedIn
public void setStayLoggedIn(boolean stayLoggedIn)
- Parameters:
stayLoggedIn
- the stayLoggedIn to set
-
isStayLoggedIn
public boolean isStayLoggedIn()
- Returns:
- the stayLoggedIn
-
getPwdLinkHash
public String getPwdLinkHash()
-
setPwdLinkHash
public void setPwdLinkHash(String pwdLinkHash)
-
isHashExpired
public boolean isHashExpired()
-
getPwdSetHint
public String getPwdSetHint()
-
getPwdChangeHint
public String getPwdChangeHint()
-
getPwdResetHint
public String getPwdResetHint()
-
getMinPwdLength
public int getMinPwdLength()
-
getPwdSetLoginMsg
public String getPwdSetLoginMsg()
-
hasClients
public boolean hasClients()
Checks whether thereMandant
s available
-
checkLoginAjax
public void checkLoginAjax()
Checks whether the user is still logged in. Used by the frontend to display a login dialog via AJAX if necessary.
-
login
public void login()
Logs in user with internal context. This method will be redirect the user.
-
loginViaDialog
public void loginViaDialog()
Called from within the login dialog. Performs a basic login, than redirects to the AJAX callback page.
-
loginInbox
public void loginInbox()
Logs in user with inbox context. This method will be redirect the user.
-
login
public void login(ELoginContext context)
-
autoLoginPrivate
public void autoLoginPrivate()
-
autoLoginExternal
public void autoLoginExternal()
-
loginExternal
public void loginExternal()
Logs in user with external context. This method will be redirect the user.
-
loginExternalFD2Login
@Deprecated public void loginExternalFD2Login()
Deprecated.No separate login required anymore, Designer should be integrated with JSF.Logs in user with external FD2 context. This method will be redirect the user.
-
logout
public void logout()
Logs out currently logged in user and invalidates the session. This method will be redirect the user.
-
createSession
public XfcSession createSession(Benutzer user)
-
passwordForget
public void passwordForget()
Method for sending password-forgotten-mail
-
changePasswordByLink
public void changePasswordByLink()
Method for updating the password on reset. This method will be redirect the user.
-
changePasswordByLogin
public void changePasswordByLogin()
-
checkPasswordStrength
public void checkPasswordStrength()
Remote command that takes a password and checks its strength. Returns a numerical value indicating how strong the password is.
-
handleChangeEvent
public void handleChangeEvent()
- Specified by:
handleChangeEvent
in interfaceISupportChangeEventBean
-
getConfiguredPwdRules
public String getConfiguredPwdRules()
-
checkPasswordChangeView
public void checkPasswordChangeView()
-
showPasswordReset
public boolean showPasswordReset()
-
invalidateSession
public void invalidateSession()
-
getPasswortResetQueryString
public String getPasswortResetQueryString()
-
setPasswortResetQueryString
public void setPasswortResetQueryString(String passwortResetQueryString)
-
renderStayLoggedIn
public boolean renderStayLoggedIn()
-
getApplicationEventBusBean
@Deprecated public ApplicationEventBusBean getApplicationEventBusBean()
Deprecated.
-
setApplicationEventBusBean
@Deprecated public void setApplicationEventBusBean(ApplicationEventBusBean applicationEventBusBean)
Deprecated.
-
getSessionEventBusBean
@Deprecated public SessionEventBusBean getSessionEventBusBean()
Deprecated.
-
setSessionEventBusBean
@Deprecated public void setSessionEventBusBean(SessionEventBusBean sessionEventBusBean)
Deprecated.
-
getSessionBean
@Deprecated public SessionBean getSessionBean()
Deprecated.
-
setSessionBean
@Deprecated public void setSessionBean(SessionBean sessionBean)
Deprecated.
-
getViewBean
@Deprecated public ViewBean getViewBean()
Deprecated.
-
setViewBean
@Deprecated public void setViewBean(ViewBean viewBean)
Deprecated.
-
-