public class PubSubDAOMongo
extends tigase.pubsub.repository.PubSubDAO<org.bson.types.ObjectId>
| Constructor and Description |
|---|
PubSubDAOMongo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToRootCollection(tigase.xmpp.BareJID serviceJid,
String nodeName) |
org.bson.types.ObjectId |
createNode(tigase.xmpp.BareJID serviceJid,
String nodeName,
tigase.xmpp.BareJID ownerJid,
tigase.pubsub.AbstractNodeConfig nodeConfig,
tigase.pubsub.NodeType nodeType,
org.bson.types.ObjectId collectionId) |
void |
deleteItem(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
String id) |
void |
deleteNode(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId) |
String[] |
getAllNodesList(tigase.xmpp.BareJID serviceJid) |
String[] |
getChildNodes(tigase.xmpp.BareJID serviceJid,
String nodeName) |
tigase.xml.Element |
getItem(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
String id) |
Date |
getItemCreationDate(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
String id) |
String[] |
getItemsIds(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId) |
String[] |
getItemsIdsSince(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
Date since) |
List<tigase.pubsub.repository.IItems.ItemMeta> |
getItemsMeta(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
String nodeName) |
Date |
getItemUpdateDate(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
String id) |
tigase.pubsub.repository.NodeAffiliations |
getNodeAffiliations(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId) |
String |
getNodeConfig(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId) |
org.bson.types.ObjectId |
getNodeId(tigase.xmpp.BareJID serviceJid,
String nodeName) |
String[] |
getNodesList(tigase.xmpp.BareJID serviceJid,
String nodeName) |
tigase.pubsub.repository.NodeSubscriptions |
getNodeSubscriptions(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId) |
Map<String,tigase.pubsub.repository.stateless.UsersAffiliation> |
getUserAffiliations(tigase.xmpp.BareJID serviceJid,
tigase.xmpp.BareJID jid) |
Map<String,tigase.pubsub.repository.stateless.UsersSubscription> |
getUserSubscriptions(tigase.xmpp.BareJID serviceJid,
tigase.xmpp.BareJID jid) |
void |
initRepository(String resource_uri,
Map<String,String> params) |
void |
removeAllFromRootCollection(tigase.xmpp.BareJID serviceJid) |
void |
removeFromRootCollection(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId) |
void |
removeNodeSubscription(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
tigase.xmpp.BareJID jid) |
void |
updateNodeAffiliation(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
String nodeName,
tigase.pubsub.repository.stateless.UsersAffiliation userAffiliation) |
void |
updateNodeConfig(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
String serializedNodeConfig,
org.bson.types.ObjectId collectionId) |
void |
updateNodeSubscription(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
String nodeName,
tigase.pubsub.repository.stateless.UsersSubscription userSubscription) |
void |
writeItem(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
long timeInMilis,
String id,
String publisher,
tigase.xml.Element item) |
public void initRepository(String resource_uri, Map<String,String> params) throws tigase.db.DBInitException
tigase.db.DBInitExceptionpublic void addToRootCollection(tigase.xmpp.BareJID serviceJid,
String nodeName)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic org.bson.types.ObjectId createNode(tigase.xmpp.BareJID serviceJid,
String nodeName,
tigase.xmpp.BareJID ownerJid,
tigase.pubsub.AbstractNodeConfig nodeConfig,
tigase.pubsub.NodeType nodeType,
org.bson.types.ObjectId collectionId)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic void deleteItem(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
String id)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic void deleteNode(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic String[] getAllNodesList(tigase.xmpp.BareJID serviceJid) throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic tigase.xml.Element getItem(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
String id)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic Date getItemCreationDate(tigase.xmpp.BareJID serviceJid, org.bson.types.ObjectId nodeId, String id) throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic String[] getItemsIds(tigase.xmpp.BareJID serviceJid, org.bson.types.ObjectId nodeId) throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic String[] getItemsIdsSince(tigase.xmpp.BareJID serviceJid, org.bson.types.ObjectId nodeId, Date since) throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic List<tigase.pubsub.repository.IItems.ItemMeta> getItemsMeta(tigase.xmpp.BareJID serviceJid, org.bson.types.ObjectId nodeId, String nodeName) throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic Date getItemUpdateDate(tigase.xmpp.BareJID serviceJid, org.bson.types.ObjectId nodeId, String id) throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic tigase.pubsub.repository.NodeAffiliations getNodeAffiliations(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic String getNodeConfig(tigase.xmpp.BareJID serviceJid, org.bson.types.ObjectId nodeId) throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic org.bson.types.ObjectId getNodeId(tigase.xmpp.BareJID serviceJid,
String nodeName)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic String[] getNodesList(tigase.xmpp.BareJID serviceJid, String nodeName) throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic tigase.pubsub.repository.NodeSubscriptions getNodeSubscriptions(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic String[] getChildNodes(tigase.xmpp.BareJID serviceJid, String nodeName) throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic Map<String,tigase.pubsub.repository.stateless.UsersAffiliation> getUserAffiliations(tigase.xmpp.BareJID serviceJid, tigase.xmpp.BareJID jid) throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic Map<String,tigase.pubsub.repository.stateless.UsersSubscription> getUserSubscriptions(tigase.xmpp.BareJID serviceJid, tigase.xmpp.BareJID jid) throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic void removeAllFromRootCollection(tigase.xmpp.BareJID serviceJid)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic void removeFromRootCollection(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic void removeNodeSubscription(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
tigase.xmpp.BareJID jid)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic void updateNodeConfig(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
String serializedNodeConfig,
org.bson.types.ObjectId collectionId)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic void updateNodeAffiliation(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
String nodeName,
tigase.pubsub.repository.stateless.UsersAffiliation userAffiliation)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionpublic void updateNodeSubscription(tigase.xmpp.BareJID serviceJid,
org.bson.types.ObjectId nodeId,
String nodeName,
tigase.pubsub.repository.stateless.UsersSubscription userSubscription)
throws tigase.pubsub.repository.RepositoryException
tigase.pubsub.repository.RepositoryExceptionCopyright © 2015 "Tigase, Inc.". All rights reserved.