Package tigase.pubsub.repository
Class PubSubDAO<T,S extends tigase.db.DataSource,Q extends Query>
- java.lang.Object
-
- tigase.pubsub.repository.PubSubDAO<T,S,Q>
-
- All Implemented Interfaces:
tigase.db.DataSourceAware<S>
,IPubSubDAO<T,S,Q>
- Direct Known Subclasses:
PubSubDAOJDBC
public abstract class PubSubDAO<T,S extends tigase.db.DataSource,Q extends Query> extends java.lang.Object implements IPubSubDAO<T,S,Q>
- Author:
- andrzej
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PubSubDAO.MAMItem
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.logging.Logger
log
-
Constructor Summary
Constructors Modifier Constructor Description protected
PubSubDAO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
calculateOffsetAndPosition(tigase.xmpp.rsm.RSM rsm, int count, java.lang.Integer before, java.lang.Integer after)
void
destroy()
protected <T extends AbstractNodeConfig>
TgetNodeConfig(java.lang.Class<T> nodeConfigClass, java.lang.String nodeName, tigase.form.Form configForm)
java.util.Map<tigase.xmpp.jid.BareJID,tigase.xmpp.impl.roster.RosterElement>
getUserRoster(tigase.xmpp.jid.BareJID owner)
protected tigase.xml.Element
itemDataToElement(char[] data)
protected tigase.xml.Element
itemDataToElement(java.lang.String data)
AbstractNodeConfig
parseConfig(java.lang.String nodeName, java.lang.String data)
protected tigase.form.Form
parseConfigForm(java.lang.String cnfData)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tigase.pubsub.repository.IPubSubDAO
addMAMItem, createNode, createService, deleteItem, deleteNode, deleteService, getAllNodesList, getChildNodes, getItem, getItems, getItemsIds, getItemsIdsSince, getItemsMeta, getNodeAffiliations, getNodeMeta, getNodesCount, getNodesList, getNodeSubscriptions, getServices, getUserAffiliations, getUserSubscriptions, queryItems, removeNodeSubscription, updateNodeAffiliation, updateNodeConfig, updateNodeSubscription, writeItem
-
-
-
-
Method Detail
-
calculateOffsetAndPosition
protected static void calculateOffsetAndPosition(tigase.xmpp.rsm.RSM rsm, int count, java.lang.Integer before, java.lang.Integer after)
-
destroy
public void destroy()
-
getUserRoster
public java.util.Map<tigase.xmpp.jid.BareJID,tigase.xmpp.impl.roster.RosterElement> getUserRoster(tigase.xmpp.jid.BareJID owner) throws tigase.component.exceptions.RepositoryException
- Specified by:
getUserRoster
in interfaceIPubSubDAO<T,S extends tigase.db.DataSource,Q extends Query>
- Throws:
tigase.component.exceptions.RepositoryException
-
parseConfig
public AbstractNodeConfig parseConfig(java.lang.String nodeName, java.lang.String data) throws tigase.component.exceptions.RepositoryException
- Specified by:
parseConfig
in interfaceIPubSubDAO<T,S extends tigase.db.DataSource,Q extends Query>
- Throws:
tigase.component.exceptions.RepositoryException
-
getNodeConfig
protected <T extends AbstractNodeConfig> T getNodeConfig(java.lang.Class<T> nodeConfigClass, java.lang.String nodeName, tigase.form.Form configForm) throws tigase.component.exceptions.RepositoryException
- Throws:
tigase.component.exceptions.RepositoryException
-
itemDataToElement
protected tigase.xml.Element itemDataToElement(java.lang.String data)
-
itemDataToElement
protected tigase.xml.Element itemDataToElement(char[] data)
-
parseConfigForm
protected tigase.form.Form parseConfigForm(java.lang.String cnfData)
-
-