Package org.openwms.core.uaa.impl
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>
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 -
Method Summary
Methods inherited from class org.openwms.core.uaa.impl.SecurityObject
getDescription, getName, setDescription, setName, setPersistentKey, toStringMethods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersistMethods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl
-
Constructor Details
-
Grant
protected Grant()Dear JPA... -
Grant
Create a new Grant.- Parameters:
name- The name of theGrantdescription- The description text of theGrant
-
Grant
Create a new Grant.- Parameters:
name- The name of theGrant
-
-
Method Details
-
hashCode
public int hashCode()Use the hashCode of the superclass with the hashCode of 'GRANT' to distinguish betweenGrants and otherSecurityObjects likeRoles.- Overrides:
hashCodein classSecurityObject- See Also:
-
equals
Compare the name.- Overrides:
equalsin classSecurityObject- See Also:
-