static void |
PubSubPersistenceManager.createDefaultConfiguration(PubSubService service,
DefaultNodeConfiguration config) |
Creates a new default node configuration for the specified service.
|
static PubSubEngine.CreateNodeResponse |
PubSubEngine.createNodeHelper(PubSubService service,
org.xmpp.packet.JID requester,
org.dom4j.Element configuration,
String nodeID,
org.xmpp.forms.DataForm publishOptions) |
Checks if the following conditions are satisfied and creates a node
- Requester can create nodes
- Instant node creation is enabled
- Node does not already exist
- New node configuration is valid
NOTE 1: This method should not reply to the client
NOTE 2: This method calls UserManager::isRegisteredUser(JID) which can block waiting for a response - so
do not call this method in the same thread in which a response might arrive
|
static Collection<String> |
PubSubEngine.getShowPresences(PubSubService service,
org.xmpp.packet.JID subscriber) |
Returns the show values of the last know presence of all connected resources of the
specified subscriber.
|
static DefaultNodeConfiguration |
PubSubPersistenceManager.loadDefaultConfiguration(PubSubService service,
boolean isLeafType) |
Loads from the database the default node configuration for the specified node type
and pubsub service.
|
static void |
PubSubPersistenceManager.loadNode(PubSubService service,
String nodeId) |
Loads a node from the database and adds them to the PubSub service.
|
static void |
PubSubPersistenceManager.loadNodes(PubSubService service) |
Loads all nodes from the database and adds them to the PubSub service.
|
static void |
PubSubPersistenceManager.loadSubscription(PubSubService service,
Node node,
String subId) |
|
static void |
PubSubEngine.presenceSubscriptionNotRequired(PubSubService service,
Node node,
org.xmpp.packet.JID user) |
Requests the pubsub service to subscribe to the presence of the user.
|
static void |
PubSubEngine.presenceSubscriptionRequired(PubSubService service,
Node node,
org.xmpp.packet.JID user) |
Requests the pubsub service to unsubscribe from the presence of the user.
|
Future |
PubSubEngine.process(PubSubService service,
org.xmpp.packet.IQ iq) |
Handles IQ packets sent to the pubsub service.
|
void |
PubSubEngine.process(PubSubService service,
org.xmpp.packet.Message message) |
Handles Message packets sent to the pubsub service.
|
void |
PubSubEngine.process(PubSubService service,
org.xmpp.packet.Presence presence) |
Handles Presence packets sent to the pubsub service.
|
void |
PubSubEngine.shutdown(PubSubService service) |
|
void |
PubSubEngine.start(PubSubService service) |
|
static void |
PubSubPersistenceManager.updateDefaultConfiguration(PubSubService service,
DefaultNodeConfiguration config) |
Updates the default node configuration for the specified service.
|