public class NamedEntityObjectIdentity extends java.lang.Object implements AclObjectIdentity
AclObjectIdentity
.Uses String
s 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(java.lang.Object object)
Deprecated.
Creates the
NamedEntityObjectIdentity based on the passed
object instance. |
NamedEntityObjectIdentity(java.lang.String classname,
java.lang.String id)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object arg0)
Deprecated.
Important so caching operates properly.
|
java.lang.String |
getClassname()
Deprecated.
Indicates the classname portion of the object identity.
|
java.lang.String |
getId()
Deprecated.
Indicates the instance identity portion of the object identity.
|
int |
hashCode()
Deprecated.
Important so caching operates properly.
|
java.lang.String |
toString()
Deprecated.
|
public NamedEntityObjectIdentity(java.lang.String classname, java.lang.String id)
public NamedEntityObjectIdentity(java.lang.Object object) throws java.lang.IllegalAccessException, java.lang.reflect.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 forjava.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.IllegalArgumentException
public boolean equals(java.lang.Object arg0)
Considers an object of the same class equal if it has the same
classname
and id
properties.
equals
in interface AclObjectIdentity
equals
in class java.lang.Object
arg0
- object to comparetrue
if the presented object matches this objectpublic java.lang.String getClassname()
null
)public java.lang.String getId()
null
)public int hashCode()
hashCode
in interface AclObjectIdentity
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object