|
|||||||||
| Home >> All >> org >> acegisecurity >> acl >> [ basic overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.acegisecurity.acl.basic
Class NamedEntityObjectIdentity

java.lang.Objectorg.acegisecurity.acl.basic.NamedEntityObjectIdentity
- All Implemented Interfaces:
- AclObjectIdentity, java.io.Serializable
- public class NamedEntityObjectIdentity
- extends java.lang.Object
- implements AclObjectIdentity
- extends java.lang.Object
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.
| Field Summary | |
private java.lang.String |
classname
|
private java.lang.String |
id
|
| Constructor Summary | |
protected |
NamedEntityObjectIdentity()
|
|
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()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
classname
private java.lang.String classname
id
private java.lang.String id
| Constructor Detail |
NamedEntityObjectIdentity
public NamedEntityObjectIdentity(java.lang.String classname, java.lang.String id)
NamedEntityObjectIdentity
protected NamedEntityObjectIdentity()
NamedEntityObjectIdentity
public NamedEntityObjectIdentity(java.lang.Object object) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Creates the
NamedEntityObjectIdentitybased on the passed object instance. The passed object must provide agetId()method, otherwise an exception will be thrown.
| Method Detail |
equals
public boolean equals(java.lang.Object arg0)
- Important so caching operates properly.
Considers an object of the same class equal if it has the same
classnameandidproperties.- Specified by:
equalsin interfaceAclObjectIdentity
getClassname
public java.lang.String getClassname()
- Indicates the classname portion of the object identity.
getId
public java.lang.String getId()
- Indicates the instance identity portion of the object identity.
hashCode
public int hashCode()
- Important so caching operates properly.
- Specified by:
hashCodein interfaceAclObjectIdentity
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> org >> acegisecurity >> acl >> [ basic overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.acegisecurity.acl.basic.NamedEntityObjectIdentity