taylor 2004/09/17 22:30:13
Modified: components/security/src/java/org/apache/jetspeed/security/impl
UserImpl.java
Log:
added method to User to get the User Attributes
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.2 +10 -4
jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/impl/UserImpl.java
Index: UserImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/impl/UserImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- UserImpl.java 10 Mar 2004 06:07:47 -0000 1.1
+++ UserImpl.java 18 Sep 2004 05:30:12 -0000 1.2
@@ -26,6 +26,8 @@
*/
public class UserImpl implements User
{
+ private Subject subject;
+ private Preferences preferences;
/**
* <p>Default constructor.</p>
@@ -45,8 +47,6 @@
this.preferences = preferences;
}
- private Subject subject;
-
/**
* @see org.apache.jetspeed.security.User#getSubject()
*/
@@ -63,8 +63,6 @@
this.subject = subject;
}
- private Preferences preferences;
-
/**
* @see org.apache.jetspeed.security.User#getPreferences()
*/
@@ -81,4 +79,12 @@
this.preferences = preferences;
}
+ public Preferences getUserAttributes()
+ {
+ if (preferences != null)
+ {
+ return preferences.node("userinfo");
+ }
+ return null;
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]