Package tigase.pubsub.repository
Class PubSubDAO<T,S extends tigase.db.DataSource,Q extends PubSubQuery>
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 PubSubQuery>
extends Object
implements IPubSubDAO<T,S,Q>
- Author:
- andrzej
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
calculateOffsetAndPosition
(tigase.xmpp.rsm.RSM rsm, int count, Integer before, Integer after) void
destroy()
protected <T extends AbstractNodeConfig>
TgetNodeConfig
(Class<T> nodeConfigClass, String nodeName, tigase.form.Form configForm) 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
(String data) parseConfig
(String nodeName, String data) protected tigase.form.Form
parseConfigForm
(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.db.DataSourceAware
setDataSource
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, newQuery, newQuery, queryItems, removeNodeSubscription, updateNodeAffiliation, updateNodeConfig, updateNodeSubscription, writeItem
-
Field Details
-
log
-
-
Constructor Details
-
PubSubDAO
protected PubSubDAO()
-
-
Method Details
-
calculateOffsetAndPosition
-
destroy
public void destroy()- Specified by:
destroy
in interfaceIPubSubDAO<T,
S extends tigase.db.DataSource, Q extends PubSubQuery>
-
getUserRoster
public 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 PubSubQuery> - Throws:
tigase.component.exceptions.RepositoryException
-
parseConfig
public AbstractNodeConfig parseConfig(String nodeName, String data) throws tigase.component.exceptions.RepositoryException - Specified by:
parseConfig
in interfaceIPubSubDAO<T,
S extends tigase.db.DataSource, Q extends PubSubQuery> - Throws:
tigase.component.exceptions.RepositoryException
-
getNodeConfig
protected <T extends AbstractNodeConfig> T getNodeConfig(Class<T> nodeConfigClass, String nodeName, tigase.form.Form configForm) throws tigase.component.exceptions.RepositoryException - Throws:
tigase.component.exceptions.RepositoryException
-
itemDataToElement
-
itemDataToElement
protected tigase.xml.Element itemDataToElement(char[] data) -
parseConfigForm
-