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 voidcalculateOffsetAndPosition(tigase.xmpp.rsm.RSM rsm, int count, Integer before, Integer after) voiddestroy()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.ElementitemDataToElement(char[] data) protected tigase.xml.ElementitemDataToElement(String data) parseConfig(String nodeName, String data) protected tigase.form.FormparseConfigForm(String cnfData) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.db.DataSourceAware
setDataSourceMethods inherited from interface tigase.pubsub.repository.IPubSubDAO
addMAMItem, 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:
destroyin 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:
getUserRosterin 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:
parseConfigin 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
-