Interface TagsRepository<DS extends tigase.db.DataSource>

All Superinterfaces:
tigase.db.DataSourceAware<DS>
All Known Implementing Classes:
TagsRepositoryJDBC, TagsRepositoryPool

public interface TagsRepository<DS extends tigase.db.DataSource> extends tigase.db.DataSourceAware<DS>
  • Method Details

    • getTag

      Tag getTag(String domain, String tagId) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • createTag

      String createTag(String domain, TagScope scope, tigase.xmpp.jid.BareJID owner, String name, String description, String color, String icon) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • updateTag

      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
      Throws:
      tigase.component.exceptions.RepositoryException
    • deleteTag

      void deleteTag(String domain, String tagId) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • assignTag

      void assignTag(String domain, String tagId, EntityType type, tigase.xmpp.jid.BareJID jid, boolean required) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • dissociateTag

      void dissociateTag(String domain, String tagId, tigase.xmpp.jid.BareJID jid) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • getTagAssociationType

      EntityType getTagAssociationType(String domain, String tagId, tigase.xmpp.jid.BareJID jid) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • queryTags

      Stream<Tag> queryTags(String domain, TagScope scope, tigase.xmpp.jid.BareJID requestor) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • queryAssociatedTags

      Stream<Tag> queryAssociatedTags(String domain, tigase.xmpp.jid.BareJID jid, tigase.xmpp.jid.BareJID requestor) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • queryJidsWithTag

      Stream<tigase.xmpp.jid.BareJID> queryJidsWithTag(String domain, String tagId, EntityType type, Boolean required) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException