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