-include("ejabberd.hrl").
-include("logger.hrl").
--include("jlib.hrl").
+-include("xmpp.hrl").
-include("ejabberd_http.hrl").
-include("ejabberd.hrl").
-include("logger.hrl").
--include("jlib.hrl").
+-include("xmpp.hrl").
-include("ejabberd_http.hrl").
-include("ejabberd.hrl").
-include("logger.hrl").
--include("jlib.hrl").
+-include("xmpp.hrl").
-include("ejabberd_http.hrl").
-include("ejabberd.hrl").
-include("logger.hrl").
--include("jlib.hrl").
+-include("xmpp.hrl").
-include("ejabberd_http.hrl").
-module(gen_pubsub_nodetree).
--include("jlib.hrl").
-type(host() :: mod_pubsub:host()).
-type(nodeId() :: mod_pubsub:nodeId()).
-callback options() -> nodeOptions().
-callback set_node(PubsubNode :: pubsubNode()) ->
- ok | {result, NodeIdx::nodeIdx()} | {error, xmlel()}.
+ ok | {result, NodeIdx::nodeIdx()} | {error, fxml:xmlel()}.
-callback get_node(Host :: host(),
NodeId :: nodeId(),
- From :: jid()) ->
+ From :: jid:jid()) ->
pubsubNode() |
- {error, xmlel()}.
+ {error, fxml:xmlel()}.
-callback get_node(Host :: host(),
NodeId :: nodeId()) ->
pubsubNode() |
- {error, xmlel()}.
+ {error, fxml:xmlel()}.
-callback get_node(NodeIdx :: nodeIdx()) ->
pubsubNode() |
- {error, xmlel()}.
+ {error, fxml:xmlel()}.
-callback get_nodes(Host :: host(),
- From :: jid())->
+ From :: jid:jid())->
[pubsubNode()].
-callback get_nodes(Host :: host())->
-callback get_parentnodes(Host :: host(),
NodeId :: nodeId(),
- From :: jid()) ->
+ From :: jid:jid()) ->
[pubsubNode()] |
- {error, xmlel()}.
+ {error, fxml:xmlel()}.
-callback get_parentnodes_tree(Host :: host(),
NodeId :: nodeId(),
- From :: jid()) ->
+ From :: jid:jid()) ->
[{0, [pubsubNode(),...]}].
-callback get_subnodes(Host :: host(),
NodeId :: nodeId(),
- From :: jid()) ->
+ From :: jid:jid()) ->
[pubsubNode()].
-callback get_subnodes_tree(Host :: host(),
NodeId :: nodeId(),
- From :: jid()) ->
+ From :: jid:jid()) ->
[pubsubNode()].
-callback create_node(Host :: host(),
NodeId :: nodeId(),
Type :: binary(),
- Owner :: jid(),
+ Owner :: jid:jid(),
Options :: nodeOptions(),
Parents :: [nodeId()]) ->
{ok, NodeIdx::nodeIdx()} |
- {error, xmlel()} |
+ {error, fxml:xmlel()} |
{error, {virtual, {host(), nodeId()}}}.
-callback delete_node(Host :: host(),
-include("ejabberd.hrl").
-include("logger.hrl").
--include("jlib.hrl").
+-include("xmpp.hrl").
-include("ejabberd_http.hrl").
-author('christophe.romain@process-one.net').
-include("pubsub.hrl").
--include("jlib.hrl").
-export([init/3, terminate/2, options/0, features/0,
create_node_permission/6, create_node/2, delete_node/1,
-author('christophe.romain@process-one.net').
-include("pubsub.hrl").
--include("jlib.hrl").
-export([init/3, terminate/2, options/0, features/0,
create_node_permission/6, create_node/2, delete_node/1,
-author('christophe.romain@process-one.net').
-include("pubsub.hrl").
--include("jlib.hrl").
-export([init/3, terminate/2, options/0, features/0,
create_node_permission/6, create_node/2, delete_node/1,
-author('christophe.romain@process-one.net').
-include("pubsub.hrl").
--include("jlib.hrl").
-export([init/3, terminate/2, options/0, features/0,
create_node_permission/6, create_node/2, delete_node/1,
-author('ecestari@process-one.net').
-include("pubsub.hrl").
--include("jlib.hrl").
%%% @doc The module <strong>{@module}</strong> is the pep microblog PubSub plugin.
%%% <p>To be used, mod_pubsub must be configured:<pre>
-author('christophe.romain@process-one.net').
-include("pubsub.hrl").
--include("jlib.hrl").
+-include("jid.hrl").
-export([init/3, terminate/2, options/0, features/0,
create_node_permission/6, create_node/2, delete_node/1,
-author('christophe.romain@process-one.net').
-include("pubsub.hrl").
--include("jlib.hrl").
-include("logger.hrl").
-export([init/3, terminate/2, options/0, features/0,
-author('christophe.romain@process-one.net').
-include("pubsub.hrl").
--include("jlib.hrl").
-include("logger.hrl").
-export([init/3, terminate/2, options/0, features/0,
-author('christophe.romain@process-one.net').
-include("pubsub.hrl").
--include("jlib.hrl").
-export([init/3, terminate/2, options/0, features/0,
create_node_permission/6, create_node/2, delete_node/1,
-author('christophe.romain@process-one.net').
-include("pubsub.hrl").
--include("jlib.hrl").
-export([init/3, terminate/2, options/0, features/0,
create_node_permission/6, create_node/2, delete_node/1,
-author('christophe.romain@process-one.net').
-include("pubsub.hrl").
--include("jlib.hrl").
-export([init/3, terminate/2, options/0, set_node/1,
get_node/3, get_node/2, get_node/1, get_nodes/2,