public class LoginBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected BrowseBean |
browseBean
The BrowseBean reference
|
static String |
LOGIN_EXTERNAL_AUTH |
static String |
LOGIN_NOPERMISSIONS |
static String |
MSG_ERROR_LOGIN_NOPERMISSIONS |
static String |
MSG_PASSWORD_LENGTH |
static String |
MSG_USER_ERR |
static String |
MSG_USERNAME_LENGTH |
protected NavigationBean |
navigator
The NavigationBean bean reference
|
protected UserPreferencesBean |
preferences
The user preferences bean reference
|
Constructor and Description |
---|
LoginBean() |
Modifier and Type | Method and Description |
---|---|
protected AuthenticationService |
getAuthenticationService() |
boolean |
getIsExternalAuthentication() |
String |
getLogoutOutcome() |
protected org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
String |
getPassword() |
protected PersonService |
getPersonService() |
String |
getTeamLoginWarningHTML()
Returns the HTML to display if the system is in TEAM mode
|
String |
getUsername() |
String |
getUsernameInternal() |
UserPreferencesBean |
getUserPreferencesBean() |
boolean |
isLanguageSelect() |
String |
login()
Login action handler
|
String |
logout()
Invalidate ticket and logout user
|
void |
setAuthenticationService(AuthenticationService authenticationService) |
void |
setBrowseBean(BrowseBean browseBean) |
void |
setNavigator(NavigationBean navigator) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPassword(String val) |
void |
setPersonService(PersonService personService) |
void |
setUsername(String val) |
void |
setUserPreferencesBean(UserPreferencesBean preferences) |
void |
validateMatch(FacesContext context,
UIComponent component,
Object value)
Validate that field "confirm" matches to the field "password"
|
void |
validatePassword(FacesContext context,
UIComponent component,
Object value)
Validate password field data is acceptable
|
void |
validateUsername(FacesContext context,
UIComponent component,
Object value)
Validate Username field data is acceptable
|
public static final String MSG_ERROR_LOGIN_NOPERMISSIONS
public static final String MSG_USERNAME_LENGTH
public static final String MSG_PASSWORD_LENGTH
public static final String MSG_USER_ERR
public static final String LOGIN_EXTERNAL_AUTH
public static final String LOGIN_NOPERMISSIONS
protected BrowseBean browseBean
protected NavigationBean navigator
protected UserPreferencesBean preferences
public void setAuthenticationService(AuthenticationService authenticationService)
authenticationService
- The AuthenticationService to set.protected AuthenticationService getAuthenticationService()
public void setPersonService(PersonService personService)
personService
- The personService to set.protected PersonService getPersonService()
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- The nodeService to set.protected org.alfresco.service.cmr.repository.NodeService getNodeService()
public void setBrowseBean(BrowseBean browseBean)
browseBean
- The BrowseBean to set.public void setNavigator(NavigationBean navigator)
navigator
- The NavigationBean to set.public void setUserPreferencesBean(UserPreferencesBean preferences)
preferences
- The UserPreferencesBean to setpublic UserPreferencesBean getUserPreferencesBean()
public String getLogoutOutcome()
public void setUsername(String val)
val
- Username from login dialogpublic String getUsername()
public String getUsernameInternal()
public void setPassword(String val)
val
- Password from login dialogpublic String getPassword()
public boolean isLanguageSelect()
public String getTeamLoginWarningHTML()
public void validateMatch(FacesContext context, UIComponent component, Object value) throws ValidatorException
ValidatorException
public void validatePassword(FacesContext context, UIComponent component, Object value) throws ValidatorException
ValidatorException
public void validateUsername(FacesContext context, UIComponent component, Object value) throws ValidatorException
ValidatorException
public String login()
public String logout()
public boolean getIsExternalAuthentication()
Copyright © 2005–2017 Alfresco Software. All rights reserved.