Interface Scoped

All Known Implementing Classes:
BaseIdentity, Company, Identity

public interface Scoped
Interface that define an instance whose belongs to a company and is related to a specific user.
  • Field Details

  • Method Details

    • bind

      static void bind(Scoped scoped)
      Bind the identity to the context identity
      Parameters:
      scoped - the identity to bind
    • current

      static Scoped current()
      Returns the current context identity
      Returns:
      The current context identity
    • unbind

      static void unbind()
      Unbind the identity from the context identity
    • with

      default void with(Runnable r)
    • with

      default <T> T with(Supplier<T> r)
    • getCompany

      Company getCompany()
    • getUser

      Long getUser()
    • getUsername

      String getUsername()
    • getBranch

      Long getBranch()
    • getBranchDescription

      String getBranchDescription()
    • getDBFieldMap

      DBFieldMap getDBFieldMap()
    • getDBClientIdentifier

      String getDBClientIdentifier()
    • getFunctions

      Set<String> getFunctions()