public final class ObjectIdentityUtils extends Object
ObjectIdentity
,
HibernateObjectIdentityImpl
Modifier and Type | Field and Description |
---|---|
static Map<Class<?>,Class<?>> |
ACL_OBJECT_IDENTITY_CLASSES
Mapping of Bamboo entity classes to ACL related classes.
|
Modifier and Type | Method and Description |
---|---|
static Optional<Class<?>> |
getAclClassForEntity(BambooIdProvider entity)
Returns a class to be used when defining
ObjectIdentity of any entity. |
static Optional<Class<?>> |
getAclClassForEntityClass(Class<?> entityClass)
Returns a class to be used when defining
ObjectIdentity of any entity. |
@NotNull public static Optional<Class<?>> getAclClassForEntity(@NotNull BambooIdProvider entity)
ObjectIdentity
of any entity. If the passed entity is of
unknown type, returns an empty Optional
.entity
- any Bamboo entity which may have ACL identity@NotNull public static Optional<Class<?>> getAclClassForEntityClass(@NotNull Class<?> entityClass)
ObjectIdentity
of any entity. If the passed class is
unknown, returns an empty Optional
.entityClass
- actual class of any Bamboo entity which may have ACL identityCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.