@Lifecycle(value=CONTEXT)
public class BookmarkService
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
QUEUE_CREATED
Queue, an die Messages geschickt werden, wenn ein Bookmark erstellt wurde.
|
static java.lang.String |
QUEUE_DELETED
Queue, an die Messages geschickt werden, wenn ein Bookmark geloescht wurde.
|
| Constructor and Description |
|---|
BookmarkService() |
| Modifier and Type | Method and Description |
|---|---|
Bookmark |
create(java.lang.String comment)
Erstellt ein Bookmark fuer die aktuelle Seite.
|
void |
delete(Bookmark bookmark)
Loescht das angegebene Bookmark.
|
Bookmark |
find()
Versucht herauszufinden, ob die aktuelle Seite mit dem aktuellen Objekt
gebookmarkt ist.
|
java.util.List<Bookmark> |
getBookmarks()
Liefert die Bookmarks.
|
java.util.List<Bookmark> |
search(java.lang.String s)
Sucht nach Bookmarks, in denen der genannte Suchbegriff im Titel oder Kommentar vorkommt.
|
void |
store()
Speichert die Bookmarks ab.
|
public static final java.lang.String QUEUE_CREATED
public static final java.lang.String QUEUE_DELETED
public java.util.List<Bookmark> getBookmarks() throws de.willuhn.util.ApplicationException
de.willuhn.util.ApplicationExceptionpublic Bookmark create(java.lang.String comment) throws de.willuhn.util.ApplicationException
comment - optionaler Kommentar.de.willuhn.util.ApplicationExceptionpublic Bookmark find() throws de.willuhn.util.ApplicationException
de.willuhn.util.ApplicationExceptionpublic java.util.List<Bookmark> search(java.lang.String s) throws de.willuhn.util.ApplicationException
s - der Suchbegriff. Ohne Suchbegriff wird eine leere Liste zurueckgegeben.de.willuhn.util.ApplicationExceptionpublic void delete(Bookmark bookmark) throws de.willuhn.util.ApplicationException
bookmark - das zu loeschende Bookmark.de.willuhn.util.ApplicationExceptionpublic void store()
throws de.willuhn.util.ApplicationException
de.willuhn.util.ApplicationException