Class Permission

    • Constructor Detail

      • Permission

        public Permission​(Database database)
      • Permission

        public Permission​(Database database,
                          Entity entity,
                          User grantingUser,
                          java.lang.String node,
                          boolean allow)
    • Method Detail

      • getPermissionId

        public int getPermissionId()
      • setGrant

        public void setGrant​(Grant grant)
      • getDate

        public java.util.Date getDate()
        Description copied from interface: GrantedPermission
        Gets the date this permission was granted.
        Specified by:
        getDate in interface GrantedPermission
        Returns:
        Date instance.
      • remove

        public void remove()
                    throws java.lang.SecurityException
        Description copied from interface: GrantedPermission
        Removes this granted permission
        Specified by:
        remove in interface GrantedPermission
        Throws:
        java.lang.SecurityException - ifa security violation is detected attempting to remove this permission.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object