Class Grant

java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.core.uaa.impl.SecurityObject
org.openwms.core.uaa.impl.Grant
All Implemented Interfaces:
Serializable, org.ameba.integration.TypedEntity<Long>

@Entity public class Grant extends SecurityObject implements Serializable
A Grant gives permission to access some kind of application object. Grants to security aware application objects can be permitted or denied for a certain Role, depending on the security configuration. Usually Grants are assigned to a Role and on or more User s are assigned to each Roles. A Grant is security aware, that means it is an concrete SecurityObject.

Permissions to UI actions are managed with Grants.

Author:
Heiko Scherrer
See Also:
  • Field Summary

    Fields inherited from class org.ameba.integration.jpa.ApplicationEntity

    C_ID
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Dear JPA...
     
    Grant(String name)
    Create a new Grant.
     
    Grant(String name, String description)
    Create a new Grant.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compare the name.
    int
    Use the hashCode of the superclass with the hashCode of 'GRANT' to distinguish between Grants and other SecurityObjects like Roles.

    Methods inherited from class org.openwms.core.uaa.impl.SecurityObject

    getDescription, getName, setDescription, setName, setPersistentKey, toString

    Methods inherited from class org.ameba.integration.jpa.ApplicationEntity

    getPersistentKey, hasPersistentKey, onEntityPersist, onPersist

    Methods inherited from class org.ameba.integration.jpa.BaseEntity

    getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait