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