public static final class RoomConfiguration.Builder extends DataForm.Builder<RoomConfiguration.Builder>
DataForm.Type.SUBMIT by default.| Modifier and Type | Method and Description |
|---|---|
RoomConfiguration.Builder |
administrators(Collection<rocks.xmpp.addr.Jid> admins)
Full list of room admins.
|
RoomConfiguration |
build()
Builds the room configuration.
|
RoomConfiguration.Builder |
changeSubjectAllowed(boolean changeSubjectAllowed)
Whether to allow occupants to change subject.
|
RoomConfiguration.Builder |
description(String description)
Short description of room.
|
RoomConfiguration.Builder |
invitesAllowed(boolean invitesAllowed)
Whether to allow occupants to invite others
|
RoomConfiguration.Builder |
language(Locale language)
Natural language for room discussions.
|
RoomConfiguration.Builder |
loggingEnabled(boolean loggingEnabled)
Whether to enable public logging of room conversations.
|
RoomConfiguration.Builder |
maxHistoryMessages(int maxHistoryMessages)
Sets the maximum number of history messages returned by the room.
|
RoomConfiguration.Builder |
maxUsers(int maxUsers)
Maximum number of room occupants.
|
RoomConfiguration.Builder |
membersOnly(boolean membersOnly)
Whether to make room members-only.
|
RoomConfiguration.Builder |
moderated(boolean moderated)
Whether to make room moderated.
|
RoomConfiguration.Builder |
name(String name)
Natural-language room name.
|
RoomConfiguration.Builder |
owners(Collection<rocks.xmpp.addr.Jid> owners)
Full list of room owners.
|
RoomConfiguration.Builder |
password(String password)
The room password.
|
RoomConfiguration.Builder |
passwordProtected(boolean passwordProtected)
Whether a password is required to enter.
|
RoomConfiguration.Builder |
persistent(boolean persistent)
Whether to make room persistent.
|
RoomConfiguration.Builder |
publicRoom(boolean publicRoom)
Whether to allow public searching for room.
|
RoomConfiguration.Builder |
pubSubNode(URI pubsubNode)
XMPP URI of associated publish-subcribe node.
|
RoomConfiguration.Builder |
rolesForWhichPresenceIsBroadcast(Collection<Role> roles)
Roles for which presence is broadcast.
|
RoomConfiguration.Builder |
rolesThatMayDiscoverRealJids(Collection<Role> roles)
Roles that may discover real JIDs of occupants.
|
RoomConfiguration.Builder |
rolesThatMayRetrieveMemberList(Collection<Role> rolesThatMayRetrieveMemberList)
Roles that may retrieve member list.
|
RoomConfiguration.Builder |
rolesThatMaySendPrivateMessages(Collection<Role> rolesThatMaySendPrivateMessages)
Roles that may send private messages.
|
fields, formType, instructions, items, pages, reportedFields, title, typepublic RoomConfiguration.Builder maxHistoryMessages(int maxHistoryMessages)
maxHistoryMessages - The maximum number of history messages returned by the room.public RoomConfiguration.Builder rolesThatMaySendPrivateMessages(Collection<Role> rolesThatMaySendPrivateMessages)
rolesThatMaySendPrivateMessages - The roles.public RoomConfiguration.Builder invitesAllowed(boolean invitesAllowed)
invitesAllowed - Whether to allow occupants to invite otherspublic RoomConfiguration.Builder changeSubjectAllowed(boolean changeSubjectAllowed)
changeSubjectAllowed - Whether to allow occupants to change subject.public RoomConfiguration.Builder loggingEnabled(boolean loggingEnabled)
loggingEnabled - Whether to enable public logging of room conversations.public RoomConfiguration.Builder rolesThatMayRetrieveMemberList(Collection<Role> rolesThatMayRetrieveMemberList)
rolesThatMayRetrieveMemberList - Roles that may retrieve member list.public RoomConfiguration.Builder language(Locale language)
language - The language.public RoomConfiguration.Builder pubSubNode(URI pubsubNode)
pubsubNode - The URI.public RoomConfiguration.Builder maxUsers(int maxUsers)
maxUsers - The max users.public RoomConfiguration.Builder membersOnly(boolean membersOnly)
membersOnly - Whether to make room members-only.public RoomConfiguration.Builder moderated(boolean moderated)
moderated - Whether to make room moderated.public RoomConfiguration.Builder passwordProtected(boolean passwordProtected)
passwordProtected - Whether a password is required to enter.public RoomConfiguration.Builder persistent(boolean persistent)
persistent - Whether to maker room persistent.public RoomConfiguration.Builder rolesForWhichPresenceIsBroadcast(Collection<Role> roles)
roles - Roles for which presence is broadcast.public RoomConfiguration.Builder publicRoom(boolean publicRoom)
publicRoom - Whether to allow public searching for room.public RoomConfiguration.Builder administrators(Collection<rocks.xmpp.addr.Jid> admins)
admins - The admins.public RoomConfiguration.Builder description(String description)
description - The description.public RoomConfiguration.Builder name(String name)
name - The name.public RoomConfiguration.Builder owners(Collection<rocks.xmpp.addr.Jid> owners)
owners - Full list of room owners.public RoomConfiguration.Builder password(String password)
password - The password.public RoomConfiguration.Builder rolesThatMayDiscoverRealJids(Collection<Role> roles)
roles - Roles that may discover real JIDs of occupants.public RoomConfiguration build()
Copyright © 2014–2017 XMPP.rocks. All rights reserved.