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

Modified Files:
        NewsletterUtil.java 
Log Message:
CMSC-1347 - Remove the NewsletterContentPortlet, because it is depricated. It 
was used accidentally.


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-1347


Index: NewsletterUtil.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/util/NewsletterUtil.java,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -b -r1.47 -r1.48
--- NewsletterUtil.java 24 Feb 2009 11:16:09 -0000      1.47
+++ NewsletterUtil.java 25 Mar 2009 16:34:05 -0000      1.48
@@ -38,7 +38,6 @@
 import com.finalist.newsletter.domain.Term;
 import com.finalist.newsletter.domain.StatisticResult.HANDLE;
 import com.finalist.newsletter.services.impl.StatisticServiceImpl;
-import com.finalist.portlets.newsletter.NewsletterContentPortlet;
 
 public abstract class NewsletterUtil {
    
@@ -461,34 +460,6 @@
       }
    }
 
-   public static String getTermURL(String url, Set<Term> terms, int 
publicationId) {
-      if (null != terms) {
-         log.debug("get publication " + publicationId + " with " + 
terms.size() + " terms");
-         Cloud cloud = CloudProviderFactory.getCloudProvider().getCloud();
-         Node publicationNode = cloud.getNode(publicationId);
-
-         List<Node> relatedportlets = publicationNode.getRelatedNodes(PORTLET);
-
-         String termIds = "";
-         for (Term term : terms) {
-            termIds += term.getId() + ",";
-         }
-         if (termIds.endsWith(",")) {
-            termIds = termIds.substring(0, termIds.length() - 1);
-         }
-         for (Node portlet : relatedportlets) {
-            List<Node> portletdefNodes = 
portlet.getRelatedNodes(PORTLETDEFINITION);
-            String portletDefinition = 
portletdefNodes.get(0).getStringValue("definition");
-            if (portletDefinition.equals(NewsletterContentPortlet.DEFINITION)) 
{
-               RelationList relations = portlet.getRelations(PORTLETREL, 
publicationNode.getNodeManager());
-               String name = relations.getRelation(0).getStringValue("name");
-               url += 
"/_rp_".concat(name).concat("_").concat(NewsletterContentPortlet.NEWSLETTER_TERMS_PARAM).concat("/1_").concat(termIds);
-            }
-         }
-      }
-      return url;
-   }
-
 
    public static String getServerURL() {
       String hostUrl = PropertiesUtil.getProperty(SYSTEM_LIVEPATH);
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to