|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.site.Validation<ConstrainedBean,ConstrainedProperty>
com.uwyn.rife.authentication.credentials.RoleUser
public class RoleUser
Provides standard RoleUserCredentials functionalities by
implementing the property accessors and setting up basic validation rules.
These rules make the login and password mandatory and limit their length
according to the settings in RifeConfig.Authentication.
| Constructor Summary | |
|---|---|
RoleUser()
|
|
RoleUser(String login,
String password)
|
|
RoleUser(String login,
String password,
String role)
|
|
| Method Summary | |
|---|---|
protected void |
activateValidation()
This method is called at least once and maximum once when any method related to Validated rules, subjects and group or Constrained properties are used. |
String |
getLogin()
Retrieves the submitted login. |
String |
getPassword()
Retrieves the submitted password. |
boolean |
getRemember()
Indicates whether the submitted credentials should be remembered. |
String |
getRole()
Retrieves the submitted role. |
RoleUser |
login(String login)
|
RoleUser |
password(String password)
|
RoleUser |
remember(boolean remember)
|
RoleUser |
role(String role)
|
void |
setLogin(String login)
Sets the login to submit. |
void |
setPassword(String password)
Sets the password to submit. |
void |
setRemember(boolean remember)
Sets whether the submitted credentials should be remembered. |
void |
setRole(String role)
Sets the role to submit. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.uwyn.rife.site.Validated |
|---|
addRule, addValidationError, countValidationErrors, getRules, getValidatedSubjects, getValidationErrors, isSubjectValid, limitSubjectErrors, makeErrorValid, makeSubjectValid, provideValidatedBean, replaceValidationErrors, resetValidation, retrieveValidatedBean, unlimitSubjectErrors, validate, validate |
| Constructor Detail |
|---|
public RoleUser()
public RoleUser(String login,
String password)
public RoleUser(String login,
String password,
String role)
| Method Detail |
|---|
protected void activateValidation()
ValidationBy overriding this method, you can thus isolate all the validation setup code code and don't enforce a performance penalty at each object construction when doing it in the default constructor.
activateValidation in class Validation<ConstrainedBean,ConstrainedProperty>public String getLogin()
RoleUserCredentials
getLogin in interface RoleUserCredentialspublic RoleUser login(String login)
public void setLogin(String login)
RoleUserCredentials
setLogin in interface RoleUserCredentialslogin - the loginpublic String getPassword()
RoleUserCredentials
getPassword in interface RoleUserCredentialspublic RoleUser password(String password)
public void setPassword(String password)
RoleUserCredentials
setPassword in interface RoleUserCredentialspassword - the passwordpublic String getRole()
RoleUserCredentials
getRole in interface RoleUserCredentialspublic RoleUser role(String role)
public void setRole(String role)
RoleUserCredentials
setRole in interface RoleUserCredentialsrole - the rolepublic boolean getRemember()
RememberMe
getRemember in interface RememberMetrue if the submitted credentials should be
remembered; or
false otherwise
public RoleUser remember(boolean remember)
public void setRemember(boolean remember)
RememberMe
setRemember in interface RememberMeremember - true if the submitted credentials should
be remembered; or false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||