public class BookmarkManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addBookmarkedConference(java.lang.String name,
java.lang.String jid,
boolean isAutoJoin,
java.lang.String nickname,
java.lang.String password)
Adds or updates a conference in the bookmarks.
|
void |
addBookmarkedURL(java.lang.String URL,
java.lang.String name,
boolean isRSS)
Adds a new url or updates an already existing url in the bookmarks.
|
java.util.Collection<BookmarkedConference> |
getBookmarkedConferences()
Returns all currently bookmarked conferences.
|
java.util.Collection<BookmarkedURL> |
getBookmarkedURLs()
Returns an unmodifiable collection of all bookmarked urls.
|
static BookmarkManager |
getBookmarkManager(Connection connection)
Returns the BookmarkManager for a connection, if it doesn't exist it is created.
|
void |
removeBookmarkedConference(java.lang.String jid)
Removes a conference from the bookmarks.
|
void |
removeBookmarkedURL(java.lang.String bookmarkURL)
Removes a url from the bookmarks.
|
public static BookmarkManager getBookmarkManager(Connection connection) throws XMPPException
connection - the connection for which the manager is desired.XMPPException - Thrown if the connection is null or has not yet been authenticated.public java.util.Collection<BookmarkedConference> getBookmarkedConferences() throws XMPPException
XMPPException - thrown when there was an error retrieving the current bookmarks from
the server.BookmarkedConferencepublic void addBookmarkedConference(java.lang.String name,
java.lang.String jid,
boolean isAutoJoin,
java.lang.String nickname,
java.lang.String password)
throws XMPPException
name - the name of the conferencejid - the jid of the conferenceisAutoJoin - whether or not to join this conference automatically on loginnickname - the nickname to use for the user when joining the conferencepassword - the password to use for the user when joining the conferenceXMPPException - thrown when there is an issue retrieving the current bookmarks from
the server.public void removeBookmarkedConference(java.lang.String jid)
throws XMPPException
jid - the jid of the conference to be removed.XMPPException - thrown when there is a problem with the connection attempting to
retrieve the bookmarks or persist the bookmarks.java.lang.IllegalArgumentException - thrown when the conference being removed is a shared
conferencepublic java.util.Collection<BookmarkedURL> getBookmarkedURLs() throws XMPPException
XMPPException - thrown when there is a problem retriving bookmarks from the server.public void addBookmarkedURL(java.lang.String URL,
java.lang.String name,
boolean isRSS)
throws XMPPException
URL - the url of the bookmarkname - the name of the bookmarkisRSS - whether or not the url is an rss feedXMPPException - thrown when there is an error retriving or saving bookmarks from or to
the serverpublic void removeBookmarkedURL(java.lang.String bookmarkURL)
throws XMPPException
bookmarkURL - the url of the bookmark to removeXMPPException - thrown if there is an error retriving or saving bookmarks from or to
the server.Copyright © 2003-2007 Jive Software.