navigation with hot topics
[pnews.git] / war / src / main / java / pnews / Article.java
index 70f69ea..97e8b76 100644 (file)
@@ -26,4 +26,16 @@ public class Article {
         public String[] getEntities() {
                 return entities;
         }
+        
+        public boolean hasEntity(String entity) {
+                for (String e: entities)
+                        if (e.equals(entity))
+                                return true;
+                
+                return false;
+        }
+        
+        public Date getPublicationDate() {
+                return publicationDate;
+        }
 }