|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.pubsub.repository.PubSubDAO
tigase.pubsub.repository.PubSubDAOPool
public class PubSubDAOPool
| Field Summary |
|---|
| Fields inherited from class tigase.pubsub.repository.PubSubDAO |
|---|
CREATION_DATE_KEY, NODES_KEY |
| Constructor Summary | |
|---|---|
PubSubDAOPool(tigase.db.UserRepository userRepository,
PubSubConfig config)
|
|
| Method Summary | |
|---|---|
void |
addDao(PubSubDAO dao)
|
void |
addToRootCollection(String nodeName)
Method description |
void |
createNode(String nodeName,
String ownerJid,
AbstractNodeConfig nodeConfig,
NodeType nodeType,
String collection)
Method description |
void |
deleteItem(String nodeName,
String id)
Method description |
void |
deleteNode(String nodeName)
Method description |
void |
destroy()
Method description |
tigase.xml.Element |
getItem(String nodeName,
String id)
Method description |
Date |
getItemCreationDate(String nodeName,
String id)
Method description |
String[] |
getItemsIds(String nodeName)
Method description |
Date |
getItemUpdateDate(String nodeName,
String id)
Method description |
NodeAffiliations |
getNodeAffiliations(String nodeName)
Method description |
String[] |
getNodesList()
Method description |
NodeSubscriptions |
getNodeSubscriptions(String nodeName)
Method description |
String[] |
getRootNodes()
Method description |
void |
init()
Method description |
protected String |
readNodeConfigFormData(String nodeName)
|
void |
removeAllFromRootCollection()
Method description |
void |
removeFromRootCollection(String nodeName)
Method description |
void |
removeSubscriptions(String nodeName,
int changedIndex)
Method description |
PubSubDAO |
takeDao()
|
void |
updateAffiliations(String nodeName,
String serializedData)
Method description |
void |
updateNodeConfig(String nodeName,
String serializedData)
Method description |
void |
updateSubscriptions(String nodeName,
int changedIndex,
String serializedData)
Method description |
void |
writeItem(String nodeName,
long timeInMilis,
String id,
String publisher,
tigase.xml.Element item)
Method description |
| Methods inherited from class tigase.pubsub.repository.PubSubDAO |
|---|
getBuddyGroups, getBuddySubscription, getItemPublisher, getNodeConfig, getNodeConfig, getNodeCreationDate, getUserRoster, itemDataToElement, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PubSubDAOPool(tigase.db.UserRepository userRepository,
PubSubConfig config)
| Method Detail |
|---|
public void addDao(PubSubDAO dao)
public void addToRootCollection(String nodeName)
throws RepositoryException
PubSubDAO
addToRootCollection in interface IPubSubDAOaddToRootCollection in class PubSubDAORepositoryException
public void createNode(String nodeName,
String ownerJid,
AbstractNodeConfig nodeConfig,
NodeType nodeType,
String collection)
throws RepositoryException
PubSubDAO
createNode in interface IPubSubDAOcreateNode in class PubSubDAORepositoryException
public void deleteItem(String nodeName,
String id)
throws RepositoryException
PubSubDAO
deleteItem in interface IPubSubDAOdeleteItem in class PubSubDAORepositoryException
public void deleteNode(String nodeName)
throws RepositoryException
PubSubDAO
deleteNode in interface IPubSubDAOdeleteNode in class PubSubDAORepositoryExceptionpublic void destroy()
PubSubDAO
destroy in interface IPubSubDAOdestroy in class PubSubDAO
public tigase.xml.Element getItem(String nodeName,
String id)
throws RepositoryException
PubSubDAO
getItem in interface IPubSubDAOgetItem in class PubSubDAORepositoryException
public Date getItemCreationDate(String nodeName,
String id)
throws RepositoryException
PubSubDAO
getItemCreationDate in interface IPubSubDAOgetItemCreationDate in class PubSubDAORepositoryException
public String[] getItemsIds(String nodeName)
throws RepositoryException
PubSubDAO
getItemsIds in interface IPubSubDAOgetItemsIds in class PubSubDAORepositoryException
public Date getItemUpdateDate(String nodeName,
String id)
throws RepositoryException
PubSubDAO
getItemUpdateDate in interface IPubSubDAOgetItemUpdateDate in class PubSubDAORepositoryException
public NodeAffiliations getNodeAffiliations(String nodeName)
throws RepositoryException
PubSubDAO
getNodeAffiliations in interface IPubSubDAOgetNodeAffiliations in class PubSubDAORepositoryException
public String[] getNodesList()
throws RepositoryException
PubSubDAO
getNodesList in interface IPubSubDAOgetNodesList in class PubSubDAORepositoryException
public NodeSubscriptions getNodeSubscriptions(String nodeName)
throws RepositoryException
PubSubDAO
getNodeSubscriptions in interface IPubSubDAOgetNodeSubscriptions in class PubSubDAORepositoryException
public String[] getRootNodes()
throws RepositoryException
PubSubDAO
getRootNodes in interface IPubSubDAOgetRootNodes in class PubSubDAORepositoryException
public void init()
throws RepositoryException
PubSubDAO
init in interface IPubSubDAOinit in class PubSubDAORepositoryException
protected String readNodeConfigFormData(String nodeName)
throws tigase.db.TigaseDBException
readNodeConfigFormData in class PubSubDAOtigase.db.TigaseDBException
public void removeAllFromRootCollection()
throws RepositoryException
PubSubDAO
removeAllFromRootCollection in class PubSubDAORepositoryException
public void removeFromRootCollection(String nodeName)
throws RepositoryException
PubSubDAO
removeFromRootCollection in interface IPubSubDAOremoveFromRootCollection in class PubSubDAORepositoryException
public void removeSubscriptions(String nodeName,
int changedIndex)
throws RepositoryException
PubSubDAO
removeSubscriptions in class PubSubDAORepositoryExceptionpublic PubSubDAO takeDao()
public void updateAffiliations(String nodeName,
String serializedData)
throws RepositoryException
PubSubDAO
updateAffiliations in class PubSubDAORepositoryException
public void updateNodeConfig(String nodeName,
String serializedData)
throws RepositoryException
PubSubDAO
updateNodeConfig in class PubSubDAORepositoryException
public void updateSubscriptions(String nodeName,
int changedIndex,
String serializedData)
throws RepositoryException
PubSubDAO
updateSubscriptions in class PubSubDAORepositoryException
public void writeItem(String nodeName,
long timeInMilis,
String id,
String publisher,
tigase.xml.Element item)
throws RepositoryException
PubSubDAO
writeItem in interface IPubSubDAOwriteItem in class PubSubDAORepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||