|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kmr.scam.client.http.helper.UserBean
Title:
Description:
Copyright: Copyright (c) 2002
Company:
Field Summary | |
static String |
NAME
Context name |
Constructor Summary | |
UserBean(String username)
Default constructor for an "anonymous" user. |
|
UserBean(Subject subject,
String password)
Default constructor. |
Method Summary | |
void |
addRole(String role)
|
String |
getEmail()
|
String |
getFullname()
|
List |
getGroups()
List the Groups assigned to user. |
boolean |
getInRole(String role)
Same as isUserInRole(String) |
String |
getPassword()
Get the assigned user's password |
Principal |
getPrincipal()
Get the assigned principal |
List |
getRoles()
List the user's roles |
String |
getRolesString()
|
String |
getUser()
Get the assigned user's name |
boolean |
isUserInRole(String role)
Check if user is in role |
void |
setEmail(String str)
|
void |
setFullname(String str)
|
void |
setPassword(String str)
|
Model |
toModel()
Model representation of this object |
String |
toString()
String representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String NAME
Constructor Detail |
public UserBean(Subject subject, String password)
subject
- Subjectpassword
- Passwordpublic UserBean(String username)
username
- Username of "anonymous" userMethod Detail |
public String getUser()
public String getPassword()
public String getFullname()
public String getEmail()
public void setPassword(String str)
public void setFullname(String str)
public void setEmail(String str)
public void addRole(String role)
public Principal getPrincipal()
public List getGroups()
java.security.acl.Group
spublic List getRoles()
String
spublic String getRolesString()
public boolean isUserInRole(String role)
role
- Role-name
public boolean getInRole(String role)
isUserInRole(String)
role
- Role-name
public String toString()
public Model toModel() throws RDFException
RDFException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |