serge       02/02/26 21:05:37

  Modified:    src/java/org/apache/james/userrepository
                        UsersLDAPRepository.java
  Log:
  Patch from Eung-ju Park <[EMAIL PROTECTED]> to use getValueAsBoolean to make code 
more readable.
  
  Revision  Changes    Path
  1.6       +3 -3      
jakarta-james/src/java/org/apache/james/userrepository/UsersLDAPRepository.java
  
  Index: UsersLDAPRepository.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-james/src/java/org/apache/james/userrepository/UsersLDAPRepository.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- UsersLDAPRepository.java  18 Jan 2002 02:48:39 -0000      1.5
  +++ UsersLDAPRepository.java  27 Feb 2002 05:05:37 -0000      1.6
  @@ -86,9 +86,9 @@
   
           membersAttr = conf.getChild("MembersAttribute").getValue();
           manageGroupAttr
  -            = conf.getChild("ManageGroupAttribute").getValue().equals("TRUE");
  +            = conf.getChild("ManageGroupAttribute").getValueAsBoolean( false );
           groupAttr = conf.getChild("GroupAttribute").getValue();
  -        managePasswordAttr = 
conf.getChild("ManagePasswordAttribute").getValue().equals("TRUE");
  +        managePasswordAttr = 
conf.getChild("ManagePasswordAttribute").getValueAsBoolean( false );
           passwordAttr = conf.getChild("PasswordAttribute").getValue();
       }
   
  @@ -96,7 +96,7 @@
           this.comp = comp;
       }
   
  -    public void contextualize(Context context) 
  +    public void contextualize(Context context)
           throws ContextException {
           Collection serverNames
               = (Collection)context.get(Constants.SERVER_NAMES);
  
  
  

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

Reply via email to