Package org.bgerp.model.msg
Class Message
java.lang.Object
org.bgerp.model.base.Id
org.bgerp.model.msg.Message
- All Implemented Interfaces:
Serializable,Id<Integer>
- Direct Known Subclasses:
Message
Message.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidДобавляет к сообщению файлПолучить список прикрепленных файловintgetFrom()intgetText()getTo()intintbooleanbooleanisRead()booleanisUnread()voidsetDirection(int value) voidvoidsetFromTime(Date value) voidsetProcess(Process value) voidsetProcessId(int value) voidsetSubject(String value) voidsetSystemId(String value) voidvoidvoidvoidsetTypeId(int value) voidsetUserId(int value) withDirection(int value) withFromTime(Date value) withProcess(Process value) withProcessId(int value) withSubject(String value) withSystemId(String value) withToTime(Date value) withTypeId(int value) withUserId(int value)
-
Field Details
-
OBJECT_TYPE
- See Also:
-
DIRECTION_INCOMING
public static final int DIRECTION_INCOMING- See Also:
-
DIRECTION_OUTGOING
public static final int DIRECTION_OUTGOING- See Also:
-
-
Constructor Details
-
Message
public Message()
-
-
Method Details
-
getSystemId
-
setSystemId
-
withSystemId
-
getProcessId
public int getProcessId() -
setProcessId
public void setProcessId(int value) -
withProcessId
-
getProcess
-
setProcess
-
withProcess
-
getFromTime
-
setFromTime
-
withFromTime
-
getText
-
setText
-
withText
-
getTypeId
public int getTypeId() -
setTypeId
public void setTypeId(int value) -
withTypeId
-
getUserId
public int getUserId() -
setUserId
public void setUserId(int value) -
withUserId
-
getUserTitle
-
getToTime
-
setToTime
-
withToTime
-
getDirection
public int getDirection() -
setDirection
public void setDirection(int value) -
withDirection
-
isIncoming
public boolean isIncoming() -
isRead
public boolean isRead()- Returns:
directionequalsDIRECTION_INCOMINGandtoTimeis nulnull.
-
isUnread
public boolean isUnread()- Returns:
directionequalsDIRECTION_INCOMINGandtoTimeisnull.
-
getFrom
-
setFrom
-
withFrom
-
getTo
-
setTo
-
withTo
-
getSubject
-
setSubject
-
withSubject
-
getAttachList
Получить список прикрепленных файлов- Returns:
- список файлов
-
addAttach
Добавляет к сообщению файл- Parameters:
messageAttach-
-
getLockEdit
-