Interface GrantedPermission

  • All Known Implementing Classes:
    Permission

    public interface GrantedPermission
    • Method Summary

      Modifier and Type Method Description
      java.util.Date getDate()
      Gets the date this permission was granted.
      Entity getEntity()
      Gets the entity that this granted permission is associated with.
      Grant getGrant()
      Gets the grant that is explicitly defined by this permission.
      User getGranter()
      Gets the user that granted this permission.
      Permission getPermission()
      Gets the permission node that this granted permission refers to.
      void remove()
      Removes this granted permission
    • Method Detail

      • getEntity

        Entity getEntity()
        Gets the entity that this granted permission is associated with.
        Returns:
        Entity instance.
      • getPermission

        Permission getPermission()
        Gets the permission node that this granted permission refers to.
        Returns:
      • getGrant

        Grant getGrant()
        Gets the grant that is explicitly defined by this permission.
        Returns:
        Grant instance.
      • getGranter

        User getGranter()
        Gets the user that granted this permission.
        Returns:
        User instance.
      • getDate

        java.util.Date getDate()
        Gets the date this permission was granted.
        Returns:
        Date instance.
      • remove

        void remove()
             throws java.lang.SecurityException
        Removes this granted permission
        Throws:
        java.lang.SecurityException - ifa security violation is detected attempting to remove this permission.