|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpe.pase.PASEMessage
public class PASEMessage
The abstract representation of the mail message.
MessageID, SendID, RecID, SendName,
RecName, Title, MessageContent, and
Time are the information encapsulated in PASEMessage
.
The MessageID is unique and used to identity the specific message
in the Agentflow System.
Field Summary | |
---|---|
static int |
DELETE_MESSAGE
Message Type: Delete Message |
static int |
FORWARD_MESSAGE
Message Type: Forward Message |
static int |
NEW_MESSAGE
Message Type: New Message |
static int |
REPLY_MESSAGE
Message Type: Reply Message |
Constructor Summary | |
---|---|
PASEMessage()
Constructor. |
|
PASEMessage(java.lang.String id)
Constructor. |
|
PASEMessage(java.lang.String pSendID,
java.lang.String pRecID,
java.lang.String pTitle,
java.lang.String pMsg,
long pTime)
Constructor. |
Method Summary | |
---|---|
void |
addAttachFileItem(java.lang.Object data)
Add the attach File item |
void |
addAttachItem(java.lang.Object data)
Add the attach Form item |
java.util.Vector |
getAttachFileList()
Get the attach File list |
java.util.Vector |
getAttachList()
Get the attach Form list |
java.lang.Object |
getHashKey()
|
java.lang.String |
getMsg()
Get the content of message |
java.lang.String |
getMsgID()
Get the message id |
java.lang.String |
getRecID()
Get the login id of receiver |
java.lang.String |
getRecName()
Get the name of receiver |
java.lang.String |
getSendID()
Get the login id of sender |
java.lang.String |
getSendName()
Get the name of sender |
long |
getTime()
Get the time of message |
java.lang.String |
getTimeString()
Get the time string. |
java.lang.String |
getTitle()
Get the title of message |
int |
getType()
Get the type of message |
boolean |
isNew()
Check whether the message is new message |
boolean |
isReply()
Check whether the message is reply message |
java.lang.String |
packAttachList()
Convert the attach data into string format and pack the strings together. |
void |
parseAttachList(java.lang.String param)
Parse the given string. |
void |
setAttachFileList(java.util.Vector v)
Set the attach File list |
void |
setAttachList(java.util.Vector v)
Set the attach Form list |
void |
setMsg(java.lang.String msg)
Set the content of message |
void |
setMsgID(java.lang.String id)
Set the message id |
void |
setNew(boolean b)
Set the message is new message |
void |
setRecID(java.lang.String id)
Set the login id of receiver |
void |
setRecName(java.lang.String name)
Set the name of receiver |
void |
setReply(boolean b)
Set the message is reply message |
void |
setSendID(java.lang.String id)
Set the login id of sender |
void |
setSendName(java.lang.String name)
Set the name of sender |
void |
setTime(long t)
Set the time of the message |
void |
setTitle(java.lang.String title)
Set the title of message |
void |
setType(int i)
Set the type of the message |
java.lang.String |
toString()
Convert the PASEMessage instance into the string format. |
void |
update(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DELETE_MESSAGE
public static final int FORWARD_MESSAGE
public static final int NEW_MESSAGE
public static final int REPLY_MESSAGE
Constructor Detail |
---|
public PASEMessage()
PASEMessage
without
parameters and initial all variables with default value.
public PASEMessage(java.lang.String id)
PASEMessage
with the
message id and intial the other variables with default value.
id
- the given pase message idpublic PASEMessage(java.lang.String pSendID, java.lang.String pRecID, java.lang.String pTitle, java.lang.String pMsg, long pTime)
PASEMessage
with the
specified parameters.
pSendID
- the given login id of the senderpRecID
- the given login id of the receiverpTitle
- the given title of the messagepMsg
- the given content of the messagepTime
- the given timeMethod Detail |
---|
public void addAttachFileItem(java.lang.Object data)
data
- the given datapublic void addAttachItem(java.lang.Object data)
data
- the given datapublic java.util.Vector getAttachFileList()
Vector
is
Object
)public java.util.Vector getAttachList()
Vector
is Object
)public java.lang.Object getHashKey()
getHashKey
in interface com.flowring.entity.Entity
public java.lang.String getMsg()
public java.lang.String getMsgID()
public java.lang.String getRecID()
public java.lang.String getRecName()
public java.lang.String getSendID()
public java.lang.String getSendName()
public long getTime()
public java.lang.String getTimeString()
public java.lang.String getTitle()
public int getType()
public boolean isNew()
public boolean isReply()
public java.lang.String packAttachList()
public void parseAttachList(java.lang.String param)
param
- the given param stringpublic void setAttachFileList(java.util.Vector v)
v
- the given attach File list. (the element in Vector
is Object
)public void setAttachList(java.util.Vector v)
v
- the given attach list. (the element in Vector
is Object
)public void setMsg(java.lang.String msg)
msg
- the contentpublic void setMsgID(java.lang.String id)
id
- the given message idpublic void setNew(boolean b)
b
- the given boolean valuepublic void setRecID(java.lang.String id)
id
- the given login idpublic void setRecName(java.lang.String name)
name
- the given namepublic void setReply(boolean b)
b
- the given boolean valuepublic void setSendID(java.lang.String id)
id
- the given login idpublic void setSendName(java.lang.String name)
name
- the given namepublic void setTime(long t)
t
- the given timepublic void setTitle(java.lang.String title)
title
- the given titlepublic void setType(int i)
i
- the given typepublic java.lang.String toString()
PASEMessage
instance into the string format.
The string format is { mMsgID = [message id] mSendID = [sender's login
id] mSendName = [sender's name] mRecID = [receiver's login id] mRecName =
[receiver's name] mTitle = [message title] mMsg = [message content]
attachList = [attach list] }
toString
in class java.lang.Object
public void update(java.lang.Object obj)
update
in interface com.flowring.entity.Entity
|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |