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

Modified Files:
        NewsletterPublicationUtil.java 
Log Message:
Well, those are a lot of small fixes i made, but did not require a jira issue. 
I still commit them now because China is going to continue this project.


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


Index: NewsletterPublicationUtil.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/util/NewsletterPublicationUtil.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- NewsletterPublicationUtil.java      8 Jan 2008 10:45:00 -0000       1.16
+++ NewsletterPublicationUtil.java      8 Mar 2008 15:57:55 -0000       1.17
@@ -62,6 +62,7 @@
          if (publicationNode != null) {
             String urlFragment = String.valueOf(publicationNode.getNumber());
             publicationNode.setStringValue("urlfragment", urlFragment);
+            publicationNode.setStringValue("publishdate","null");
             publicationNode.commit();
 
             copyThemesAndContent(newsletterNode, publicationNode, copyContent);
@@ -106,23 +107,4 @@
       return (themes);
    }
 
-   public static void setPublicationNumber(Node newsletterNode, int value) {
-      int number = 0 + newsletterNode.getIntValue("lastpublicationnumber");
-      number = number + value;
-      newsletterNode.setIntValue("lastpublicationnumber", number);
-      newsletterNode.commit();
-   }
-
-   public static void updatePublicationTitle(Node publicationNode) {
-      /*
-       * Node newsletterNode = SearchUtil.findRelatedNode(publicationNode,
-       * "newsletter", "related"); int number =
-       * newsletterNode.getIntValue("lastpublicationnumber"); String edition =
-       * ResourceBundle.getBundle("newsletter").getString("edition"); String
-       * title = edition.concat(" " + String.valueOf(number));
-       * publicationNode.setStringValue("title", title);
-       * publicationNode.commit();
-       */
-   }
-
 }
\ No newline at end of file
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to