Commits

Hristov  committed 050af0d

Article Manager

  • Participants
  • Parent commits 950adc5

Comments (0)

Files changed (1)

File src/newsSystem/managers/Article.java

+package newsSystem.managers;
+
+import java.io.Serializable;
+import java.util.List;
+
+public class Article implements Serializable{
+    /**
+	 * 
+	 */
+	private static final long serialVersionUID = 1L;
+
+    private String id;
+    private int categoryId;
+	private String categoryName;
+	private String title;
+    private String text;
+    private String author;
+    private String date;
+    
+    public Article() {
+    }
+ 
+    public Article(final String title, final String text, final String tags) {
+        setTitle(title);
+        setText(text);
+    }
+
+	public void setTitle(String title) {
+		this.title = title;
+	}
+
+	public String getTitle() {
+		return title;
+	}
+
+	public void setText(String text) {
+		this.text = text;
+	}
+
+	public String getText() {
+		return text;
+	}
+
+
+	public List<Article> getAllArticles(){
+		return null;
+		
+	}
+
+	public void setAuthor(String author) {
+		this.author = author;
+	}
+
+	public String getAuthor() {
+		return author;
+	}
+
+	public void setDate(String date) {
+		this.date = date;
+	}
+
+	public String getDate() {
+		return date;
+	}
+
+	public void setId(String id) {
+		this.id = id;
+	}
+
+	public String getId() {
+		return id;
+	}
+	
+	public void setCategoryId(int categoryId)
+	{
+		this.categoryId = categoryId;
+	}
+	
+	public int getCategoryId()
+	{
+		return categoryId;
+	}
+	
+	public void setCategoryName(String categoryName)
+	{
+		this.categoryName = categoryName;
+	}
+	
+	public String getCategoryName()
+	{
+		return categoryName;
+	}
+
+}
+