Package org.cyclos.entities.messaging
Class Message
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.messaging.Message
-
- All Implemented Interfaces:
Cloneable,HasNetwork,ProcessableForProxying,DefinesNetwork,IEntity
- Direct Known Subclasses:
IncomingMessage,OutgoingMessage
@Entity public abstract class Message extends NetworkedEntity implements DefinesNetwork
A message sent to a user or to system
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description Message()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetBody()MessageCategorygetCategory()LonggetConversationId()DategetDate()MessageBoxgetMessageBox()MessageOwnergetMessageOwner()abstract MessageNaturegetNature()NetworkgetNetwork()Returns the network this entity belongs toUsergetOwner()DategetRemovedAt()StringgetSubject()booleanisRead()booleanisRemoved()booleanisReplied()voidsetBody(String body)voidsetCategory(MessageCategory category)voidsetConversationId(Long conversationId)voidsetDate(Date date)voidsetMessageOwner(MessageOwner messageOwner)voidsetNetwork(Network network)voidsetOwner(User owner)voidsetRead(boolean read)voidsetRemovedAt(Date removedAt)voidsetReplied(boolean replied)voidsetSubject(String subject)-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, toShortString, toString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
getBody
public String getBody()
-
getCategory
public MessageCategory getCategory()
-
getConversationId
public Long getConversationId()
-
getDate
public Date getDate()
-
getMessageBox
public MessageBox getMessageBox()
-
getMessageOwner
public MessageOwner getMessageOwner()
-
getNature
public abstract MessageNature getNature()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getOwner
public User getOwner()
-
getRemovedAt
public Date getRemovedAt()
-
getSubject
public String getSubject()
-
isRead
public boolean isRead()
-
isRemoved
public boolean isRemoved()
-
isReplied
public boolean isReplied()
-
setBody
public void setBody(String body)
-
setCategory
public void setCategory(MessageCategory category)
-
setConversationId
public void setConversationId(Long conversationId)
-
setDate
public void setDate(Date date)
-
setMessageOwner
public void setMessageOwner(MessageOwner messageOwner)
-
setNetwork
public void setNetwork(Network network)
- Specified by:
setNetworkin interfaceDefinesNetwork
-
setOwner
public void setOwner(User owner)
-
setRead
public void setRead(boolean read)
-
setRemovedAt
public void setRemovedAt(Date removedAt)
-
setReplied
public void setReplied(boolean replied)
-
setSubject
public void setSubject(String subject)
-
-