dlestrat    2004/09/18 12:35:58

  Modified:    jetspeed-api/src/java/org/apache/jetspeed/security User.java
                        UserManager.java BasePrincipal.java
  Removed:     jetspeed-api/src/java/org/apache/jetspeed/security
                        SecurityProvider.java
  Log:
  http://nagoya.apache.org/jira/browse/JS2-114#action_53185
  
  Revision  Changes    Path
  1.3       +7 -0      
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/User.java
  
  Index: User.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/User.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- User.java 18 Sep 2004 05:30:36 -0000      1.2
  +++ User.java 18 Sep 2004 19:35:58 -0000      1.3
  @@ -25,6 +25,13 @@
   public interface User
   {
       /**
  +     * <p>
  +     * The default user attributes property set.
  +     * </p>
  +     */
  +    final static String USER_INFO_PROPERTY_SET = "userinfo";
  +    
  +    /**
        * <p>Getter for the user [EMAIL PROTECTED] Subject} populated with the 
        * application principals.</p>
        * @return The [EMAIL PROTECTED] Subject}.
  
  
  
  1.2       +8 -4      
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/UserManager.java
  
  Index: UserManager.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/UserManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- UserManager.java  16 Jul 2004 19:31:05 -0000      1.1
  +++ UserManager.java  18 Sep 2004 19:35:58 -0000      1.2
  @@ -67,17 +67,21 @@
       /**
        * <p>An iterator of [EMAIL PROTECTED] User} finding users matching the
        * corresponding filter criteria.</p>
  +     * <p>Current implementation only allows for getting back all users with
  +     * "" as a fitler.</p>
  +     * TODO Complete filter implementation.
  +     * 
        * @param filter The filter used to retrieve matching users.
        * @return The Iterator of [EMAIL PROTECTED] User}.
        */
  -    Iterator getUsers(String filter);
  +    Iterator getUsers(String filter) throws SecurityException;
   
       /**
        * <p>Set the user password.</p>
        * @param username The user name.
  -     * @param password The password.
  +     * @param oldPassword The old password.
  +     * @param newPassword The new password.
        * @throws Throws a security exception.
  -     * TODO This method should be changed to support multiple credentials.
        */
  -    void setPassword(String username, String password) throws SecurityException;
  +    void setPassword(String username, String oldPassword, String newPassword) 
throws SecurityException;
   }
  
  
  
  1.2       +9 -0      
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/BasePrincipal.java
  
  Index: BasePrincipal.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/BasePrincipal.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BasePrincipal.java        16 Jul 2004 19:31:05 -0000      1.1
  +++ BasePrincipal.java        18 Sep 2004 19:35:58 -0000      1.2
  @@ -24,6 +24,15 @@
   */
   public interface BasePrincipal extends Principal, Serializable
   {
  +    /** <p>The Preferences user root node</p> */
  +    final static String  PREFS_USER_ROOT = "/user/";
  +    
  +    /** <p>The Preferences group root node</p> */
  +    final static String PREFS_GROUP_ROOT = "/group/";
  +    
  +    /** <p>The Preferences role root node</p> */
  +    final static String  PREFS_ROLE_ROOT = "/role/";
  +    
       /**
        * <p>Provides the principal full path prepending PREFS_{PRINCPAL}_ROOT if not 
prepended.</p>
        * @return The principal full path.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to