public abstract class PubSubDAO<T> extends Object implements IPubSubDAO<T>
| Modifier | Constructor and Description |
|---|---|
protected |
PubSubDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Method description
|
String[] |
getBuddyGroups(tigase.xmpp.BareJID owner,
tigase.xmpp.BareJID buddy)
Method description
|
String |
getBuddySubscription(tigase.xmpp.BareJID owner,
tigase.xmpp.BareJID buddy)
Method description
|
protected <T extends AbstractNodeConfig> |
getNodeConfig(Class<T> nodeConfigClass,
String nodeName,
tigase.form.Form configForm) |
Map<tigase.xmpp.BareJID,tigase.xmpp.impl.roster.RosterElement> |
getUserRoster(tigase.xmpp.BareJID owner)
Method description
|
void |
init(String resource_uri,
Map<String,String> params,
tigase.db.UserRepository userRepository)
Method initilizes implementation of this interface which will internally call
initReposiotry() method
to initialize repository. |
protected tigase.xml.Element |
itemDataToElement(char[] data) |
AbstractNodeConfig |
parseConfig(String nodeName,
String data) |
protected tigase.form.Form |
parseConfigForm(String cnfData) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddToRootCollection, createNode, deleteItem, deleteNode, getAllNodesList, getChildNodes, getItem, getItemCreationDate, getItemsIds, getItemsIdsSince, getItemsMeta, getItemUpdateDate, getNodeAffiliations, getNodeConfig, getNodeId, getNodesList, getNodeSubscriptions, getUserAffiliations, getUserSubscriptions, removeAllFromRootCollection, removeFromRootCollection, removeNodeSubscription, updateNodeAffiliation, updateNodeConfig, updateNodeSubscription, writeItemprotected static final Logger log
public void destroy()
IPubSubDAOdestroy in interface IPubSubDAO<T>public String[] getBuddyGroups(tigase.xmpp.BareJID owner, tigase.xmpp.BareJID buddy) throws RepositoryException
getBuddyGroups in interface IPubSubDAO<T>owner - buddy - RepositoryExceptionpublic String getBuddySubscription(tigase.xmpp.BareJID owner, tigase.xmpp.BareJID buddy) throws RepositoryException
getBuddySubscription in interface IPubSubDAO<T>owner - buddy - RepositoryExceptionpublic Map<tigase.xmpp.BareJID,tigase.xmpp.impl.roster.RosterElement> getUserRoster(tigase.xmpp.BareJID owner) throws RepositoryException
getUserRoster in interface IPubSubDAO<T>owner - RepositoryExceptionprotected tigase.xml.Element itemDataToElement(char[] data)
public AbstractNodeConfig parseConfig(String nodeName, String data) throws RepositoryException
parseConfig in interface IPubSubDAO<T>RepositoryExceptionprotected tigase.form.Form parseConfigForm(String cnfData)
protected <T extends AbstractNodeConfig> T getNodeConfig(Class<T> nodeConfigClass, String nodeName, tigase.form.Form configForm) throws RepositoryException
RepositoryExceptionpublic void init(String resource_uri, Map<String,String> params, tigase.db.UserRepository userRepository) throws RepositoryException
IPubSubDAOinitReposiotry() method
to initialize repository.init in interface IPubSubDAO<T>RepositoryExceptionCopyright © 2008–2015 Tigase. All rights reserved.