Update of 
/var/cvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/security
In directory 
james.mmbase.org:/tmp/cvs-serv23684/src/java/com/finalist/cmsc/services/community/security

Modified Files:
        AuthenticationHibernateService.java AuthenticationService.java 
Log Message:
cmsc-979,990 some changes about community module


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/security


Index: AuthenticationHibernateService.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/security/AuthenticationHibernateService.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- AuthenticationHibernateService.java 15 Jul 2008 12:30:31 -0000      1.9
+++ AuthenticationHibernateService.java 24 Jul 2008 09:05:18 -0000      1.10
@@ -131,6 +131,12 @@
       return findAuthenticationByCriteria(criteria);
    }
 
+       @Transactional(readOnly = true)
+       private Authentication findAuthenticationByEmail(String email) {
+               Criteria criteria = 
getSession().createCriteria(Authentication.class).add(Restrictions.eq("userId", 
email));
+               return findAuthenticationByCriteria(criteria);
+       }
+
    @SuppressWarnings("unchecked")
    private Authentication findAuthenticationByCriteria(Criteria criteria) {
       List authenticationList = criteria.list();
@@ -185,4 +191,5 @@
        public Authentication createAuthentication(Authentication 
authentication)  {
                return createAuthentication(authentication.getUserId(), 
authentication.getPassword());
        }
+
 }


Index: AuthenticationService.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/security/AuthenticationService.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- AuthenticationService.java  15 Jul 2008 04:39:16 -0000      1.6
+++ AuthenticationService.java  24 Jul 2008 09:05:18 -0000      1.7
@@ -6,7 +6,7 @@
 The license (Mozilla version 1.0) can be read at the MMBase site.
 See http://www.MMBase.org/license
 
-*/
+ */
 package com.finalist.cmsc.services.community.security;
 
 import java.util.List;
@@ -25,7 +25,8 @@
     Authentication createAuthentication(String userId, String password);
 
     /**
-     * Update the login information for the authentication (typically called 
by the user)
+        * Update the login information for the authentication (typically 
called by
+        * the user)
      *
      * @param userId
      * @param oldPassword
@@ -34,17 +35,17 @@
     void updateAuthentication(String userId, String oldPassword, String 
newPassword);
 
     /**
-     * Set the login information for an authentication (typically called by an 
admin user)
+        * Set the login information for an authentication (typically called by 
an
+        * admin user)
      *
      * @param userId
      * @param newPassword
      */
     void updateAuthenticationPassword(String userId, String newPassword);
 
-
     /**
-     * Delete an authentication entry
-     * TODO if a authentication is deleted, what should happen with the user's 
content (in other systems)?
+        * Delete an authentication entry TODO if a authentication is deleted, 
what
+        * should happen with the user's content (in other systems)?
      *
      * @param id
      */
@@ -70,7 +71,8 @@
      * Is an authentication enabled or disabled?
      *
      * @param userId
-     * @return boolean returns true if a user is enabled, otherwise it returns 
false
+        * @return boolean returns true if a user is enabled, otherwise it 
returns
+        *         false
      */
     boolean isAuthenticationEnabled(String userId);
 
@@ -116,12 +118,14 @@
 
     /**
      * Finds all authentications
+        * 
      * @return list authentications
      */
     List<Authentication> findAuthentications();
     
     /**
      * Finds an authentication id for this userId
+        * 
      * @param userId
      * @return authenticationId
      */ 
@@ -129,9 +133,11 @@
 
        /**
         * Find authentication information by Id for a user
+        * 
         * @param authenticationId
         * @return Authentication
         */
    Authentication getAuthenticationById(Long authenticationId);
-   public Authentication createAuthentication(Authentication authentication) ;
+
+       public Authentication createAuthentication(Authentication 
authentication);
 }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to