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

Modified Files:
      Tag: b1_4
        CommunityServiceImpl.java 
Log Message:
CMSC-830 - change functionname to match returnvalue (+formatting, + javadoc)


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community
See also: http://www.mmbase.org/jira/browse/CMSC-830


Index: CommunityServiceImpl.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/CommunityServiceImpl.java,v
retrieving revision 1.7.2.3
retrieving revision 1.7.2.4
diff -u -b -r1.7.2.3 -r1.7.2.4
--- CommunityServiceImpl.java   21 Mar 2008 16:46:29 -0000      1.7.2.3
+++ CommunityServiceImpl.java   26 Mar 2008 09:44:08 -0000      1.7.2.4
@@ -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;
 
 import java.text.MessageFormat;
@@ -121,7 +121,7 @@
        private User getPrincipal() {
        SecurityContext context = SecurityContextHolder.getContext();
        org.acegisecurity.Authentication authentication = 
context.getAuthentication();
-       return authentication != null ? (User)authentication.getPrincipal() : 
null;
+      return authentication != null ? (User) authentication.getPrincipal() : 
null;
     }
 
        public Map<Long, Map<String, String>> getPreferencesByModule(String 
module) {
@@ -132,6 +132,7 @@
        return preferenceService.getPreferencesByUserId(userId);
     }
 
+   @Override
     public List<String> getPreferenceValues(String module, String userId, 
String key) {
        return preferenceService.getPreferenceValues(module, userId, key);
     }
@@ -144,7 +145,7 @@
        preferenceService.deletePreference(module, userId, key, value);
     }
 
-    //TODO: replace the previous methods by methods who accept the following
+   // TODO: replace the previous methods by methods who accept the following
     //      properties!
 
     /**
@@ -152,7 +153,7 @@
      */
        @Override
        public void createPreference(String module, String userId, String key, 
List<String> values) {
-               for(String value : values) {
+      for (String value : values) {
                        preferenceService.createPreference(module, userId, key, 
value);
                }
        }
@@ -161,8 +162,7 @@
      * @deprecated please try to use another service
      */
        @Override
-       public Map<String, Map<String, List<String>>> getPreferences(String 
module,
-                       String userId, String key, String value) {
+   public Map<String, Map<String, List<String>>> getPreferences(String module, 
String userId, String key, String value) {
                return null;
        }
 
@@ -171,7 +171,7 @@
      */
        @Override
        public Map<String, Map<String, String>> getUserProperty(String userId) {
-//             return preferenceService.getPreferencesByUserId(userId);
+      // return preferenceService.getPreferencesByUserId(userId);
                return null;
        }
 
@@ -188,7 +188,7 @@
       }
       Person person = new Person();
       person.setEmail(email);
-      List<Person> persons = personService.getPerson(person);
+      List<Person> persons = personService.getPersons(person);
       List<Authentication> authList = new ArrayList<Authentication>(); 
       StringBuilder body = new StringBuilder();
       
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to