Class RoomConfiguration.Builder

    • Method Detail

      • maxHistoryMessages

        public RoomConfiguration.Builder maxHistoryMessages​(int maxHistoryMessages)
        Sets the maximum number of history messages returned by the room.
        Parameters:
        maxHistoryMessages - The maximum number of history messages returned by the room.
        Returns:
        The builder.
      • rolesThatMaySendPrivateMessages

        public RoomConfiguration.Builder rolesThatMaySendPrivateMessages​(Collection<Role> rolesThatMaySendPrivateMessages)
        Roles that may send private messages.
        Parameters:
        rolesThatMaySendPrivateMessages - The roles.
        Returns:
        The builder.
      • invitesAllowed

        public RoomConfiguration.Builder invitesAllowed​(boolean invitesAllowed)
        Whether to allow occupants to invite others
        Parameters:
        invitesAllowed - Whether to allow occupants to invite others
        Returns:
        The builder.
      • changeSubjectAllowed

        public RoomConfiguration.Builder changeSubjectAllowed​(boolean changeSubjectAllowed)
        Whether to allow occupants to change subject.
        Parameters:
        changeSubjectAllowed - Whether to allow occupants to change subject.
        Returns:
        The builder.
      • loggingEnabled

        public RoomConfiguration.Builder loggingEnabled​(boolean loggingEnabled)
        Whether to enable public logging of room conversations.
        Parameters:
        loggingEnabled - Whether to enable public logging of room conversations.
        Returns:
        The builder.
      • rolesThatMayRetrieveMemberList

        public RoomConfiguration.Builder rolesThatMayRetrieveMemberList​(Collection<Role> rolesThatMayRetrieveMemberList)
        Roles that may retrieve member list.
        Parameters:
        rolesThatMayRetrieveMemberList - Roles that may retrieve member list.
        Returns:
        The builder.
      • language

        public RoomConfiguration.Builder language​(Locale language)
        Natural language for room discussions.
        Parameters:
        language - The language.
        Returns:
        The builder.
      • pubSubNode

        public RoomConfiguration.Builder pubSubNode​(URI pubsubNode)
        XMPP URI of associated publish-subcribe node.
        Parameters:
        pubsubNode - The URI.
        Returns:
        The builder.
      • maxUsers

        public RoomConfiguration.Builder maxUsers​(Integer maxUsers)
        Maximum number of room occupants.
        Parameters:
        maxUsers - The max users.
        Returns:
        The builder.
      • membersOnly

        public RoomConfiguration.Builder membersOnly​(boolean membersOnly)
        Whether to make room members-only.
        Parameters:
        membersOnly - Whether to make room members-only.
        Returns:
        The builder.
      • moderated

        public RoomConfiguration.Builder moderated​(boolean moderated)
        Whether to make room moderated.
        Parameters:
        moderated - Whether to make room moderated.
        Returns:
        The builder.
      • passwordProtected

        public RoomConfiguration.Builder passwordProtected​(boolean passwordProtected)
        Whether a password is required to enter.
        Parameters:
        passwordProtected - Whether a password is required to enter.
        Returns:
        The builder.
      • persistent

        public RoomConfiguration.Builder persistent​(boolean persistent)
        Whether to make room persistent.
        Parameters:
        persistent - Whether to maker room persistent.
        Returns:
        The builder.
      • rolesForWhichPresenceIsBroadcast

        public RoomConfiguration.Builder rolesForWhichPresenceIsBroadcast​(Collection<Role> roles)
        Roles for which presence is broadcast.
        Parameters:
        roles - Roles for which presence is broadcast.
        Returns:
        The builder.
      • publicRoom

        public RoomConfiguration.Builder publicRoom​(boolean publicRoom)
        Whether to allow public searching for room.
        Parameters:
        publicRoom - Whether to allow public searching for room.
        Returns:
        The builder.
      • description

        public RoomConfiguration.Builder description​(String description)
        Short description of room.
        Parameters:
        description - The description.
        Returns:
        The builder.
      • rolesThatMayDiscoverRealJids

        public RoomConfiguration.Builder rolesThatMayDiscoverRealJids​(Collection<Role> roles)
        Roles that may discover real JIDs of occupants.
        Parameters:
        roles - Roles that may discover real JIDs of occupants.
        Returns:
        The builder.
      • build

        public RoomConfiguration build()
        Builds the room configuration.
        Returns:
        The room configuration.