public interface Logic
| Modifier and Type | Method and Description |
|---|---|
void |
configureNode(tigase.xmpp.JID from,
tigase.xmpp.BareJID service,
String node,
tigase.xml.Element config)
Configures node of service
|
void |
createNode(tigase.xmpp.JID from,
tigase.xmpp.BareJID service,
String node)
Creates node for service
|
String |
getId() |
List<tigase.xml.Element> |
getNodes(tigase.xmpp.JID from,
tigase.xmpp.BareJID service,
String node)
Method returns elements containing info about subnodes to passed node
|
boolean |
isSupported(tigase.xmpp.JID from,
tigase.xmpp.BareJID service,
String node)
Method should return true if this node can be handled by this logic
instance ie.
|
String |
publish(tigase.xmpp.JID from,
tigase.xmpp.BareJID service,
String node,
tigase.xml.Element item)
Method adds item to store using logic specific for this service and node
but how to send notifications to about publish if item should exists in
more than one node?
|
void |
retract(tigase.xmpp.JID from,
tigase.xmpp.BareJID service,
String node,
String id)
Method removes item from store using logic specific for this service and
node
|
List<tigase.xml.Element> |
retrieve(tigase.xmpp.JID from,
tigase.xmpp.BareJID service,
String node,
Integer offset,
Integer limit)
Method retrieves list of items for node starting with offset and no more
than limit
|
List<tigase.xml.Element> |
retrieve(tigase.xmpp.JID from,
tigase.xmpp.BareJID service,
String node,
String id)
Method retrieves item with supplied id from store using specific logic
for this service and node
|
void |
setProperties(Map<String,Object> props)
Method sets configuration
|
void configureNode(tigase.xmpp.JID from,
tigase.xmpp.BareJID service,
String node,
tigase.xml.Element config)
throws RepositoryException
from - service - node - config - RepositoryExceptionvoid createNode(tigase.xmpp.JID from,
tigase.xmpp.BareJID service,
String node)
throws RepositoryException
from - service - node - RepositoryExceptionString getId()
List<tigase.xml.Element> getNodes(tigase.xmpp.JID from, tigase.xmpp.BareJID service, String node) throws RepositoryException
from - service - node - - parent node, can be null for root nodeRepositoryExceptionboolean isSupported(tigase.xmpp.JID from,
tigase.xmpp.BareJID service,
String node)
from - service - node - String publish(tigase.xmpp.JID from, tigase.xmpp.BareJID service, String node, tigase.xml.Element item) throws RepositoryException
from - - source jid of stanzaservice - node - item - RepositoryExceptionvoid retract(tigase.xmpp.JID from,
tigase.xmpp.BareJID service,
String node,
String id)
throws RepositoryException
from - - source jid of stanzaservice - node - id - RepositoryExceptionList<tigase.xml.Element> retrieve(tigase.xmpp.JID from, tigase.xmpp.BareJID service, String node, Integer offset, Integer limit) throws RepositoryException
from - - source jid of stanzaservice - node - offset - - offset of items to return, can be nulllimit - - max number of items to return, can be nullRepositoryExceptionList<tigase.xml.Element> retrieve(tigase.xmpp.JID from, tigase.xmpp.BareJID service, String node, String id) throws RepositoryException
from - - source jid of stanzaservice - node - id - RepositoryExceptionCopyright © 2008–2014 Tigase. All rights reserved.