Class TagsRepositoryPool<R extends TagsRepository<tigase.db.DataSource>>

java.lang.Object
tigase.db.beans.MDRepositoryBean<T>
tigase.db.beans.MDRepositoryBeanWithStatistics<R>
tigase.extensions.tags.db.TagsRepositoryPool<R>
All Implemented Interfaces:
tigase.db.DataSourceAware<tigase.db.DataSource>, TagsRepository<tigase.db.DataSource>, tigase.kernel.beans.Initializable, tigase.kernel.beans.RegistrarBean, tigase.kernel.beans.RegistrarBeanWithDefaultBeanClass, tigase.kernel.beans.UnregisterAware, tigase.stats.ComponentStatisticsProvider, tigase.stats.StatisticsProviderIfc

@Bean(name="repository", parent=TagsComponent.class, active=true) public class TagsRepositoryPool<R extends TagsRepository<tigase.db.DataSource>> extends tigase.db.beans.MDRepositoryBeanWithStatistics<R> implements TagsRepository<tigase.db.DataSource>
  • Constructor Details

    • TagsRepositoryPool

      public TagsRepositoryPool()
  • Method Details

    • getDefaultBeanClass

      public Class<?> getDefaultBeanClass()
      Specified by:
      getDefaultBeanClass in interface tigase.kernel.beans.RegistrarBeanWithDefaultBeanClass
    • getTag

      public Tag getTag(String domain, String tagId) throws tigase.component.exceptions.RepositoryException
      Specified by:
      getTag in interface TagsRepository<R extends TagsRepository<tigase.db.DataSource>>
      Throws:
      tigase.component.exceptions.RepositoryException
    • createTag

      public String createTag(String domain, TagScope scope, tigase.xmpp.jid.BareJID owner, String name, String description, String color, String icon) throws tigase.component.exceptions.RepositoryException
      Specified by:
      createTag in interface TagsRepository<R extends TagsRepository<tigase.db.DataSource>>
      Throws:
      tigase.component.exceptions.RepositoryException
    • updateTag

      public void updateTag(String domain, String tagId, TagScope scope, tigase.xmpp.jid.BareJID owner, String name, String description, String color, String icon) throws tigase.component.exceptions.RepositoryException
      Specified by:
      updateTag in interface TagsRepository<R extends TagsRepository<tigase.db.DataSource>>
      Throws:
      tigase.component.exceptions.RepositoryException
    • deleteTag

      public void deleteTag(String domain, String tagId) throws tigase.component.exceptions.RepositoryException
      Specified by:
      deleteTag in interface TagsRepository<R extends TagsRepository<tigase.db.DataSource>>
      Throws:
      tigase.component.exceptions.RepositoryException
    • assignTag

      public void assignTag(String domain, String tagId, EntityType type, tigase.xmpp.jid.BareJID jid, boolean required) throws tigase.component.exceptions.RepositoryException
      Specified by:
      assignTag in interface TagsRepository<R extends TagsRepository<tigase.db.DataSource>>
      Throws:
      tigase.component.exceptions.RepositoryException
    • dissociateTag

      public void dissociateTag(String domain, String tagId, tigase.xmpp.jid.BareJID jid) throws tigase.component.exceptions.RepositoryException
      Specified by:
      dissociateTag in interface TagsRepository<R extends TagsRepository<tigase.db.DataSource>>
      Throws:
      tigase.component.exceptions.RepositoryException
    • getTagAssociationType

      public EntityType getTagAssociationType(String domain, String tagId, tigase.xmpp.jid.BareJID jid) throws tigase.component.exceptions.RepositoryException
      Specified by:
      getTagAssociationType in interface TagsRepository<R extends TagsRepository<tigase.db.DataSource>>
      Throws:
      tigase.component.exceptions.RepositoryException
    • queryTags

      public Stream<Tag> queryTags(String domain, TagScope scope, tigase.xmpp.jid.BareJID requestor) throws tigase.component.exceptions.RepositoryException
      Specified by:
      queryTags in interface TagsRepository<R extends TagsRepository<tigase.db.DataSource>>
      Throws:
      tigase.component.exceptions.RepositoryException
    • queryAssociatedTags

      public Stream<Tag> queryAssociatedTags(String domain, tigase.xmpp.jid.BareJID jid, tigase.xmpp.jid.BareJID requestor) throws tigase.component.exceptions.RepositoryException
      Specified by:
      queryAssociatedTags in interface TagsRepository<R extends TagsRepository<tigase.db.DataSource>>
      Throws:
      tigase.component.exceptions.RepositoryException
    • queryJidsWithTag

      public Stream<tigase.xmpp.jid.BareJID> queryJidsWithTag(String domain, String tagId, EntityType type, Boolean required) throws tigase.component.exceptions.RepositoryException
      Specified by:
      queryJidsWithTag in interface TagsRepository<R extends TagsRepository<tigase.db.DataSource>>
      Throws:
      tigase.component.exceptions.RepositoryException
    • setDataSource

      public void setDataSource(tigase.db.DataSource dataSource) throws tigase.component.exceptions.RepositoryException
      Specified by:
      setDataSource in interface tigase.db.DataSourceAware<R extends TagsRepository<tigase.db.DataSource>>
      Throws:
      tigase.component.exceptions.RepositoryException
    • findClassForDataSource

      protected Class findClassForDataSource(tigase.db.DataSource dataSource) throws tigase.db.DBInitException
      Specified by:
      findClassForDataSource in class tigase.db.beans.MDRepositoryBean<R extends TagsRepository<tigase.db.DataSource>>
      Throws:
      tigase.db.DBInitException