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 Grant
s are assigned to a
Role
and on or more User
s are assigned to each Role
s. A Grant is security aware, that means it is
an concrete SecurityObject
.
Permissions to UI actions are managed with Grant
s.
- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID
-
Constructor Summary
-
Method Summary
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
-
Constructor Details
-
Grant
protected Grant()Dear JPA... -
Grant
Create a new Grant.- Parameters:
name
- The name of theGrant
description
- 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 betweenGrant
s and otherSecurityObject
s likeRole
s.- Overrides:
hashCode
in classSecurityObject
- See Also:
-
equals
Compare the name.- Overrides:
equals
in classSecurityObject
- See Also:
-