org.apache.jetspeed.security.impl
Class UserImpl

java.lang.Object
  extended by org.apache.jetspeed.security.impl.UserImpl
All Implemented Interfaces:
org.apache.jetspeed.security.User

public class UserImpl
extends Object
implements org.apache.jetspeed.security.User

A user made of a Subject and the user Preferences.

Author:
David Le Strat

Field Summary
private  Preferences preferences
           
private  Subject subject
           
 
Fields inherited from interface org.apache.jetspeed.security.User
USER_INFO_PROPERTY_SET, USER_INFO_SUBSITE
 
Constructor Summary
UserImpl()
          Default constructor.
UserImpl(Subject subject, Preferences preferences)
          User constructor given a subject and preferences.
 
Method Summary
 Preferences getPreferences()
           
 Subject getSubject()
           
 Preferences getUserAttributes()
           
 void setPreferences(Preferences preferences)
           
 void setSubject(Subject subject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subject

private Subject subject

preferences

private Preferences preferences
Constructor Detail

UserImpl

public UserImpl()

Default constructor.


UserImpl

public UserImpl(Subject subject,
                Preferences preferences)

User constructor given a subject and preferences.

Parameters:
subject - The subject.
preferences - The preferences.
Method Detail

getSubject

public Subject getSubject()
Specified by:
getSubject in interface org.apache.jetspeed.security.User
See Also:
User.getSubject()

setSubject

public void setSubject(Subject subject)
Specified by:
setSubject in interface org.apache.jetspeed.security.User
See Also:
User.setSubject(javax.security.auth.Subject)

getPreferences

public Preferences getPreferences()
Specified by:
getPreferences in interface org.apache.jetspeed.security.User
See Also:
User.getPreferences()

setPreferences

public void setPreferences(Preferences preferences)
Specified by:
setPreferences in interface org.apache.jetspeed.security.User
See Also:
User.setPreferences(java.util.prefs.Preferences)

getUserAttributes

public Preferences getUserAttributes()
Specified by:
getUserAttributes in interface org.apache.jetspeed.security.User


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.