Package ru.bgcrm.model.message
Class Message
java.lang.Object
org.bgerp.model.base.Id
ru.bgcrm.model.message.Message
- All Implemented Interfaces:
Serializable
,Id<Integer>
Message.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Добавляет к сообщению файлПолучить список прикрепленных файловint
getFrom()
int
getText()
getTo()
int
int
boolean
boolean
isRead()
boolean
isUnread()
void
setDirection
(int value) void
void
setFromTime
(Date value) void
setProcess
(Process value) void
setProcessId
(int value) void
setSubject
(String value) void
setSystemId
(String value) void
void
void
void
setTypeId
(int value) void
setUserId
(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:
direction
equalsDIRECTION_INCOMING
andtoTime
is nulnull
.
-
isUnread
public boolean isUnread()- Returns:
direction
equalsDIRECTION_INCOMING
andtoTime
isnull
.
-
getFrom
-
setFrom
-
withFrom
-
getTo
-
setTo
-
withTo
-
getSubject
-
setSubject
-
withSubject
-
getAttachList
Получить список прикрепленных файлов- Returns:
- список файлов
-
addAttach
Добавляет к сообщению файл- Parameters:
messageAttach
-
-
getLockEdit
-