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

Modified Files:
        CommunityServiceImpl.java 
Log Message:



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


Index: CommunityServiceImpl.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/CommunityServiceImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- CommunityServiceImpl.java   25 Jan 2008 14:44:35 -0000      1.2
+++ CommunityServiceImpl.java   29 Jan 2008 09:59:40 -0000      1.3
@@ -1,17 +1,19 @@
-package com.finalist.cmsc.services.community;
+/*
 
-/**
- * CommunityServiceImpl, a CMSc service class.
- * @author Remco Bos
- */
+This software is OSI Certified Open Source Software.
+OSI Certified is a certification mark of the Open Source Initiative.
+
+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.util.List;
 import java.util.Map;
 
 import javax.portlet.ActionRequest;
 import javax.portlet.ActionResponse;
 import javax.servlet.ServletConfig;
-import javax.servlet.ServletContext;
 
 import org.acegisecurity.Authentication;
 import org.acegisecurity.AuthenticationException;
@@ -21,13 +23,17 @@
 import org.acegisecurity.providers.UsernamePasswordAuthenticationToken;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.springframework.context.ApplicationContext;
 import org.springframework.web.context.WebApplicationContext;
 import org.springframework.web.context.support.WebApplicationContextUtils;
 
 import com.finalist.cmsc.services.Properties;
 import com.finalist.cmsc.services.community.preferences.PreferenceService;
 
+/**
+ * CommunityServiceImpl, a CMSc service class.
+ * 
+ * @author Remco Bos
+ */
 public class CommunityServiceImpl extends CommunityService {
 
     private static Log log = LogFactory.getLog(CommunityServiceImpl.class);
@@ -72,21 +78,23 @@
         return true;
     }
 
-    public Map<String, Map<String, String>> getUserProperty(String userName) {
-       return null;
-//     preferenceService..getUserProperty(userName);
+    public Map<Long, Map<String, String>> getPreferencesByModule(String 
userId) {
+       return preferenceService.getPreferencesByModule(userId);
+    }
+
+    public Map<String, Map<String, String>> getPreferencesByUserId(String 
userId) {
+       return preferenceService.getPreferencesByUserId(userId);
     }
 
-    public Map<String, Map<String, List<String>>> getPreferences(String 
module, String userId, String key, String value) {
-       return null;
-//     preferenceService.getPreferences(userName);
+    public Map<String, String> getPreferences(String module, String userId, 
String key) {
+       return preferenceService.getPreferences(module, userId, key);
     }
 
-    public void createPreference(String module, String userId, String key, 
List<String> values) {
-//     preferenceService.createPreferences(module, userName, key, value);
+    public void createPreference(String module, String userId, String key, 
String value) {
+       preferenceService.createPreference(module, userId, key, value);
     }
 
-    public void removePreferences(String module, String userId, String key) {
-//     preferenceService.deletePreferences(module, userId, key);
+    public void deletePreference(String module, String userId, String key, 
String value) {
+       preferenceService.deletePreference(module, userId, key, value);
     }
 }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to