|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.pubsub.DefaultNodeConfiguration
public class DefaultNodeConfiguration
A DefaultNodeConfiguration keeps the default configuration values for leaf or collection nodes of a particular publish-subscribe service. New nodes created for the service will be initialized with the values defined in the default configuration.
Constructor Summary | |
---|---|
DefaultNodeConfiguration(boolean isLeafType)
|
Method Summary | |
---|---|
AccessModel |
getAccessModel()
Returns the access model that specifies who is allowed to subscribe and retrieve items. |
CollectionNode.LeafNodeAssociationPolicy |
getAssociationPolicy()
Returns the policy that defines who may associate leaf nodes with a collection. |
DataForm |
getConfigurationForm()
|
String |
getLanguage()
Returns the default language of the node. |
int |
getMaxLeafNodes()
Returns the max number of leaf nodes that this collection node might have. |
int |
getMaxPayloadSize()
Returns the maximum payload size in bytes. |
int |
getMaxPublishedItems()
Returns the maximum number of published items to persist. |
PublisherModel |
getPublisherModel()
Returnes the publisher model that specifies who is allowed to publish items to the node. |
Node.ItemReplyPolicy |
getReplyPolicy()
Returns the policy that defines whether owners or publisher should receive replies to items. |
boolean |
isDeliverPayloads()
Returns true if payloads are going to be delivered with event notifications. |
boolean |
isLeaf()
Returns true if this default configutation belongs to a leaf node. |
boolean |
isNotifyConfigChanges()
Returns true if subscribers are going to be notified when node configuration changes. |
boolean |
isNotifyDelete()
Returns true if subscribers are going to be notified when node is deleted. |
boolean |
isNotifyRetract()
Returns true if subscribers are going to be notified when items are removed from the node. |
boolean |
isPersistPublishedItems()
Returns true if items are going to be persisted in a storage. |
boolean |
isPresenceBasedDelivery()
Returns true if notifications are going to be delivered only to available users. |
boolean |
isSendItemSubscribe()
Returns true if new subscribers are going to receive new items once subscribed. |
boolean |
isSubscriptionEnabled()
Returns true if subscribing and unsubscribing are enabled. |
void |
setAccessModel(AccessModel accessModel)
Sets the access model that specifies who is allowed to subscribe and retrieve items. |
void |
setAssociationPolicy(CollectionNode.LeafNodeAssociationPolicy associationPolicy)
Sets the policy that defines who may associate leaf nodes with a collection. |
void |
setDeliverPayloads(boolean deliverPayloads)
Sets if payloads are going to be delivered with event notifications. |
void |
setLanguage(String language)
Sets the default language of the node. |
void |
setMaxLeafNodes(int maxLeafNodes)
Sets the max number of leaf nodes that this collection node might have. |
void |
setMaxPayloadSize(int maxPayloadSize)
Sets the maximum payload size in bytes. |
void |
setMaxPublishedItems(int maxPublishedItems)
Sets the maximum number of published items to persist. |
void |
setNotifyConfigChanges(boolean notifyConfigChanges)
Sets if subscribers are going to be notified when node configuration changes. |
void |
setNotifyDelete(boolean notifyDelete)
Sets if subscribers are going to be notified when node is deleted. |
void |
setNotifyRetract(boolean notifyRetract)
Sets if subscribers are going to be notified when items are removed from the node. |
void |
setPersistPublishedItems(boolean persistPublishedItems)
Sets if items are going to be persisted in a storage. |
void |
setPresenceBasedDelivery(boolean presenceBasedDelivery)
Sets if notifications are going to be delivered only to available users. |
void |
setPublisherModel(PublisherModel publisherModel)
Sets the publisher model that specifies who is allowed to publish items to the node. |
void |
setReplyPolicy(Node.ItemReplyPolicy replyPolicy)
Sets the policy that defines whether owners or publisher should receive replies to items. |
void |
setSendItemSubscribe(boolean sendItemSubscribe)
Sets if new subscribers are going to receive new items once subscribed. |
void |
setSubscriptionEnabled(boolean subscriptionEnabled)
Sets if subscribing and unsubscribing are enabled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultNodeConfiguration(boolean isLeafType)
Method Detail |
---|
public boolean isLeaf()
public boolean isDeliverPayloads()
public int getMaxPayloadSize()
public boolean isPersistPublishedItems()
public int getMaxPublishedItems()
public boolean isNotifyConfigChanges()
public boolean isNotifyDelete()
public boolean isNotifyRetract()
public boolean isPresenceBasedDelivery()
public boolean isSendItemSubscribe()
public PublisherModel getPublisherModel()
public boolean isSubscriptionEnabled()
public AccessModel getAccessModel()
public String getLanguage()
public Node.ItemReplyPolicy getReplyPolicy()
public CollectionNode.LeafNodeAssociationPolicy getAssociationPolicy()
public int getMaxLeafNodes()
public void setDeliverPayloads(boolean deliverPayloads)
deliverPayloads
- true if payloads are going to be delivered with event notifications.public void setMaxPayloadSize(int maxPayloadSize)
maxPayloadSize
- the maximum payload size in bytes.public void setPersistPublishedItems(boolean persistPublishedItems)
persistPublishedItems
- true if items are going to be persisted in a storage.public void setMaxPublishedItems(int maxPublishedItems)
maxPublishedItems
- the maximum number of published items to persist.public void setNotifyConfigChanges(boolean notifyConfigChanges)
notifyConfigChanges
- true if subscribers are going to be notified when node
configuration changes.public void setNotifyDelete(boolean notifyDelete)
notifyDelete
- true if subscribers are going to be notified when node is deleted.public void setNotifyRetract(boolean notifyRetract)
notifyRetract
- true if subscribers are going to be notified when items are removed
from the node.public void setPresenceBasedDelivery(boolean presenceBasedDelivery)
presenceBasedDelivery
- true if notifications are going to be delivered only to
available users.public void setSendItemSubscribe(boolean sendItemSubscribe)
sendItemSubscribe
- true if new subscribers are going to receive new items
once subscribed.public void setPublisherModel(PublisherModel publisherModel)
publisherModel
- the publisher model that specifies who is allowed to publish
items to the node.public void setSubscriptionEnabled(boolean subscriptionEnabled)
subscriptionEnabled
- true if subscribing and unsubscribing are enabled.public void setAccessModel(AccessModel accessModel)
accessModel
- the access model that specifies who is allowed to subscribe and
retrieve items.public void setLanguage(String language)
language
- the default language of the node.public void setReplyPolicy(Node.ItemReplyPolicy replyPolicy)
replyPolicy
- the policy that defines whether owners or publisher should receive
replies to items.public void setAssociationPolicy(CollectionNode.LeafNodeAssociationPolicy associationPolicy)
associationPolicy
- the policy that defines who may associate leaf nodes
with a collection.public void setMaxLeafNodes(int maxLeafNodes)
maxLeafNodes
- the max number of leaf nodes that this collection node might have.public DataForm getConfigurationForm()
|
Openfire 3.6.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |