Class Entity

    • Method Detail

      • getEntityId

        public int getEntityId()
      • getName

        public java.lang.String getName()
        Description copied from interface: Entity
        Gets this entity's name.
        Specified by:
        getName in interface Entity
        Returns:
        entity name.
      • getProperties

        public java.util.Collection<Property> getProperties()
        Description copied from interface: Entity
        Gets a collection of this entity's properties.
        Specified by:
        getProperties in interface Entity
        Returns:
        entity properties.
      • getProperty

        public Property getProperty​(java.lang.String node)
        Description copied from interface: Entity
        Gets a specific property by its identifier,
        Specified by:
        getProperty in interface Entity
        Parameters:
        node - entity property identifier.
        Returns:
        Property instance if a property exists by that ID, and a null-valued Property otherwise.
      • getPermission

        public Permission getPermission​(java.lang.String node)
        Description copied from interface: Entity
        Gets a specific pre-existing grant for this entity.
        Specified by:
        getPermission in interface Entity
        Parameters:
        node - permission node to check for.
        Returns:
        ALLOW or DENY, null if no permission grant is explicitly defined.
      • setPermission

        public GrantedPermission setPermission​(java.lang.String node,
                                               Grant grant)
                                        throws java.lang.SecurityException
        Description copied from interface: Entity
        Grants a specific permission to this entity.
        Specified by:
        setPermission in interface Entity
        Parameters:
        node - permission node to grant.
        grant - type of grant to supply.
        Throws:
        java.lang.SecurityException
      • removePermission

        public void removePermission​(java.lang.String s)
        Description copied from interface: Entity
        Removes a specific permission from this entity.
        Specified by:
        removePermission in interface Entity
        Parameters:
        s - permission node to grant.
      • getPermissions

        public java.util.Collection<GrantedPermission> getPermissions()
        Description copied from interface: Entity
        Gets the explicitly granted permissions for this entity.
        Specified by:
        getPermissions in interface Entity
        Returns:
        permission grants.
      • hashCode

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