|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.LoginBean
public class LoginBean
JSF Managed Bean. Backs the "login.jsp" view to provide the form fields used to enter user data for login. Also contains bean methods to validate form fields and action event fired in response to the Login button being pressed.
Field Summary | |
---|---|
protected BrowseBean |
browseBean
The BrowseBean reference |
static java.lang.String |
LOGIN_EXTERNAL_AUTH
|
static java.lang.String |
LOGIN_NOPERMISSIONS
|
static java.lang.String |
MSG_ERROR_LOGIN_NOPERMISSIONS
|
static java.lang.String |
MSG_PASSWORD_LENGTH
|
static java.lang.String |
MSG_USER_ERR
|
static java.lang.String |
MSG_USERNAME_LENGTH
|
protected NavigationBean |
navigator
The NavigationBean bean reference |
protected UserPreferencesBean |
preferences
The user preferences bean reference |
Constructor Summary | |
---|---|
LoginBean()
|
Method Summary | |
---|---|
protected org.alfresco.service.cmr.security.AuthenticationService |
getAuthenticationService()
|
java.lang.String |
getLogoutOutcome()
|
protected org.alfresco.service.cmr.repository.NodeService |
getNodeService()
|
java.lang.String |
getPassword()
|
protected org.alfresco.service.cmr.security.PersonService |
getPersonService()
|
java.lang.String |
getTeamLoginWarningHTML()
Returns the HTML to display if the system is in TEAM mode |
java.lang.String |
getUsername()
|
java.lang.String |
getUsernameInternal()
|
UserPreferencesBean |
getUserPreferencesBean()
|
boolean |
isLanguageSelect()
|
java.lang.String |
login()
Login action handler |
java.lang.String |
logout()
Invalidate ticket and logout user |
void |
setAuthenticationService(org.alfresco.service.cmr.security.AuthenticationService authenticationService)
|
void |
setBrowseBean(BrowseBean browseBean)
|
void |
setNavigator(NavigationBean navigator)
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
|
void |
setPassword(java.lang.String val)
|
void |
setPersonService(org.alfresco.service.cmr.security.PersonService personService)
|
void |
setUsername(java.lang.String val)
|
void |
setUserPreferencesBean(UserPreferencesBean preferences)
|
void |
validatePassword(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
Validate password field data is acceptable |
void |
validateUsername(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
Validate Username field data is acceptable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MSG_ERROR_LOGIN_NOPERMISSIONS
public static final java.lang.String MSG_USERNAME_LENGTH
public static final java.lang.String MSG_PASSWORD_LENGTH
public static final java.lang.String MSG_USER_ERR
public static final java.lang.String LOGIN_EXTERNAL_AUTH
public static final java.lang.String LOGIN_NOPERMISSIONS
protected BrowseBean browseBean
protected NavigationBean navigator
protected UserPreferencesBean preferences
Constructor Detail |
---|
public LoginBean()
Method Detail |
---|
public void setAuthenticationService(org.alfresco.service.cmr.security.AuthenticationService authenticationService)
authenticationService
- The AuthenticationService to set.protected org.alfresco.service.cmr.security.AuthenticationService getAuthenticationService()
public void setPersonService(org.alfresco.service.cmr.security.PersonService personService)
personService
- The personService to set.protected org.alfresco.service.cmr.security.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 java.lang.String getLogoutOutcome()
public void setUsername(java.lang.String val)
val
- Username from login dialogpublic java.lang.String getUsername()
public java.lang.String getUsernameInternal()
public void setPassword(java.lang.String val)
val
- Password from login dialogpublic java.lang.String getPassword()
public boolean isLanguageSelect()
public java.lang.String getTeamLoginWarningHTML()
public void validatePassword(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value) throws javax.faces.validator.ValidatorException
javax.faces.validator.ValidatorException
public void validateUsername(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value) throws javax.faces.validator.ValidatorException
javax.faces.validator.ValidatorException
public java.lang.String login()
public java.lang.String logout()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |