public interface IPubSubDAO<T>
extends tigase.db.Repository
| Modifier and Type | Method and Description |
|---|---|
void |
addToRootCollection(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
T |
createNode(tigase.xmpp.BareJID serviceJid,
String nodeName,
tigase.xmpp.BareJID ownerJid,
AbstractNodeConfig nodeConfig,
NodeType nodeType,
T collectionId)
Method description
|
void |
deleteItem(tigase.xmpp.BareJID serviceJid,
T nodeId,
String id)
Method description
|
void |
deleteNode(tigase.xmpp.BareJID serviceJid,
T nodeId)
Method description
|
void |
destroy()
Method description
|
String[] |
getAllNodesList(tigase.xmpp.BareJID serviceJid) |
String[] |
getBuddyGroups(tigase.xmpp.BareJID owner,
tigase.xmpp.BareJID bareJid)
Deprecated.
|
String |
getBuddySubscription(tigase.xmpp.BareJID owner,
tigase.xmpp.BareJID buddy)
Deprecated.
|
String[] |
getChildNodes(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
tigase.xml.Element |
getItem(tigase.xmpp.BareJID serviceJid,
T nodeId,
String id) |
Date |
getItemCreationDate(tigase.xmpp.BareJID serviceJid,
T nodeId,
String id)
Method description
|
String[] |
getItemsIds(tigase.xmpp.BareJID serviceJid,
T nodeId) |
String[] |
getItemsIdsSince(tigase.xmpp.BareJID serviceJid,
T nodeId,
Date since) |
List<IItems.ItemMeta> |
getItemsMeta(tigase.xmpp.BareJID serviceJid,
T nodeId,
String nodeName) |
Date |
getItemUpdateDate(tigase.xmpp.BareJID serviceJid,
T nodeId,
String id)
Method description
|
NodeAffiliations |
getNodeAffiliations(tigase.xmpp.BareJID serviceJid,
T nodeId)
Method description
|
String |
getNodeConfig(tigase.xmpp.BareJID serviceJid,
T nodeId)
Method description
|
T |
getNodeId(tigase.xmpp.BareJID serviceJid,
String nodeName) |
String[] |
getNodesList(tigase.xmpp.BareJID serviceJid,
String nodeName)
Method description
|
NodeSubscriptions |
getNodeSubscriptions(tigase.xmpp.BareJID serviceJid,
T nodeId) |
Map<String,UsersAffiliation> |
getUserAffiliations(tigase.xmpp.BareJID serviceJid,
tigase.xmpp.BareJID jid) |
Map<tigase.xmpp.BareJID,tigase.xmpp.impl.roster.RosterElement> |
getUserRoster(tigase.xmpp.BareJID owner) |
Map<String,UsersSubscription> |
getUserSubscriptions(tigase.xmpp.BareJID serviceJid,
tigase.xmpp.BareJID jid) |
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. |
AbstractNodeConfig |
parseConfig(String nodeName,
String cfgData) |
void |
removeAllFromRootCollection(tigase.xmpp.BareJID serviceJid) |
void |
removeFromRootCollection(tigase.xmpp.BareJID serviceJid,
T nodeId)
Method description
|
void |
removeNodeSubscription(tigase.xmpp.BareJID serviceJid,
T nodeId,
tigase.xmpp.BareJID jid) |
void |
updateNodeAffiliation(tigase.xmpp.BareJID serviceJid,
T nodeId,
String nodeName,
UsersAffiliation userAffiliation)
Method description
|
void |
updateNodeConfig(tigase.xmpp.BareJID serviceJid,
T nodeId,
String serializedData,
T collectionId)
Method description
|
void |
updateNodeSubscription(tigase.xmpp.BareJID serviceJid,
T nodeId,
String nodeName,
UsersSubscription userSubscription) |
void |
writeItem(tigase.xmpp.BareJID serviceJid,
T nodeId,
long timeInMilis,
String id,
String publisher,
tigase.xml.Element item)
Method description
|
void addToRootCollection(tigase.xmpp.BareJID serviceJid,
String nodeName)
throws RepositoryException
nodeName - RepositoryExceptionT createNode(tigase.xmpp.BareJID serviceJid, String nodeName, tigase.xmpp.BareJID ownerJid, AbstractNodeConfig nodeConfig, NodeType nodeType, T collectionId) throws RepositoryException
nodeName - ownerJid - nodeConfig - nodeType - collection - RepositoryExceptionvoid deleteItem(tigase.xmpp.BareJID serviceJid,
T nodeId,
String id)
throws RepositoryException
nodeName - id - RepositoryExceptionvoid deleteNode(tigase.xmpp.BareJID serviceJid,
T nodeId)
throws RepositoryException
nodeName - RepositoryExceptionvoid destroy()
String[] getAllNodesList(tigase.xmpp.BareJID serviceJid) throws RepositoryException
RepositoryException@Deprecated String[] getBuddyGroups(tigase.xmpp.BareJID owner, tigase.xmpp.BareJID bareJid) throws RepositoryException
RepositoryException@Deprecated String getBuddySubscription(tigase.xmpp.BareJID owner, tigase.xmpp.BareJID buddy) throws RepositoryException
RepositoryExceptiontigase.xml.Element getItem(tigase.xmpp.BareJID serviceJid,
T nodeId,
String id)
throws RepositoryException
RepositoryExceptionDate getItemCreationDate(tigase.xmpp.BareJID serviceJid, T nodeId, String id) throws RepositoryException
nodeName - id - RepositoryExceptionString[] getItemsIds(tigase.xmpp.BareJID serviceJid, T nodeId) throws RepositoryException
RepositoryExceptionString[] getItemsIdsSince(tigase.xmpp.BareJID serviceJid, T nodeId, Date since) throws RepositoryException
RepositoryExceptionList<IItems.ItemMeta> getItemsMeta(tigase.xmpp.BareJID serviceJid, T nodeId, String nodeName) throws RepositoryException
RepositoryExceptionDate getItemUpdateDate(tigase.xmpp.BareJID serviceJid, T nodeId, String id) throws RepositoryException
nodeName - id - RepositoryExceptionNodeAffiliations getNodeAffiliations(tigase.xmpp.BareJID serviceJid, T nodeId) throws RepositoryException
nodeName - RepositoryExceptionString getNodeConfig(tigase.xmpp.BareJID serviceJid, T nodeId) throws RepositoryException
nodeName - RepositoryExceptionT getNodeId(tigase.xmpp.BareJID serviceJid, String nodeName) throws RepositoryException
RepositoryExceptionString[] getNodesList(tigase.xmpp.BareJID serviceJid, String nodeName) throws RepositoryException
RepositoryExceptionNodeSubscriptions getNodeSubscriptions(tigase.xmpp.BareJID serviceJid, T nodeId) throws RepositoryException
RepositoryExceptionString[] getChildNodes(tigase.xmpp.BareJID serviceJid, String nodeName) throws RepositoryException
RepositoryExceptionMap<tigase.xmpp.BareJID,tigase.xmpp.impl.roster.RosterElement> getUserRoster(tigase.xmpp.BareJID owner) throws RepositoryException
RepositoryExceptionMap<String,UsersAffiliation> getUserAffiliations(tigase.xmpp.BareJID serviceJid, tigase.xmpp.BareJID jid) throws RepositoryException
RepositoryExceptionMap<String,UsersSubscription> getUserSubscriptions(tigase.xmpp.BareJID serviceJid, tigase.xmpp.BareJID jid) throws RepositoryException
RepositoryExceptionvoid init(String resource_uri, Map<String,String> params, tigase.db.UserRepository userRepository) throws RepositoryException
initReposiotry() method
to initialize repository.resource_uri - params - userRepository - RepositoryExceptionAbstractNodeConfig parseConfig(String nodeName, String cfgData) throws RepositoryException
RepositoryExceptionvoid removeAllFromRootCollection(tigase.xmpp.BareJID serviceJid)
throws RepositoryException
RepositoryExceptionvoid removeFromRootCollection(tigase.xmpp.BareJID serviceJid,
T nodeId)
throws RepositoryException
nodeName - RepositoryExceptionvoid removeNodeSubscription(tigase.xmpp.BareJID serviceJid,
T nodeId,
tigase.xmpp.BareJID jid)
throws RepositoryException
RepositoryExceptionvoid updateNodeConfig(tigase.xmpp.BareJID serviceJid,
T nodeId,
String serializedData,
T collectionId)
throws RepositoryException
nodeName - nodeConfig - RepositoryExceptionvoid updateNodeAffiliation(tigase.xmpp.BareJID serviceJid,
T nodeId,
String nodeName,
UsersAffiliation userAffiliation)
throws RepositoryException
nodeName - affiliations - RepositoryExceptionvoid updateNodeSubscription(tigase.xmpp.BareJID serviceJid,
T nodeId,
String nodeName,
UsersSubscription userSubscription)
throws RepositoryException
RepositoryExceptionvoid writeItem(tigase.xmpp.BareJID serviceJid,
T nodeId,
long timeInMilis,
String id,
String publisher,
tigase.xml.Element item)
throws RepositoryException
nodeName - timeInMilis - id - publisher - item - RepositoryExceptionCopyright © 2008–2015 Tigase. All rights reserved.