1 /**
2 * Copyright 2011-2012 The Kuali Foundation Licensed under the
3 * Educational Community License, Version 2.0 (the "License"); you may
4 * not use this file except in compliance with the License. You may
5 * obtain a copy of the License at
6 *
7 * http://www.osedu.org/licenses/ECL-2.0
8 *
9 * Unless required by applicable law or agreed to in writing,
10 * software distributed under the License is distributed on an "AS IS"
11 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12 * or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15
16 package org.kuali.mobility.news.entity;
17
18
19 import java.util.Date;
20
21 import javax.xml.bind.annotation.XmlRootElement;
22
23 public interface NewsArticle {
24
25 public NewsArticle copy();
26
27 /**
28 * @return the publish date formatted for display (EEEE, MMMM dd, yyyy h:mm a)
29 */
30 public String getPublishDateDisplay();
31
32 public int compareTo(NewsArticle arg0);
33
34 /**
35 * @return the title
36 */
37 public String getTitle();
38
39 /**
40 * @param title the title to set
41 */
42 public void setTitle(String title);
43
44 /**
45 * @return the URL to the full article
46 */
47 public String getLink();
48
49 /**
50 * @param link the URL to the full article
51 */
52 public void setLink(String link);
53
54 /**
55 * @return the body text of the article
56 */
57 public String getDescription();
58
59 /**
60 * @param description the body text to set
61 */
62 public void setDescription(String description);
63
64 /**
65 * @return the publish date
66 */
67 public Date getPublishDate();
68
69 /**
70 * @param publishDate the publish date to set
71 */
72 public void setPublishDate(Date publishDate);
73
74 /**
75 * @return the article id
76 */
77 public String getArticleId();
78
79 /**
80 * @param articleId the article id to set
81 */
82 public void setArticleId(String articleId);
83
84 /**
85 * @return the id of the NewsSource to which this article belongs
86 */
87 public long getSourceId();
88
89 /**
90 * @param sourceId the id of the NewsSource to which this article belongs
91 */
92 public void setSourceId(long sourceId);
93
94 }