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