Interface EntityType

    • Method Detail

      • getEntity

        Entity getEntity()
        Gets the entity associated with this object.
        Returns:
        Associated entity.
      • hasPermission

        default boolean hasPermission​(java.lang.String node)
        Finds if this entity has a specific permission node
        Parameters:
        node - permission node to check for.
        Returns:
        true if the permission node is granted, false otherwise.
      • hasPermission

        default boolean hasPermission​(Permission permission)
        Finds if this entity has a specific permission
        Parameters:
        permission - Permission to check for.
        Returns:
        true if the permission is granted, false otherwise.
      • hasPermission

        default boolean hasPermission​(java.lang.String node,
                                      Grant fallback)
        Finds if this entity has a specific permission
        Parameters:
        node - Permission node to check for.
        Returns:
        true if the permission is granted, false otherwise.
      • hasPermission

        default boolean hasPermission​(Permission permission,
                                      Grant fallback)
        Finds if this entity has a specific permission
        Parameters:
        permission - Permission to check for.
        Returns:
        true if the permission is granted, false otherwise.
      • checkPermission

        default void checkPermission​(Permission permission)
                              throws java.lang.SecurityException
        Throws:
        java.lang.SecurityException
      • checkPermission

        default void checkPermission​(java.lang.String node)
                              throws java.lang.SecurityException
        Throws:
        java.lang.SecurityException
      • checkPermission

        default void checkPermission​(Permission permission,
                                     Grant fallback)
                              throws java.lang.SecurityException
        Throws:
        java.lang.SecurityException
      • checkPermission

        default void checkPermission​(java.lang.String node,
                                     Grant fallback)
                              throws java.lang.SecurityException
        Throws:
        java.lang.SecurityException