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
  • Field Details

    • log

      protected static final Logger log
  • Constructor Details

    • PubSubDAO

      protected PubSubDAO()
  • Method Details

    • calculateOffsetAndPosition

      protected static void calculateOffsetAndPosition(tigase.xmpp.rsm.RSM rsm, int count, Integer before, Integer after)
    • destroy

      public void destroy()
      Specified by:
      destroy in interface IPubSubDAO<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 interface IPubSubDAO<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 interface IPubSubDAO<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

      protected tigase.xml.Element itemDataToElement(String data)
    • itemDataToElement

      protected tigase.xml.Element itemDataToElement(char[] data)
    • parseConfigForm

      protected tigase.form.Form parseConfigForm(String cnfData)