1 16 package org.roller.pojos; 17 18 import java.io.Serializable ; 19 import java.util.ArrayList ; 20 import java.util.Collection ; 21 import java.util.Date ; 22 import java.util.List ; 23 24 25 26 31 public class PlanetSubscriptionData extends PersistentObject 32 implements Serializable , Comparable 33 { 34 35 protected String id; 36 37 38 protected String title; 39 40 41 protected String author; 42 43 44 protected String feedUrl; 45 46 47 protected String siteUrl; 48 49 50 protected Date lastUpdated; 51 52 53 protected List entries = new ArrayList (); 54 55 56 protected int inboundlinks = 0; 57 58 59 protected int inboundblogs = 0; 60 61 protected List groupAssocs = new ArrayList (); 62 63 65 71 public List getGroupSubscriptionAssocs() 72 { 73 return groupAssocs; 74 } 75 public void setGroupSubscriptionAssocs(List groupAssocs) 76 { 77 this.groupAssocs = groupAssocs; 78 } 79 80 84 public String getId() 85 { 86 return id; 87 } 88 public void setId(String id) 89 { 90 this.id = id; 91 } 92 98 public List getEntries() 99 { 100 return entries; 101 } 102 public void setEntries(List entries) 103 { 104 this.entries = entries; 105 } 106 109 public String getFeedUrl() 110 { 111 return feedUrl; 112 } 113 public void setFeedUrl(String feedUrl) 114 { 115 this.feedUrl = feedUrl; 116 } 117 120 public Date getLastUpdated() 121 { 122 return lastUpdated; 123 } 124 public void setLastUpdated(Date lastUpdated) 125 { 126 this.lastUpdated = lastUpdated; 127 } 128 131 public String getSiteUrl() 132 { 133 return siteUrl; 134 } 135 public void setSiteUrl(String siteUrl) 136 { 137 this.siteUrl = siteUrl; 138 } 139 142 public String getTitle() 143 { 144 return title; 145 } 146 public void setTitle(String title) 147 { 148 this.title = title; 149 } 150 153 public String getAuthor() 154 { 155 return author; 156 } 157 public void setAuthor(String author) 158 { 159 this.author = author; 160 } 161 164 public int getInboundlinks() 165 { 166 return inboundlinks; 167 } 168 public void setInboundlinks(int inboundlinks) 169 { 170 this.inboundlinks = inboundlinks; 171 } 172 175 public int getInboundblogs() 176 { 177 return inboundblogs; 178 } 179 public void setInboundblogs(int inboundblogs) 180 { 181 this.inboundblogs = inboundblogs; 182 } 183 184 186 188 public void setData(PersistentObject vo) 189 { 190 } 192 194 public int compareTo(Object o) 195 { 196 PlanetSubscriptionData other = (PlanetSubscriptionData)o; 197 return getFeedUrl().compareTo(other.getFeedUrl()); 198 } 199 200 public void addEntry(PlanetEntryData entry) 201 { 202 entries.add(entry); 203 } 204 205 public void addEntries(Collection newEntries) 206 { 207 entries.addAll(newEntries); 208 } 209 210 public void purgeEntries() 211 { 212 entries.clear(); 213 } 214 } 215 | Popular Tags |