Package org.openiam.am.srvc.dto.jdbc
Class AbstractAuthorizationEntity
- java.lang.Object
-
- org.openiam.am.srvc.dto.jdbc.AbstractAuthorizationEntity
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthorizationGroup
,AuthorizationOrganization
,AuthorizationResource
,AuthorizationRole
,AuthorizationUser
public abstract class AbstractAuthorizationEntity extends Object implements Serializable
- Author:
- Lev Bornovalov This class serves two purposes: 1) Each Cached Entity should correspond to 1 unique bit 2) All Entities have a String ID. Using a bitSet as the hashCode key eliminates this possibility (since the bit is unique for each entity instance)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractAuthorizationEntity(AbstractAuthorizationEntity entity)
protected
AbstractAuthorizationEntity(KeyEntity entity)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
abstract VertexType
getVertexType()
int
hashCode()
There are places in the code where we put parents of this class in Sets and Maps.protected void
makeCopy(AbstractAuthorizationEntity entity)
abstract AbstractAuthorizationEntity
shallowCopy()
-
-
-
Constructor Detail
-
AbstractAuthorizationEntity
protected AbstractAuthorizationEntity(KeyEntity entity)
-
AbstractAuthorizationEntity
public AbstractAuthorizationEntity(AbstractAuthorizationEntity entity)
-
-
Method Detail
-
makeCopy
protected void makeCopy(AbstractAuthorizationEntity entity)
-
hashCode
public int hashCode()
There are places in the code where we put parents of this class in Sets and Maps. We rely on the HashCode and Equals methods using only the ID property to determine equality Since this class represents an existing entity, the ID will never be null, and hence, this approach is OK
-
shallowCopy
public abstract AbstractAuthorizationEntity shallowCopy()
-
getVertexType
public abstract VertexType getVertexType()
-
-