Class HibernateObjectIdentityImpl
java.lang.Object
com.atlassian.bamboo.security.acegi.acls.HibernateObjectIdentityImpl
- All Implemented Interfaces:
Serializable,org.acegisecurity.acls.objectidentity.ObjectIdentity
public class HibernateObjectIdentityImpl
extends Object
implements org.acegisecurity.acls.objectidentity.ObjectIdentity
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOrder is important in case multiple permission checked at once. -
Constructor Summary
ConstructorsConstructorDescriptionHibernateObjectIdentityImpl(@NotNull BambooIdProvider object) Creates theObjectIdentityImplbased on the passed object instance.HibernateObjectIdentityImpl(@NotNull Class<?> javaType, @NotNull Serializable identifier) HibernateObjectIdentityImpl(@NotNull Class<?> javaType, @NotNull Serializable identifier, @Nullable HibernateObjectIdentityImpl ancestorIdentity) HibernateObjectIdentityImpl(@NotNull Object object) Creates theObjectIdentityImplbased on the passed object instance.HibernateObjectIdentityImpl(String javaType, @NotNull Serializable identifier) -
Method Summary
Modifier and TypeMethodDescriptionbooleanImportant so caching operates properly.@Nullable HibernateObjectIdentityImplgetAncestorPermissionCheckPolicy(@NotNull org.acegisecurity.acls.Permission permission) getHighestRankPermissionCheckPolicy(@NotNull Stream<org.acegisecurity.acls.Permission> permissions) getHighestRankPermissionCheckPolicy(@Nullable org.acegisecurity.acls.Permission[] permissions) Class<?>inthashCode()Important so caching operates properly.toString()
-
Constructor Details
-
HibernateObjectIdentityImpl
-
HibernateObjectIdentityImpl
public HibernateObjectIdentityImpl(@NotNull @NotNull Class<?> javaType, @NotNull @NotNull Serializable identifier) -
HibernateObjectIdentityImpl
public HibernateObjectIdentityImpl(@NotNull @NotNull Class<?> javaType, @NotNull @NotNull Serializable identifier, @Nullable @Nullable HibernateObjectIdentityImpl ancestorIdentity) -
HibernateObjectIdentityImpl
public HibernateObjectIdentityImpl(@NotNull @NotNull Object object) throws org.acegisecurity.acls.IdentityUnavailableException Creates theObjectIdentityImplbased on the passed object instance. The passed object must provide agetId()method, otherwise an exception will be thrown. The object passed will be considered thejavaType, so if more control is required, an alternate constructor should be used instead.- Parameters:
object- the domain object instance to create an identity for- Throws:
org.acegisecurity.acls.IdentityUnavailableException- if identity could not be extracted
-
HibernateObjectIdentityImpl
Creates theObjectIdentityImplbased on the passed object instance. The object passed will be considered thejavaType, so if more control is required, an alternate constructor should be used instead.- Parameters:
object- the domain object instance to create an identity for
-
HibernateObjectIdentityImpl
-
-
Method Details
-
equals
Important so caching operates properly.Considers an object of the same class equal if it has the same
classnameandidproperties. -
hashCode
public int hashCode()Important so caching operates properly. -
getIdentifier
- Specified by:
getIdentifierin interfaceorg.acegisecurity.acls.objectidentity.ObjectIdentity
-
getJavaType
- Specified by:
getJavaTypein interfaceorg.acegisecurity.acls.objectidentity.ObjectIdentity
-
getAncestorIdentity
-
getAncestorPermissionCheckPolicy
public HibernateObjectIdentityImpl.AncestorPermissionCheckPolicy getAncestorPermissionCheckPolicy(@NotNull @NotNull org.acegisecurity.acls.Permission permission) -
getHighestRankPermissionCheckPolicy
public HibernateObjectIdentityImpl.AncestorPermissionCheckPolicy getHighestRankPermissionCheckPolicy(@Nullable @Nullable org.acegisecurity.acls.Permission[] permissions) -
getHighestRankPermissionCheckPolicy
public HibernateObjectIdentityImpl.AncestorPermissionCheckPolicy getHighestRankPermissionCheckPolicy(@NotNull @NotNull Stream<org.acegisecurity.acls.Permission> permissions) -
toString
-