|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.container.property.User
Represent an authenticating user for the Servlet container.
Constructor Summary | |
User()
|
Method Summary | |
void |
addRole(java.lang.String role)
|
void |
addRoles(java.util.List roles)
|
static java.util.Map |
createRoleMap(java.util.List users)
Create a user map indexed on the roles. |
boolean |
equals(java.lang.Object userObject)
|
java.lang.String |
getName()
|
java.lang.String |
getPassword()
|
java.util.List |
getRoles()
|
int |
hashCode()
|
protected static java.util.List |
parseRoles(java.lang.String rolesAsString)
Parse roles defined as a list in the format "role1,role2,...,roleN". |
protected static User |
parseUser(java.lang.String userAsString)
Parse a user defined in the format "name:pwd:role1,...roleN". |
static java.util.List |
parseUsers(java.lang.String usersAsString)
Parse a string representing the users (see ServletPropertySet.USERS . |
void |
setName(java.lang.String name)
|
void |
setPassword(java.lang.String password)
Sets the authenticated user password. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public User()
Method Detail |
public void setName(java.lang.String name)
name
- the user namepublic java.lang.String getName()
public void setPassword(java.lang.String password)
password
- the user passwordpublic java.lang.String getPassword()
public void addRole(java.lang.String role)
role
- a role attached to this userpublic void addRoles(java.util.List roles)
roles
- a list of roles attached to this userpublic java.util.List getRoles()
public boolean equals(java.lang.Object userObject)
Object.equals(java.lang.Object)
public int hashCode()
Object.hashCode()
public static java.util.List parseUsers(java.lang.String usersAsString)
ServletPropertySet.USERS
.
usersAsString
- the string representing the users
User
objectsprotected static User parseUser(java.lang.String userAsString)
userAsString
- the user defines as a string
protected static java.util.List parseRoles(java.lang.String rolesAsString)
rolesAsString
- the roles defined as a string
public static java.util.Map createRoleMap(java.util.List users)
users
- list of User
for which to extract roles from
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |