Package tigase.workgroupqueues.data

# Interface Store

All Superinterfaces:
  `DataSourceAware<DataRepository>`, `Repository`

All Known Implementing Classes:
  `JDBCWorkgroupQueuesRepository`, `MemoryStore`, `RepoPool`

public interface Store extends Repository, DataSourceAware<DataRepository>
Interface for queue storage.

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from interface tigase.db.Repository

  `Repository.Meta, Repository.SchemaId`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addWorkgroupQueue(WorkgroupQueueEntity queue)`
  Add queue entity to storage.
  `void`
  `deleteWorkgroupQueue(BareJID queueJid)`
  `WorkgroupQueueEntity`
  `getWorkgroupQueue(BareJID queueJID)`
  Loads queue entity from storage.
  `Collection<WorkgroupQueueEntity>`
  `getWorkgroupQueues()`
  Returns collection of known queues.

  ### Methods inherited from interface tigase.db.DataSourceAware

  `setDataSource`

  ### Methods inherited from interface tigase.db.Repository

  `initRepository`

- ## Method Details

  - ### addWorkgroupQueue

    void addWorkgroupQueue(WorkgroupQueueEntity queue)
    Add queue entity to storage.
    Parameters:
      `queue` - queue to add.

  - ### deleteWorkgroupQueue

    void deleteWorkgroupQueue(BareJID queueJid)

  - ### getWorkgroupQueue

    WorkgroupQueueEntity getWorkgroupQueue(BareJID queueJID)
    Loads queue entity from storage.
    Parameters:
      `queueJID` - JID of queue.
    Returns:
      queue instance of `null` if queue doesn't exists.

  - ### getWorkgroupQueues

    Collection<WorkgroupQueueEntity> getWorkgroupQueues()
    Returns collection of known queues.
    Returns:
      collection of queues.