Blue Mind
Release 1.0

net.bluemind.core.api
Class Entity

java.lang.Object
  extended by net.bluemind.core.api.Entity
All Implemented Interfaces:
java.io.Serializable, IEntity
Direct Known Subclasses:
AccessControlledEntity, CalendarGroup, Contact, Device, DirectoryEntry, DistributionList, DocumentId, Domain, Event, Group, Host, Mailshare, Member, Resource

public abstract class Entity
extends java.lang.Object
implements IEntity, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Entity()
           
 
Method Summary
 boolean equals(java.lang.Object arg0)
           
 java.util.Map<CustomProperty,java.lang.String> getCustomProperties()
          Returns the CustomProperty values for an entity.
 int getEntityId()
          Returns an installation unique identifier for a Blue Mind object.
 int getId()
          Returns an identifier that is unique among the entities of the same kind.
 java.util.Date getTimeCreate()
          Returns when the IEntity was created.
 java.util.Date getTimeUpdate()
          Returns when the IEntity was last modified, or null if never modified.
 int getUserCreateId()
          Returns the user id (as in getId()) that created the object.
 java.lang.Integer getUserUpdateId()
          Returns the user id (as in getId()) that last modified the object, or null if the object was never modified.
 int hashCode()
           
 void setCustomProperties(java.util.Map<CustomProperty,java.lang.String> values)
          Sets the values of all the CustomProperty for an entity.
 void setEntityId(int id)
          Sets the installation unique identifier.
 void setId(int id)
          Sets the unique identifier (unique only among entities of the same kind).
 void setTimeCreate(java.util.Date d)
          Sets when the IEntity was created;
 void setTimeUpdate(java.util.Date d)
          Sets when the IEntity was last modified (null is possible if never modified)
 void setUserCreateId(int id)
          Sets the user id (as in getId()) that created the object.
 void setUserUpdateId(java.lang.Integer id)
          Sets the user id (as in getId()) that last modified the object, or null if the object was never modified.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Entity

public Entity()
Method Detail

getId

public int getId()
Description copied from interface: IEntity
Returns an identifier that is unique among the entities of the same kind. For example getId() and getId() can return the same value. For a globally unique identifier, look at IEntity.getEntityId().

Specified by:
getId in interface IEntity
Returns:

setId

public void setId(int id)
Description copied from interface: IEntity
Sets the unique identifier (unique only among entities of the same kind).

Specified by:
setId in interface IEntity

getEntityId

public int getEntityId()
Description copied from interface: IEntity
Returns an installation unique identifier for a Blue Mind object.

Specified by:
getEntityId in interface IEntity
Returns:
The entity id

setEntityId

public void setEntityId(int id)
Description copied from interface: IEntity
Sets the installation unique identifier.

Specified by:
setEntityId in interface IEntity

getTimeUpdate

public java.util.Date getTimeUpdate()
Description copied from interface: IEntity
Returns when the IEntity was last modified, or null if never modified.

Specified by:
getTimeUpdate in interface IEntity
Returns:

setTimeUpdate

public void setTimeUpdate(java.util.Date d)
Description copied from interface: IEntity
Sets when the IEntity was last modified (null is possible if never modified)

Specified by:
setTimeUpdate in interface IEntity
Parameters:
d - The last modification date.

getTimeCreate

public java.util.Date getTimeCreate()
Description copied from interface: IEntity
Returns when the IEntity was created.

Specified by:
getTimeCreate in interface IEntity
Returns:

setTimeCreate

public void setTimeCreate(java.util.Date d)
Description copied from interface: IEntity
Sets when the IEntity was created;

Specified by:
setTimeCreate in interface IEntity

getUserCreateId

public int getUserCreateId()
Description copied from interface: IEntity
Returns the user id (as in getId()) that created the object.

Specified by:
getUserCreateId in interface IEntity
Returns:
The user id

setUserCreateId

public void setUserCreateId(int id)
Description copied from interface: IEntity
Sets the user id (as in getId()) that created the object.

Specified by:
setUserCreateId in interface IEntity

getUserUpdateId

public java.lang.Integer getUserUpdateId()
Description copied from interface: IEntity
Returns the user id (as in getId()) that last modified the object, or null if the object was never modified.

Specified by:
getUserUpdateId in interface IEntity
Returns:
The user id

setUserUpdateId

public void setUserUpdateId(java.lang.Integer id)
Description copied from interface: IEntity
Sets the user id (as in getId()) that last modified the object, or null if the object was never modified.

Specified by:
setUserUpdateId in interface IEntity

equals

public boolean equals(java.lang.Object arg0)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

setCustomProperties

public void setCustomProperties(java.util.Map<CustomProperty,java.lang.String> values)
Description copied from interface: IEntity
Sets the values of all the CustomProperty for an entity.

Specified by:
setCustomProperties in interface IEntity

getCustomProperties

public java.util.Map<CustomProperty,java.lang.String> getCustomProperties()
Description copied from interface: IEntity
Returns the CustomProperty values for an entity.

Specified by:
getCustomProperties in interface IEntity
Returns:

Blue Mind
Release 1.0