1 31 package org.blojsom.blog; 32 33 import java.util.Date ; 34 import java.util.List ; 35 import java.util.Locale ; 36 import java.util.Map ; 37 38 45 public interface Entry { 46 47 52 Integer getId(); 53 54 59 void setId(Integer id); 60 61 66 Integer getBlogId(); 67 68 73 void setBlogId(Integer blogId); 74 75 80 public Integer getBlogCategoryId(); 81 82 87 public void setBlogCategoryId(Integer blogCategoryId); 88 89 96 Date getDate(); 97 98 103 void setDate(Date entryDate); 104 105 110 String getRFC822Date(); 111 112 117 String getUTCDate(); 118 119 125 String getISO8601Date(); 126 127 133 String getDateAsFormat(String format); 134 135 142 String getDateAsFormat(String format, Locale locale); 143 144 149 String getTitle(); 150 151 156 void setTitle(String title); 157 158 163 String getEscapedTitle(); 164 165 170 String getDescription(); 171 172 178 String getEscapedDescription(); 179 180 185 void setDescription(String description); 186 187 192 String getCategory(); 193 194 199 String getEncodedCategory(); 200 201 206 Integer getAllowComments(); 207 208 213 Boolean allowsComments(); 214 215 220 void setAllowComments(Integer allowComments); 221 222 227 List getComments(); 228 229 235 void setComments(List comments); 236 237 242 Comment[] getCommentsAsArray(); 243 244 249 int getNumComments(); 250 251 256 Integer getAllowTrackbacks(); 257 258 263 Boolean allowsTrackbacks(); 264 265 270 void setAllowTrackbacks(Integer allowTrackbacks); 271 272 277 List getTrackbacks(); 278 279 285 void setTrackbacks(List trackbacks); 286 287 292 Trackback[] getTrackbacksAsArray(); 293 294 299 int getNumTrackbacks(); 300 301 306 Category getBlogCategory(); 307 308 313 void setBlogCategory(Category blogCategory); 314 315 320 Map getMetaData(); 321 322 327 void setMetaData(Map metaData); 328 329 334 Integer getAllowPingbacks(); 335 336 341 Boolean allowsPingbacks(); 342 343 348 void setAllowPingbacks(Integer allowPingbacks); 349 350 355 List getPingbacks(); 356 357 363 void setPingbacks(List pingbacks); 364 365 370 Pingback[] getPingbacksAsArray(); 371 372 377 int getNumPingbacks(); 378 379 384 public String getStatus(); 385 386 391 public void setStatus(String status); 392 393 398 public String getAuthor(); 399 400 405 public void setAuthor(String author); 406 407 412 public String getPostSlug(); 413 414 419 public void setPostSlug(String postSlug); 420 421 426 public Date getModifiedDate(); 427 428 433 public void setModifiedDate(Date modifiedDate); 434 435 440 public List getResponses(); 441 442 448 public List getResponsesMatchingStatus(String status); 449 450 456 public List getResponsesNotMatchingStatus(String status); 457 } 458 | Popular Tags |