Interface PermissionContract

All Superinterfaces:
GloballyUnique, Identifiable, Inactivatable, Versioned
All Known Implementing Classes:
Permission, Permission.Builder

public interface PermissionContract extends Versioned, GloballyUnique, Inactivatable, Identifiable
This is the contract for a Permission. Represents a single permission within the system. Permissions are attached to roles. All authorization checks should be done against permissions, never against roles or groups.
  • Method Details

    • getNamespaceCode

      String getNamespaceCode()
      The namespace code that this Permission belongs too.
      Returns:
      namespaceCode
    • getName

      String getName()
      The name of the Permission.
      Returns:
      name
    • getDescription

      String getDescription()
      The description of the Permission.
      Returns:
      description
    • getTemplate

      TemplateContract getTemplate()
      The Template referenced by the Permission.
      Returns:
      templateId
    • getAttributes

      Map<String,String> getAttributes()
      Attributes for a Permission.
      Returns:
      attributes