Copyright © 2006-2012 ProcessOne
Version: 3.0.0-alpha-5, May 23 2012 07:15:12
Behaviours: gen_pubsub_node.
Authors: Christophe Romain (christophe.romain@process-one.net) [web site: http://www.process-one.net/].
create_node(NodeId, Owner) -> any()
create_node_permission(Host, ServerHost, Node, ParentNode, Owner, Access) -> bool()
Checks if the current user has the permission to create the requested node
In node_default, the permission is decided by the place in the
hierarchy where the user is creating the node. The access parameter is also
checked in the default module. This parameter depends on the value of the
access_createnode ACL value in ejabberd config file.
This function also check that node can be created a a children of its parent node
PubSub plugins can redefine the PubSub node creation rights as they
which. They can simply delegate this check to the node_default
module by implementing this function like this:
check_create_user_permission(Host, ServerHost, Node, ParentNode, Owner, Access) -> node_default:check_create_user_permission(Host, ServerHost, Node, ParentNode, Owner, Access).
delete_item(NodeId, Publisher, PublishModel, ItemId) -> any()
delete_node(Removed) -> any()
features() -> any()
get_affiliation(NodeId, Owner) -> any()
get_entity_affiliations(Host, Owner) -> any()
get_entity_subscriptions(Host, Owner) -> any()
get_item(NodeId, ItemId) -> any()
get_item(NodeId, ItemId, JID, AccessModel, PresenceSubscription, RosterGroup, SubId) -> any()
get_item_name(Host, Node, Id) -> any()
get_items(NodeId, From) -> any()
get_items(NodeId, JID, AccessModel, PresenceSubscription, RosterGroup, SubId) -> any()
get_node_affiliations(NodeId) -> any()
get_node_subscriptions(NodeId) -> any()
get_pending_nodes(Host, Owner) -> any()
get_state(NodeId, JID) -> any()
get_states(NodeId) -> any()
get_subscriptions(NodeId, Owner) -> any()
init(Host, ServerHost, Opts) -> any()
node_to_path(Node) -> any()
options() -> any()
path_to_node(Path) -> any()
publish_item(NodeId, Publisher, Model, MaxItems, ItemId, Payload) -> any()
purge_node(NodeId, Owner) -> any()
remove_extra_items(NodeId, MaxItems, ItemIds) -> any()
set_affiliation(NodeId, Owner, Affiliation) -> any()
set_item(Item) -> any()
set_state(State) -> any()
set_subscriptions(NodeId, Owner, Subscription, SubId) -> any()
subscribe_node(NodeId, Sender, Subscriber, AccessModel, SendLast, PresenceSubscription, RosterGroup, Options) -> any()
terminate(Host, ServerHost) -> any()
unsubscribe_node(NodeId, Sender, Subscriber, SubId) -> any()
Generated by EDoc, May 23 2012, 07:15:12.