|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.EntityDescriptor
public class EntityDescriptor
An object that describes a specific entity. An entity is an object of the system, such as a user, group, document, blog, thread, etc.
This class simply holds information about the entity which includes its ID and type. The type of an entity is an int constant from theJiveConstants class.
Note, there is no reference to the actual object this entity describes. This merely holds the
most basic information about the object. Given the ID and type the actual object can be loaded
from the system (typically from a Manager or Factory class).
| Field Summary | |
|---|---|
protected long |
objectID
|
protected int |
objectType
|
| Constructor Summary | |
|---|---|
EntityDescriptor()
No args constructor for serialization |
|
EntityDescriptor(int objectType,
long objectID)
Creates a new descripter given an ID and type. |
|
EntityDescriptor(JiveObject bean)
Creates an EntityDescriptor instance from an existing JiveObject. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
getCachedSize()
|
long |
getID()
Returns the ID of this entity (object). |
int |
getObjectType()
Returns the type of object this is. |
int |
getType()
Deprecated. getObjectType() should used instead, since it is defined in JiveObject. |
int |
hashCode()
|
boolean |
isValid()
Returns true if this entity descriptor references a valid object. |
void |
readExternal(DataInput dataInput)
|
String |
toString()
|
void |
writeExternal(DataOutput dataOutput)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected long objectID
protected int objectType
| Constructor Detail |
|---|
public EntityDescriptor()
public EntityDescriptor(int objectType,
long objectID)
objectType - the type of entity (or object) this is. This will be a constant from the
JiveConstants class.objectID - the ID of the entity (or object).public EntityDescriptor(JiveObject bean)
EntityDescriptor instance from an existing JiveObject.
bean - The JiveObject to create an EntityDescriptor for.| Method Detail |
|---|
public long getID()
getID in interface JiveObject@Deprecated public int getType()
getObjectType() should used instead, since it is defined in JiveObject.
JiveConstants class.
JiveConstants.public int getObjectType()
JiveConstants class.
getObjectType in interface JiveObjectpublic boolean isValid()
public int getCachedSize()
getCachedSize in interface com.jivesoftware.community.cache.Cacheable
public void readExternal(DataInput dataInput)
throws IOException
readExternal in interface com.tangosol.io.ExternalizableLiteIOException
public void writeExternal(DataOutput dataOutput)
throws IOException
writeExternal in interface com.tangosol.io.ExternalizableLiteIOExceptionpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||