|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acegisecurity.acl.basic.NamedEntityObjectIdentity
public class NamedEntityObjectIdentity
Simple implementation of 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 Summary | |
|---|---|
NamedEntityObjectIdentity(java.lang.Object object)
Creates the NamedEntityObjectIdentity based on the passed
object instance. |
|
NamedEntityObjectIdentity(java.lang.String classname,
java.lang.String id)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object arg0)
Important so caching operates properly. |
java.lang.String |
getClassname()
Indicates the classname portion of the object identity. |
java.lang.String |
getId()
Indicates the instance identity portion of the object identity. |
int |
hashCode()
Important so caching operates properly. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 for
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.IllegalArgumentException| Method Detail |
|---|
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 AclObjectIdentityequals in class java.lang.Objectarg0 - object to compare
true if the presented object matches this objectpublic java.lang.String getClassname()
null)public java.lang.String getId()
null)public int hashCode()
hashCode in interface AclObjectIdentityhashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||