public class PubSubDAOPool extends PubSubDAO
CREATION_DATE_KEY, NODES_KEY| Constructor and Description |
|---|
PubSubDAOPool(tigase.db.UserRepository userRepository,
PubSubConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDao(tigase.xmpp.BareJID domain,
PubSubDAO dao) |
void |
addToRootCollection(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
void |
createNode(tigase.xmpp.BareJID serviceJid,
String nodeName,
tigase.xmpp.BareJID ownerJid,
AbstractNodeConfig nodeConfig,
NodeType nodeType,
String collection)
Method description
|
void |
deleteItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id)
Method description
|
void |
deleteNode(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
void |
destroy()
Method description
|
tigase.xml.Element |
getItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id)
Method description
|
Date |
getItemCreationDate(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id)
Method description
|
String[] |
getItemsIds(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
Date |
getItemUpdateDate(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id)
Method description
|
NodeAffiliations |
getNodeAffiliations(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
String[] |
getNodesList(tigase.xmpp.BareJID serviceJid)
Method description
|
NodeSubscriptions |
getNodeSubscriptions(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
protected String |
getPoolDetails(tigase.xmpp.BareJID serviceJid) |
String[] |
getRootNodes(tigase.xmpp.BareJID serviceJid)
Method description
|
void |
init()
Method description
|
protected void |
offerDao(tigase.xmpp.BareJID serviceJid,
PubSubDAO dao) |
protected String |
readNodeConfigFormData(tigase.xmpp.BareJID serviceJid,
String nodeName) |
void |
removeAllFromRootCollection(tigase.xmpp.BareJID serviceJid)
Method description
|
void |
removeFromRootCollection(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
void |
removeSubscriptions(tigase.xmpp.BareJID serviceJid,
String nodeName,
int changedIndex)
Method description
|
PubSubDAO |
takeDao(tigase.xmpp.BareJID serviceJid) |
void |
updateAffiliations(tigase.xmpp.BareJID serviceJid,
String nodeName,
String serializedData)
Method description
|
void |
updateNodeConfig(tigase.xmpp.BareJID serviceJid,
String nodeName,
String serializedData)
Method description
|
void |
updateSubscriptions(tigase.xmpp.BareJID serviceJid,
String nodeName,
int changedIndex,
String serializedData)
Method description
|
void |
writeItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
long timeInMilis,
String id,
String publisher,
tigase.xml.Element item)
Method description
|
getBuddyGroups, getBuddySubscription, getItemPublisher, getNodeConfig, getNodeConfig, getNodeCreationDate, getUserRoster, itemDataToElement, update, updatepublic PubSubDAOPool(tigase.db.UserRepository userRepository,
PubSubConfig config)
public void addDao(tigase.xmpp.BareJID domain,
PubSubDAO dao)
public void addToRootCollection(tigase.xmpp.BareJID serviceJid,
String nodeName)
throws RepositoryException
PubSubDAOaddToRootCollection in interface IPubSubDAOaddToRootCollection in class PubSubDAORepositoryExceptionpublic void createNode(tigase.xmpp.BareJID serviceJid,
String nodeName,
tigase.xmpp.BareJID ownerJid,
AbstractNodeConfig nodeConfig,
NodeType nodeType,
String collection)
throws RepositoryException
PubSubDAOcreateNode in interface IPubSubDAOcreateNode in class PubSubDAORepositoryExceptionpublic void deleteItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id)
throws RepositoryException
PubSubDAOdeleteItem in interface IPubSubDAOdeleteItem in class PubSubDAORepositoryExceptionpublic void deleteNode(tigase.xmpp.BareJID serviceJid,
String nodeName)
throws RepositoryException
PubSubDAOdeleteNode in interface IPubSubDAOdeleteNode in class PubSubDAORepositoryExceptionpublic void destroy()
PubSubDAOdestroy in interface IPubSubDAOdestroy in class PubSubDAOpublic tigase.xml.Element getItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
String id)
throws RepositoryException
PubSubDAOgetItem in interface IPubSubDAOgetItem in class PubSubDAORepositoryExceptionpublic Date getItemCreationDate(tigase.xmpp.BareJID serviceJid, String nodeName, String id) throws RepositoryException
PubSubDAOgetItemCreationDate in interface IPubSubDAOgetItemCreationDate in class PubSubDAORepositoryExceptionpublic String[] getItemsIds(tigase.xmpp.BareJID serviceJid, String nodeName) throws RepositoryException
PubSubDAOgetItemsIds in interface IPubSubDAOgetItemsIds in class PubSubDAORepositoryExceptionpublic Date getItemUpdateDate(tigase.xmpp.BareJID serviceJid, String nodeName, String id) throws RepositoryException
PubSubDAOgetItemUpdateDate in interface IPubSubDAOgetItemUpdateDate in class PubSubDAORepositoryExceptionpublic NodeAffiliations getNodeAffiliations(tigase.xmpp.BareJID serviceJid, String nodeName) throws RepositoryException
PubSubDAOgetNodeAffiliations in interface IPubSubDAOgetNodeAffiliations in class PubSubDAORepositoryExceptionpublic String[] getNodesList(tigase.xmpp.BareJID serviceJid) throws RepositoryException
PubSubDAOgetNodesList in interface IPubSubDAOgetNodesList in class PubSubDAORepositoryExceptionpublic NodeSubscriptions getNodeSubscriptions(tigase.xmpp.BareJID serviceJid, String nodeName) throws RepositoryException
PubSubDAOgetNodeSubscriptions in interface IPubSubDAOgetNodeSubscriptions in class PubSubDAORepositoryExceptionprotected String getPoolDetails(tigase.xmpp.BareJID serviceJid)
public String[] getRootNodes(tigase.xmpp.BareJID serviceJid) throws RepositoryException
PubSubDAOgetRootNodes in interface IPubSubDAOgetRootNodes in class PubSubDAORepositoryExceptionpublic void init()
throws RepositoryException
PubSubDAOinit in interface IPubSubDAOinit in class PubSubDAORepositoryExceptionprotected void offerDao(tigase.xmpp.BareJID serviceJid,
PubSubDAO dao)
protected String readNodeConfigFormData(tigase.xmpp.BareJID serviceJid, String nodeName) throws tigase.db.TigaseDBException
readNodeConfigFormData in class PubSubDAOtigase.db.TigaseDBExceptionpublic void removeAllFromRootCollection(tigase.xmpp.BareJID serviceJid)
throws RepositoryException
PubSubDAOremoveAllFromRootCollection in class PubSubDAORepositoryExceptionpublic void removeFromRootCollection(tigase.xmpp.BareJID serviceJid,
String nodeName)
throws RepositoryException
PubSubDAOremoveFromRootCollection in interface IPubSubDAOremoveFromRootCollection in class PubSubDAORepositoryExceptionpublic void removeSubscriptions(tigase.xmpp.BareJID serviceJid,
String nodeName,
int changedIndex)
throws RepositoryException
PubSubDAOremoveSubscriptions in class PubSubDAORepositoryExceptionpublic PubSubDAO takeDao(tigase.xmpp.BareJID serviceJid)
public void updateAffiliations(tigase.xmpp.BareJID serviceJid,
String nodeName,
String serializedData)
throws RepositoryException
PubSubDAOupdateAffiliations in class PubSubDAORepositoryExceptionpublic void updateNodeConfig(tigase.xmpp.BareJID serviceJid,
String nodeName,
String serializedData)
throws RepositoryException
PubSubDAOupdateNodeConfig in class PubSubDAORepositoryExceptionpublic void updateSubscriptions(tigase.xmpp.BareJID serviceJid,
String nodeName,
int changedIndex,
String serializedData)
throws RepositoryException
PubSubDAOupdateSubscriptions in class PubSubDAORepositoryExceptionpublic void writeItem(tigase.xmpp.BareJID serviceJid,
String nodeName,
long timeInMilis,
String id,
String publisher,
tigase.xml.Element item)
throws RepositoryException
PubSubDAOwriteItem in interface IPubSubDAOwriteItem in class PubSubDAORepositoryExceptionCopyright © 2008–2014 Tigase. All rights reserved.