Class BookmarkedConference
- java.lang.Object
-
- org.jivesoftware.smackx.bookmarks.BookmarkedConference
-
- All Implemented Interfaces:
SharedBookmark
public class BookmarkedConference extends java.lang.Object implements SharedBookmark
Represents a Conference Room bookmarked on the server using XEP-0048 Bookmark Storage XEP.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBookmarkedConference(java.lang.String name, EntityBareJid jid, boolean autoJoin, Resourcepart nickname, java.lang.String password)protectedBookmarkedConference(EntityBareJid jid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)EntityBareJidgetJid()Returns the full JID of this conference room.java.lang.StringgetName()Returns the display label representing the Conference room.ResourcepartgetNickname()Returns the nickname to use when joining this conference room.java.lang.StringgetPassword()Returns the password to use when joining this conference room.inthashCode()booleanisAutoJoin()Returns true if this conference room should be auto-joined on startup.booleanisShared()Returns true if this bookmark is shared.protected voidsetAutoJoin(boolean autoJoin)protected voidsetName(java.lang.String name)protected voidsetNickname(Resourcepart nickname)protected voidsetPassword(java.lang.String password)protected voidsetShared(boolean isShared)
-
-
-
Constructor Detail
-
BookmarkedConference
protected BookmarkedConference(EntityBareJid jid)
-
BookmarkedConference
protected BookmarkedConference(java.lang.String name, EntityBareJid jid, boolean autoJoin, Resourcepart nickname, java.lang.String password)
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the display label representing the Conference room.- Returns:
- the name of the conference room.
-
setName
protected void setName(java.lang.String name)
-
isAutoJoin
public boolean isAutoJoin()
Returns true if this conference room should be auto-joined on startup.- Returns:
- true if room should be joined on startup, otherwise false.
-
setAutoJoin
protected void setAutoJoin(boolean autoJoin)
-
getJid
public EntityBareJid getJid()
Returns the full JID of this conference room. (ex.dev@conference.jivesoftware.com)- Returns:
- the full JID of this conference room.
-
getNickname
public Resourcepart getNickname()
Returns the nickname to use when joining this conference room. This is an optional value and may return null.- Returns:
- the nickname to use when joining, null may be returned.
-
setNickname
protected void setNickname(Resourcepart nickname)
-
getPassword
public java.lang.String getPassword()
Returns the password to use when joining this conference room. This is an optional value and may return null.- Returns:
- the password to use when joining this conference room, null may be returned.
-
setPassword
protected void setPassword(java.lang.String password)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
setShared
protected void setShared(boolean isShared)
-
isShared
public boolean isShared()
Description copied from interface:SharedBookmarkReturns true if this bookmark is shared.- Specified by:
isSharedin interfaceSharedBookmark- Returns:
- returns true if this bookmark is shared.
-
-