Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/util
In directory james.mmbase.org:/tmp/cvs-serv18871

Modified Files:
        NewsletterSubscriptionUtil.java 
Log Message:
CMSC-811,Create a newsletter publication,adding default term, move from 
NewsletterPublicationCreate to Newslettercreate


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/util
See also: http://www.mmbase.org/jira/browse/CMSC-811


Index: NewsletterSubscriptionUtil.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/util/NewsletterSubscriptionUtil.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- NewsletterSubscriptionUtil.java     5 May 2008 02:40:11 -0000       1.27
+++ NewsletterSubscriptionUtil.java     6 May 2008 03:02:44 -0000       1.28
@@ -77,23 +77,6 @@
       return (amount);
    }
 
-   public static int getNumberOfSubscribedThemes(String userName, int 
newsletterNumber) {
-      int amount = 0;
-      if (userName != null && newsletterNumber > 0) {
-         List<Integer> themesList = 
NewsletterUtil.getAllThemes(newsletterNumber);
-         if (themesList != null) {
-            List<String> subscribedThemes = 
NewsletterCommunication.getUserPreferences(userName, 
NewsletterSubscriptionUtil.NEWSLETTER_THEME);
-            for (int t = 0; t < themesList.size(); t++) {
-               int theme = Integer.valueOf(themesList.get(t));
-               if (subscribedThemes.contains(theme)) {
-                  amount++;
-               }
-            }
-         }
-      }
-      return (amount);
-   }
-
    public static String getPreferredMimeType(String userName) {
       if (userName != null) {
          String preferredMimeType = 
NewsletterCommunication.getUserPreference(userName, PREFERRED_MIMETYPE);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to