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