Home | History | Annotate | Download | only in bookmark

Lines Matching defs:bookmarks

29  * Provides methods to manage bookmarks in accordance with JEP-0048. Methods for managing URLs and
41 PrivateDataManager.addPrivateDataProvider("storage", "storage:bookmarks",
42 new Bookmarks.Provider());
65 private Bookmarks bookmarks;
70 * storage:bookmarks namespace.
72 * @param connection the connection for persisting and retrieving bookmarks.
86 * @throws XMPPException thrown when there was an error retrieving the current bookmarks from
92 return Collections.unmodifiableCollection(bookmarks.getBookmarkedConferences());
96 * Adds or updates a conference in the bookmarks.
103 * @throws XMPPException thrown when there is an issue retrieving the current bookmarks from
112 List<BookmarkedConference> conferences = bookmarks.getBookmarkedConferences();
124 bookmarks.addBookmarkedConference(bookmark);
126 privateDataManager.setPrivateData(bookmarks);
130 * Removes a conference from the bookmarks.
134 * retrieve the bookmarks or persist the bookmarks.
140 Iterator<BookmarkedConference> it = bookmarks.getBookmarkedConferences().iterator();
148 privateDataManager.setPrivateData(bookmarks);
158 * @throws XMPPException thrown when there is a problem retriving bookmarks from the server.
162 return Collections.unmodifiableCollection(bookmarks.getBookmarkedURLS());
166 * Adds a new url or updates an already existing url in the bookmarks.
171 * @throws XMPPException thrown when there is an error retriving or saving bookmarks from or to
177 List<BookmarkedURL> urls = bookmarks.getBookmarkedURLS();
181 throw new IllegalArgumentException("Cannot modify shared bookmarks");
187 bookmarks.addBookmarkedURL(bookmark);
189 privateDataManager.setPrivateData(bookmarks);
193 * Removes a url from the bookmarks.
196 * @throws XMPPException thrown if there is an error retriving or saving bookmarks from or to
201 Iterator<BookmarkedURL> it = bookmarks.getBookmarkedURLS().iterator();
209 privateDataManager.setPrivateData(bookmarks);
215 private Bookmarks retrieveBookmarks() throws XMPPException {
217 if(bookmarks == null) {
218 bookmarks = (Bookmarks) privateDataManager.getPrivateData("storage",
219 "storage:bookmarks");
221 return bookmarks;