Class QueueCache

java.lang.Object
org.bgerp.cache.Cache<QueueCache>
org.bgerp.plugin.inventoru.cache.QueueCache

public class QueueCache extends Cache<QueueCache>
  • Constructor Details

    • QueueCache

      public QueueCache()
  • Method Details

    • getQueue

      public static Queue getQueue(int id)
    • getUserQueue

      public static Queue getUserQueue(User user, int id, QueueEntity entity)
      The queue of this id given to this user, null when it is not theirs — the screens ask this one. Asking by id alone served any queue of the right entity to anyone who could open the screen, hand-out lists and pinned filters included; the kernel's process queues are read the same way, by id and user together.
    • getAll

      public static List<Queue> getAll()
    • getUserQueues

      public static List<Queue> getUserQueues(User user, QueueEntity entity)
      Queues of one entity given to the user — personally or through one of their groups, the same union the kernel applies to process queues. A queue given to nobody is shown to nobody: there is no "everyone" shortcut here, as there is none in the kernel.
    • flush

      public static void flush(Connection con)
    • newInstance

      protected QueueCache newInstance()
      Description copied from class: Cache
      Creates a new cache instance
      Specified by:
      newInstance in class Cache<QueueCache>
      Returns:
      the instance