Class PubSubDAO<T,​S extends tigase.db.DataSource,​Q extends Query>

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

      • log

        protected static final java.util.logging.Logger log
    • Constructor Detail

      • PubSubDAO

        protected PubSubDAO()
    • 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()
        Specified by:
        destroy in interface IPubSubDAO<T,​S extends tigase.db.DataSource,​Q extends Query>
      • 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 interface IPubSubDAO<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 interface IPubSubDAO<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)