public class NamedEntityObjectIdentity extends Object implements AclObjectIdentity
AclObjectIdentity.Uses Strings to store the identity of the
domain object instance. Also offers a constructor that uses reflection to build the identity information.
| Constructor and Description |
|---|
NamedEntityObjectIdentity(Object object)
Creates the
NamedEntityObjectIdentity based on the passed
object instance. |
NamedEntityObjectIdentity(String classname,
String id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object arg0)
Important so caching operates properly.
|
String |
getClassname()
Indicates the classname portion of the object identity.
|
String |
getId()
Indicates the instance identity portion of the object identity.
|
int |
hashCode()
Important so caching operates properly.
|
String |
toString() |
public NamedEntityObjectIdentity(Object object) throws IllegalAccessException, InvocationTargetException
NamedEntityObjectIdentity based on the passed
object instance. The passed object must provide a getId()
method, otherwise an exception will be thrown.object - the domain object instance to create an identity forIllegalAccessExceptionInvocationTargetExceptionIllegalArgumentExceptionpublic boolean equals(Object arg0)
Considers an object of the same class equal if it has the same
classname and id properties.
equals in interface AclObjectIdentityequals in class Objectarg0 - object to comparetrue if the presented object matches this objectpublic String getClassname()
null)public String getId()
null)public int hashCode()
hashCode in interface AclObjectIdentityhashCode in class ObjectCopyright © 2021. All rights reserved.