|
Openfire 3.4.5 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.pubsub.Node org.jivesoftware.openfire.pubsub.CollectionNode
public class CollectionNode
A type of node that contains nodes and/or other collections but no published items. Collections provide the foundation entity to provide a means of representing hierarchical node structures.
Nested Class Summary | |
---|---|
static class |
CollectionNode.LeafNodeAssociationPolicy
Policy that defines who may associate leaf nodes with a collection. |
Nested classes/interfaces inherited from class org.jivesoftware.openfire.pubsub.Node |
---|
Node.ItemReplyPolicy |
Field Summary |
---|
Fields inherited from class org.jivesoftware.openfire.pubsub.Node |
---|
accessModel, affiliates, bodyXSLT, contacts, creationDate, creator, dataformXSLT, deliverPayloads, description, language, name, nodeID, notifyConfigChanges, notifyDelete, notifyRetract, parent, payloadType, presenceBasedDelivery, publisherModel, replyPolicy, replyRooms, replyTo, rosterGroupsAllowed, service, subscriptionConfigurationRequired, subscriptionEnabled, subscriptionsByID, subscriptionsByJID |
Constructor Summary | |
---|---|
CollectionNode(PubSubService service,
CollectionNode parentNode,
String nodeID,
JID creator)
|
Method Summary | |
---|---|
protected void |
addFormFields(DataForm form,
boolean isEditing)
Adds the required form fields to the specified form. |
protected void |
deletingNode()
Notification message indicating that the node is being deleted. |
CollectionNode.LeafNodeAssociationPolicy |
getAssociationPolicy()
Returns the policy that defines who may associate leaf nodes with a collection. |
Collection<JID> |
getAssociationTrusted()
Returns the users that are allowed to associate leaf nodes with this collection node. |
int |
getMaxLeafNodes()
Returns the max number of leaf nodes that this collection node might have. |
Collection<Node> |
getNodes()
Returns the list of nodes contained by this node. |
boolean |
isAssociationAllowed(JID user)
Returns true if the specified user is allowed to associate a leaf node with this node. |
boolean |
isChildNode(Node child)
Returns true if the specified node is a first-level children of this collection node. |
boolean |
isCollectionNode()
Returns true if this node is a node container. |
boolean |
isDescendantNode(Node child)
Returns true if the specified node is a direct child node of this collection node or a descendant of the children nodes. |
boolean |
isMaxLeafNodeReached()
Returns true if the max number of leaf nodes associated with this node has reached to the maximum allowed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CollectionNode(PubSubService service, CollectionNode parentNode, String nodeID, JID creator)
Method Detail |
---|
protected void addFormFields(DataForm form, boolean isEditing)
Node
addFormFields
in class Node
form
- the form containing the node configuration.isEditing
- true when the form will be used to edit the node configuration.protected void deletingNode()
Node
deletingNode
in class Node
public boolean isCollectionNode()
Node
isCollectionNode
in class Node
public boolean isChildNode(Node child)
isChildNode
in class Node
child
- the node to check if it is a direct child of this node.
public boolean isDescendantNode(Node child)
isDescendantNode
in class Node
child
- the node to check if it is a descendant of this node.
public Collection<Node> getNodes()
Node
CollectionNode
may
contain other nodes.
getNodes
in class Node
public CollectionNode.LeafNodeAssociationPolicy getAssociationPolicy()
public Collection<JID> getAssociationTrusted()
public int getMaxLeafNodes()
public boolean isAssociationAllowed(JID user)
user
- the user trying to associate a leaf node with this node.
public boolean isMaxLeafNodeReached()
|
Openfire 3.4.5 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |