Class MessageData
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.messaging.messages.MessageData
-
- All Implemented Interfaces:
Serializable
public class MessageData extends Bean
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BasicProperty<Boolean,MessageData>CAN_MARK_UNREADstatic BasicProperty<Boolean,MessageData>CAN_MOVE_TO_TRASHstatic BasicProperty<Boolean,MessageData>CAN_REMOVEstatic BasicProperty<Boolean,MessageData>CAN_REPLYstatic BasicProperty<Boolean,MessageData>CAN_RESTOREstatic StringCLASS_NAMEstatic BasicProperty<DetailedMessageVO,MessageData>MESSAGEstatic ListProperty<MessageVO,MessageData>REPLIES
-
Constructor Summary
Constructors Constructor Description MessageData()MessageData(Property<T,? super MessageData> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()DetailedMessageVOgetMessage()List<MessageVO>getReplies()booleanisCanMarkUnread()booleanisCanMoveToTrash()booleanisCanRemove()booleanisCanReply()booleanisCanRestore()voidsetCanMarkUnread(boolean canMarkUnread)voidsetCanMoveToTrash(boolean canMoveToTrash)voidsetCanRemove(boolean canRemove)voidsetCanReply(boolean canReply)voidsetCanRestore(boolean canRestore)voidsetMessage(DetailedMessageVO message)voidsetReplies(List<MessageVO> replies)-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, backup, changes, clearAttributes, copyPropertiesTo, copyPropertiesTo, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, restore, set, set, setAttribute, setWithPropagationId
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
CAN_MARK_UNREAD
public static final BasicProperty<Boolean,MessageData> CAN_MARK_UNREAD
-
CAN_MOVE_TO_TRASH
public static final BasicProperty<Boolean,MessageData> CAN_MOVE_TO_TRASH
-
CAN_REMOVE
public static final BasicProperty<Boolean,MessageData> CAN_REMOVE
-
CAN_REPLY
public static final BasicProperty<Boolean,MessageData> CAN_REPLY
-
CAN_RESTORE
public static final BasicProperty<Boolean,MessageData> CAN_RESTORE
-
MESSAGE
public static final BasicProperty<DetailedMessageVO,MessageData> MESSAGE
-
REPLIES
public static final ListProperty<MessageVO,MessageData> REPLIES
-
-
Constructor Detail
-
MessageData
public MessageData()
-
MessageData
public MessageData(Property<T,? super MessageData> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classBean
-
isCanMarkUnread
public boolean isCanMarkUnread()
-
setCanMarkUnread
public void setCanMarkUnread(boolean canMarkUnread)
-
isCanMoveToTrash
public boolean isCanMoveToTrash()
-
setCanMoveToTrash
public void setCanMoveToTrash(boolean canMoveToTrash)
-
isCanRemove
public boolean isCanRemove()
-
setCanRemove
public void setCanRemove(boolean canRemove)
-
isCanReply
public boolean isCanReply()
-
setCanReply
public void setCanReply(boolean canReply)
-
isCanRestore
public boolean isCanRestore()
-
setCanRestore
public void setCanRestore(boolean canRestore)
-
getMessage
public DetailedMessageVO getMessage()
-
setMessage
public void setMessage(DetailedMessageVO message)
-
-