se.kmr.scam.client.http.helper
Class UserBean

java.lang.Object
  extended byse.kmr.scam.client.http.helper.UserBean

public class UserBean
extends Object

Title:

Description:

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
jand

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

NAME

public static final String NAME
Context name

See Also:
Constant Field Values
Constructor Detail

UserBean

public UserBean(Subject subject,
                String password)
Default constructor.

Parameters:
subject - Subject
password - Password

UserBean

public UserBean(String username)
Default constructor for an "anonymous" user.

Parameters:
username - Username of "anonymous" user
Method Detail

getUser

public String getUser()
Get the assigned user's name

Returns:
Username

getPassword

public String getPassword()
Get the assigned user's password

Returns:
Password

getFullname

public String getFullname()

getEmail

public String getEmail()

setPassword

public void setPassword(String str)

setFullname

public void setFullname(String str)

setEmail

public void setEmail(String str)

addRole

public void addRole(String role)

getPrincipal

public Principal getPrincipal()
Get the assigned principal

Returns:
Principal (same as getUser())

getGroups

public List getGroups()
List the Groups assigned to user.

Returns:
List of java.security.acl.Groups

getRoles

public List getRoles()
List the user's roles

Returns:
List of Strings

getRolesString

public String getRolesString()

isUserInRole

public boolean isUserInRole(String role)
Check if user is in role

Parameters:
role - Role-name
Returns:
true if user is in this role

getInRole

public boolean getInRole(String role)
Same as isUserInRole(String)

Parameters:
role - Role-name
Returns:
true if user is in this role

toString

public String toString()
String representation of this object.

Returns:
"user - [roles]"

toModel

public Model toModel()
              throws RDFException
Model representation of this object

Returns:
Model
Throws:
RDFException


Copyright © 2003 SCAM. All Rights Reserved.