public class HibernateObjectIdentityImpl extends Object implements org.acegisecurity.acls.objectidentity.ObjectIdentity
Modifier and Type | Class and Description |
---|---|
static class |
HibernateObjectIdentityImpl.AncestorPermissionCheckPolicy
Order is important in case multiple permission checked at once.
|
Constructor and Description |
---|
HibernateObjectIdentityImpl(Class javaType,
Serializable identifier) |
HibernateObjectIdentityImpl(Class javaType,
Serializable identifier,
HibernateObjectIdentityImpl ancestorIdentity) |
HibernateObjectIdentityImpl(Object object)
Creates the
ObjectIdentityImpl based on the passed object instance. |
HibernateObjectIdentityImpl(String javaType,
Serializable identifier) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object arg0)
Important so caching operates properly.
|
HibernateObjectIdentityImpl |
getAncestorIdentity() |
HibernateObjectIdentityImpl.AncestorPermissionCheckPolicy |
getAncestorPermissionCheckPolicy(org.acegisecurity.acls.Permission permission) |
HibernateObjectIdentityImpl.AncestorPermissionCheckPolicy |
getHighestRankPermissionCheckPolicy(Iterable<org.acegisecurity.acls.Permission> permissions) |
HibernateObjectIdentityImpl.AncestorPermissionCheckPolicy |
getHighestRankPermissionCheckPolicy(org.acegisecurity.acls.Permission[] permissions) |
Serializable |
getIdentifier() |
Class |
getJavaType() |
int |
hashCode()
Important so caching operates properly.
|
String |
toString() |
public HibernateObjectIdentityImpl(String javaType, @NotNull Serializable identifier)
public HibernateObjectIdentityImpl(@NotNull Class javaType, @NotNull Serializable identifier)
public HibernateObjectIdentityImpl(@NotNull Class javaType, @NotNull Serializable identifier, @Nullable HibernateObjectIdentityImpl ancestorIdentity)
public HibernateObjectIdentityImpl(@NotNull Object object) throws org.acegisecurity.acls.IdentityUnavailableException
ObjectIdentityImpl
based on the passed object instance. The passed object must provide a
getId()
method, otherwise an exception will be thrown. The object passed will be considered the
javaType
, so if more control is required, an alternate constructor should be used instead.object
- the domain object instance to create an identity fororg.acegisecurity.acls.IdentityUnavailableException
- if identity could not be extractedpublic boolean equals(Object arg0)
Considers an object of the same class equal if it has the same
classname
and id
properties.
public int hashCode()
public Serializable getIdentifier()
getIdentifier
in interface org.acegisecurity.acls.objectidentity.ObjectIdentity
public Class getJavaType()
getJavaType
in interface org.acegisecurity.acls.objectidentity.ObjectIdentity
@Nullable public HibernateObjectIdentityImpl getAncestorIdentity()
public HibernateObjectIdentityImpl.AncestorPermissionCheckPolicy getAncestorPermissionCheckPolicy(@NotNull org.acegisecurity.acls.Permission permission)
public HibernateObjectIdentityImpl.AncestorPermissionCheckPolicy getHighestRankPermissionCheckPolicy(@Nullable org.acegisecurity.acls.Permission[] permissions)
public HibernateObjectIdentityImpl.AncestorPermissionCheckPolicy getHighestRankPermissionCheckPolicy(@NotNull Iterable<org.acegisecurity.acls.Permission> permissions)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.