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

Modified Files:
        Newsletter.java Publication.java Subscription.java 
Log Message:
CMSC-725 service classes,some class refactory.


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


Index: Newsletter.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/domain/Newsletter.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- Newsletter.java     10 Apr 2008 10:07:47 -0000      1.3
+++ Newsletter.java     15 Apr 2008 06:18:32 -0000      1.4
@@ -11,6 +11,7 @@
    private Date interval;
    private List<Tag> tags = new ArrayList<Tag>();
    private String title;
+
    private int number;
 
    public int getNumber() {


Index: Publication.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/domain/Publication.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- Publication.java    11 Apr 2008 07:11:25 -0000      1.2
+++ Publication.java    15 Apr 2008 06:18:32 -0000      1.3
@@ -1,5 +1,7 @@
 package com.finalist.newsletter.domain;
 
+import com.finalist.cmsc.navigation.NavigationUtil;
+
 import java.util.Date;
 
 public class Publication {
@@ -8,6 +10,7 @@
    private int newsletterId;
    private Date deliverTime;
    private STATUS status;
+   private String url;
 
 
    public int getId() {
@@ -46,4 +49,13 @@
    public void setStatus(STATUS status) {
       this.status = status;
    }
+
+   public String getUrl() {
+      String newsletterPath = 
NavigationUtil.getPathToRootString(publicationNode, true);
+      return url;
+   }
+
+   public void setUrl(String url) {
+      this.url = url;
+   }
 }


Index: Subscription.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/domain/Subscription.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- Subscription.java   11 Apr 2008 07:11:25 -0000      1.1
+++ Subscription.java   15 Apr 2008 06:18:32 -0000      1.2
@@ -1,14 +1,83 @@
 package com.finalist.newsletter.domain;
 
-public class Subscription extends Newsletter{
+import com.finalist.cmsc.services.community.person.Person;
 
-   private String email;
+public class Subscription extends Newsletter {
 
-   public String getEmail() {
-      return email;
+   private Person subscriber;
+   private String mimeType;
+   private String fromAddress;
+   private String fromName;
+   private String replyAddress;
+   private String replyname;
+   private String title;
+   private int id;
+
+   public Person getSubscriber() {
+      return subscriber;
+   }
+
+   public void setSubscriber(Person subscriber) {
+      this.subscriber = subscriber;
+   }
+
+   public String getMimeType() {
+      return mimeType;
+   }
+
+   public void setMimeType(String mimeType) {
+      this.mimeType = mimeType;
+   }
+
+   public int getId() {
+      return id;
+   }
+
+   public void setId(int id) {
+      this.id = id;
+   }
+
+   public Newsletter getNewsletter() {
+      return null;  //To change body of created methods use File | Settings | 
File Templates.
+   }
+
+   public String getFromAddress() {
+      return fromAddress;
+   }
+
+   public void setFromAddress(String fromAddress) {
+      this.fromAddress = fromAddress;
+   }
+
+   public String getFromName() {
+      return fromName;
+   }
+
+   public void setFromName(String fromName) {
+      this.fromName = fromName;
+   }
+
+   public String getReplyAddress() {
+      return replyAddress;
+   }
+
+   public void setReplyAddress(String replyAddress) {
+      this.replyAddress = replyAddress;
+   }
+
+   public String getReplyname() {
+      return replyname;
+   }
+
+   public void setReplyname(String replyname) {
+      this.replyname = replyname;
+   }
+
+   public String getTitle() {
+      return title;
    }
 
-   public void setEmail(String email) {
-      this.email = email;
+   public void setTitle(String title) {
+      this.title = title;
    }
 }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to