public static final class NodeConfiguration.Builder extends DataForm.Builder<NodeConfiguration.Builder>
A builder to build node configurations.
Modifier and Type | Method and Description |
---|---|
NodeConfiguration.Builder |
accessModel(AccessModel accessModel)
Who may subscribe and retrieve items.
|
NodeConfiguration.Builder |
allowSubscriptions(boolean allowSubscriptions)
Whether to allow subscriptions.
|
NodeConfiguration.Builder |
bodyXslt(java.net.URL bodyXslt)
The URL of an XSL transformation which can be applied to payloads in order to generate an appropriate message body element.
|
NodeConfiguration |
build()
Builds the node configuration.
|
NodeConfiguration.Builder |
children(java.util.Collection<java.lang.String> children)
The child nodes (leaf or collection) associated with a collection.
|
NodeConfiguration.Builder |
childrenAssociationPolicy(ChildrenAssociationPolicy childrenAssociationPolicy)
Who may associate leaf nodes with a collection.
|
NodeConfiguration.Builder |
childrenAssociationWhitelist(java.util.Collection<Jid> childrenAssociationWhitelist)
The list of JIDs that may associate leaf nodes with a collection.
|
NodeConfiguration.Builder |
childrenMax(int childrenMax)
The maximum number of child nodes that can be associated with a collection.
|
NodeConfiguration.Builder |
collection(java.util.Collection<java.lang.String> collection)
The collection(s) with which a node is affiliated.
|
NodeConfiguration.Builder |
contacts(java.util.Collection<Jid> contacts)
The JIDs of those to contact with questions
|
NodeConfiguration.Builder |
dataformXslt(java.net.URL dataformXslt)
The URL of an XSL transformation which can be applied to the payload format in order to generate a valid Data Forms result that the client could display using a generic Data Forms rendering engine
|
NodeConfiguration.Builder |
deliverNotifications(boolean deliverNotifications)
Whether to deliver event notifications.
|
NodeConfiguration.Builder |
deliverPayloads(boolean deliverPayloads)
Whether to deliver payloads with event notifications; applies only to leaf nodes.
|
NodeConfiguration.Builder |
description(java.lang.String description)
A description of the node.
|
NodeConfiguration.Builder |
itemExpire(int itemExpire)
Number of seconds after which to automatically purge items.
|
NodeConfiguration.Builder |
itemReply(ItemReply itemReply)
Whether owners or publisher should receive replies to items.
|
NodeConfiguration.Builder |
language(java.util.Locale language)
The default language of the node.
|
NodeConfiguration.Builder |
maxItems(int maxItems)
The maximum number of items to persist.
|
NodeConfiguration.Builder |
maxPayloadSize(int maxPayloadSize)
The maximum payload size in bytes.
|
NodeConfiguration.Builder |
nodeTitle(java.lang.String title)
A friendly name for the node.
|
NodeConfiguration.Builder |
nodeType(NodeType nodeType)
Whether the node is a leaf (default) or a collection.
|
NodeConfiguration.Builder |
notificationType(Message.Type notificationType)
Specify the delivery style for notifications.
|
NodeConfiguration.Builder |
notifyConfig(boolean notifyConfig)
Whether to notify subscribers when the node configuration changes.
|
NodeConfiguration.Builder |
notifyDelete(boolean notifyDelete)
Whether to notify subscribers when the node is deleted.
|
NodeConfiguration.Builder |
notifyRetract(boolean notifyRetract)
Whether to notify subscribers when items are removed from the node.
|
NodeConfiguration.Builder |
notifySub(boolean notifySub)
Whether to notify owners about new subscribers and unsubscribes.
|
NodeConfiguration.Builder |
persistItems(boolean persistItems)
Whether to persist items to storage.
|
NodeConfiguration.Builder |
presenceBasedDelivery(boolean presenceBasedDelivery)
Whether to deliver notifications to available users only.
|
NodeConfiguration.Builder |
publisherModel(PublisherModel publisherModel)
The publisher model.
|
NodeConfiguration.Builder |
purgeOffline(boolean purgeOffline)
Whether to purge all items when the relevant publisher goes offline.
|
NodeConfiguration.Builder |
rosterGroupsAllowed(java.util.Collection<java.lang.String> rosterGroupsAllowed)
The roster group(s) allowed to subscribe and retrieve items.
|
NodeConfiguration.Builder |
sendLastPublishedItem(SendLastPublishedItem sendLastPublishedItem)
When to send the last published item.
|
NodeConfiguration.Builder |
temporarySubscriptions(boolean temporarySubscriptions)
Whether to make all subscriptions temporary, based on subscriber presence.
|
NodeConfiguration.Builder |
type(java.lang.String type)
The type of node data, usually specified by the namespace of the payload (if any).
|
fields, formType, instructions, items, pages, reportedFields, title, type
public final NodeConfiguration.Builder accessModel(AccessModel accessModel)
Who may subscribe and retrieve items.
accessModel
- Who may subscribe and retrieve items.public final NodeConfiguration.Builder bodyXslt(java.net.URL bodyXslt)
The URL of an XSL transformation which can be applied to payloads in order to generate an appropriate message body element.
bodyXslt
- The URL.public final NodeConfiguration.Builder childrenAssociationPolicy(ChildrenAssociationPolicy childrenAssociationPolicy)
Who may associate leaf nodes with a collection.
childrenAssociationPolicy
- Who may associate leaf nodes with a collection.public final NodeConfiguration.Builder childrenAssociationWhitelist(java.util.Collection<Jid> childrenAssociationWhitelist)
The list of JIDs that may associate leaf nodes with a collection.
childrenAssociationWhitelist
- The list of JIDs that may associate leaf nodes with a collection.public final NodeConfiguration.Builder children(java.util.Collection<java.lang.String> children)
The child nodes (leaf or collection) associated with a collection.
children
- The child nodes (leaf or collection) associated with a collection.public final NodeConfiguration.Builder childrenMax(int childrenMax)
The maximum number of child nodes that can be associated with a collection.
childrenMax
- The maximum number of child nodes that can be associated with a collection.public final NodeConfiguration.Builder collection(java.util.Collection<java.lang.String> collection)
The collection(s) with which a node is affiliated.
collection
- The collection(s) with which a node is affiliated.public final NodeConfiguration.Builder contacts(java.util.Collection<Jid> contacts)
The JIDs of those to contact with questions
contacts
- The JIDs of those to contact with questions.public final NodeConfiguration.Builder dataformXslt(java.net.URL dataformXslt)
The URL of an XSL transformation which can be applied to the payload format in order to generate a valid Data Forms result that the client could display using a generic Data Forms rendering engine
dataformXslt
- The URL.public final NodeConfiguration.Builder deliverNotifications(boolean deliverNotifications)
Whether to deliver event notifications.
deliverNotifications
- Whether to deliver event notifications.public final NodeConfiguration.Builder deliverPayloads(boolean deliverPayloads)
Whether to deliver payloads with event notifications; applies only to leaf nodes.
deliverPayloads
- Whether to deliver payloads with event notifications; applies only to leaf nodes.public final NodeConfiguration.Builder description(java.lang.String description)
A description of the node.
description
- A description of the node.public final NodeConfiguration.Builder itemExpire(int itemExpire)
Number of seconds after which to automatically purge items.
itemExpire
- Number of seconds after which to automatically purge items.public final NodeConfiguration.Builder itemReply(ItemReply itemReply)
Whether owners or publisher should receive replies to items.
itemReply
- Whether owners or publisher should receive replies to items.public final NodeConfiguration.Builder language(java.util.Locale language)
The default language of the node.
language
- The default language of the node.public final NodeConfiguration.Builder maxItems(int maxItems)
The maximum number of items to persist.
maxItems
- The maximum number of items to persist.public final NodeConfiguration.Builder maxPayloadSize(int maxPayloadSize)
The maximum payload size in bytes.
maxPayloadSize
- The maximum payload size in bytes.public final NodeConfiguration.Builder nodeType(NodeType nodeType)
Whether the node is a leaf (default) or a collection.
nodeType
- Whether the node is a leaf (default) or a collection.public final NodeConfiguration.Builder notificationType(Message.Type notificationType)
Specify the delivery style for notifications.
notificationType
- The notification type.public final NodeConfiguration.Builder notifyConfig(boolean notifyConfig)
Whether to notify subscribers when the node configuration changes.
notifyConfig
- Whether to notify subscribers when the node configuration changes.public final NodeConfiguration.Builder notifyDelete(boolean notifyDelete)
Whether to notify subscribers when the node is deleted.
notifyDelete
- Whether to notify subscribers when the node is deleted.public final NodeConfiguration.Builder notifyRetract(boolean notifyRetract)
Whether to notify subscribers when items are removed from the node.
notifyRetract
- Whether to notify subscribers when items are removed from the node.public final NodeConfiguration.Builder notifySub(boolean notifySub)
Whether to notify owners about new subscribers and unsubscribes.
notifySub
- Whether to notify owners about new subscribers and unsubscribes.public final NodeConfiguration.Builder persistItems(boolean persistItems)
Whether to persist items to storage.
persistItems
- Whether to persist items to storage.public final NodeConfiguration.Builder presenceBasedDelivery(boolean presenceBasedDelivery)
Whether to deliver notifications to available users only.
presenceBasedDelivery
- Whether to deliver notifications to available users only.public final NodeConfiguration.Builder publisherModel(PublisherModel publisherModel)
The publisher model.
publisherModel
- The publisher model.public final NodeConfiguration.Builder purgeOffline(boolean purgeOffline)
Whether to purge all items when the relevant publisher goes offline.
purgeOffline
- Whether to purge all items when the relevant publisher goes offline.public final NodeConfiguration.Builder rosterGroupsAllowed(java.util.Collection<java.lang.String> rosterGroupsAllowed)
The roster group(s) allowed to subscribe and retrieve items.
rosterGroupsAllowed
- The roster group(s) allowed to subscribe and retrieve items.public final NodeConfiguration.Builder sendLastPublishedItem(SendLastPublishedItem sendLastPublishedItem)
When to send the last published item.
sendLastPublishedItem
- When to send the last published item.public final NodeConfiguration.Builder temporarySubscriptions(boolean temporarySubscriptions)
Whether to make all subscriptions temporary, based on subscriber presence.
temporarySubscriptions
- Whether to make all subscriptions temporary, based on subscriber presence.public final NodeConfiguration.Builder allowSubscriptions(boolean allowSubscriptions)
Whether to allow subscriptions.
allowSubscriptions
- Whether to allow subscriptions.public final NodeConfiguration.Builder nodeTitle(java.lang.String title)
A friendly name for the node.
title
- The title.public final NodeConfiguration.Builder type(java.lang.String type)
The type of node data, usually specified by the namespace of the payload (if any).
type
- The type.public final NodeConfiguration build()
Builds the node configuration.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.