Package 

Class PermissibleExtensionsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean hasPermission(Permissible $self, Permission permission) Gets the value of the specified permission, if set.
      final static Boolean isPermissionSet(Permissible $self, Permission permission) Checks if this object contains an override for the specified Permission.
      final static TriState permissionValue(Permissible $self, Permission permission) Checks if this object has a permission set and, if it is set, the value of the permission.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • hasPermission

         final static Boolean hasPermission(Permissible $self, Permission permission)

        Gets the value of the specified permission, if set.

        If a permission override is not set on this object, the default value of the permission will be returned.

      • isPermissionSet

         final static Boolean isPermissionSet(Permissible $self, Permission permission)

        Checks if this object contains an override for the specified Permission.

      • permissionValue

         final static TriState permissionValue(Permissible $self, Permission permission)

        Checks if this object has a permission set and, if it is set, the value of the permission.