View Javadoc

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  import java.util.List;
19  
20  public interface NewsSource {
21  
22  	public Long getId();
23  
24  	public void setId(Long id);
25  
26  	/**
27  	 * @return the URL of the feed
28  	 */
29  	public String getUrl();
30  
31  	/**
32  	 * @param url the URL of the feed
33  	 */
34  	public void setUrl(String url);
35  
36  	/**
37  	 * @return whether the feed is active or not
38  	 */
39  	public boolean isActive();
40  
41  	/**
42  	 * @param active set this feed active or inactive
43  	 */
44  	public void setActive(boolean active);
45  
46  	/**
47  	 * @return the name assigned to this feed
48  	 */
49  	public String getName();
50  
51  	/**
52  	 * @param name the name to set for this feed.  It is not displayed to end users.
53  	 */
54  	public void setName(String name);
55  
56  	/**
57  	 * @return the title
58  	 */
59  	public String getTitle();
60  
61  	/**
62  	 * @param title the title to set
63  	 */
64  	public void setTitle(String title);
65  
66  	/**
67  	 * @return the author
68  	 */
69  	public String getAuthor();
70  
71  	/**
72  	 * @param author the author to set
73  	 */
74  	public void setAuthor(String author);
75  
76  	/**
77  	 * @return the description of the feed
78  	 */
79  	public String getDescription();
80  
81  	/**
82  	 * @param description the description of the feed
83  	 */
84  	public void setDescription(String description);
85  
86  	/**
87  	 * @return the articles
88  	 */
89  	public List<? extends NewsArticle> getArticles();
90  
91  	/**
92  	 * @param articles the articles to set
93  	 */
94  	public void setArticles(List<? extends NewsArticle> articles);
95  
96  	/**
97  	 * @return the display order
98  	 */
99  	public int getOrder();
100 
101 	/**
102 	 * @param order the display order
103 	 */
104 	public void setOrder(int order);
105 
106 	public void setParentId( Long parentId );
107 	public Long getParentId();
108 
109     public void setChildren( List<? extends NewsSource> children );
110     public List<? extends NewsSource> getChildren();
111     public void addChild( NewsSource child );
112 }