public class PASEMessage
extends java.lang.Object
implements java.io.Serializable
PASEMessage.
The MessageID is unique and used to identity the specific message
in the Agentflow System.| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.String |
getCCRecID()
Get the id of cc receiver
|
java.lang.String |
getCCRecName()
Get the name of cc receiver
|
java.lang.Object |
getHashKey() |
java.lang.String |
getMsg()
Get the content of message
|
java.lang.String |
getMsgID()
Get the message id
|
java.lang.String |
getMsgType()
Get the type of message
|
java.lang.String |
getRecID()
Get the login id of receiver
|
java.lang.String |
getRecName()
Get the name of receiver
|
long |
getSaveTime()
Get the save time of message
|
java.lang.String |
getSaveTimeString()
Get the time string.
|
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
|
boolean |
isStarred()
Check whether the message is Starred 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 |
setCCRecID(java.lang.String id)
Set the id of cc receiver
|
void |
setCCRecName(java.lang.String name)
Set the name of cc receiver
|
void |
setMsg(java.lang.String msg)
Set the content of message
|
void |
setMsgID(java.lang.String id)
Set the message id
|
void |
setMsgType(java.lang.String msgType)
Set the type of message
|
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 |
setSaveTime(long t)
Set the save time of the 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 |
setStarred(boolean b)
Set the message is Starred message
|
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) |
public static final int NEW_MESSAGE
public static final int REPLY_MESSAGE
public static final int FORWARD_MESSAGE
public static final int DELETE_MESSAGE
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 timepublic java.lang.String getMsgID()
public void setMsgID(java.lang.String id)
id - the given message idpublic java.lang.String getSendID()
public void setSendID(java.lang.String id)
id - the given login idpublic java.lang.String getSendName()
public void setSendName(java.lang.String name)
name - the given namepublic java.lang.String getRecID()
public void setRecID(java.lang.String id)
id - the given login idpublic java.lang.String getRecName()
public void setRecName(java.lang.String name)
name - the given namepublic java.lang.String getCCRecID()
public void setCCRecID(java.lang.String id)
id - the given idpublic java.lang.String getCCRecName()
public void setCCRecName(java.lang.String name)
name - the given namepublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - the given titlepublic java.lang.String getMsg()
public void setMsg(java.lang.String msg)
msg - the contentpublic java.lang.String getMsgType()
public void setMsgType(java.lang.String msgType)
msg - the message typepublic long getTime()
public long getSaveTime()
public int getType()
public java.util.Vector getAttachList()
Vector is Object)public void setAttachList(java.util.Vector v)
v - the given attach list. (the element in Vector
is Object)public void addAttachItem(java.lang.Object data)
data - the given datapublic java.util.Vector getAttachFileList()
Vector is
Object)public void setAttachFileList(java.util.Vector v)
v - the given attach File list. (the element in Vector
is Object)public void addAttachFileItem(java.lang.Object data)
data - the given datapublic java.lang.String getTimeString()
public java.lang.String getSaveTimeString()
public void setTime(long t)
t - the given timepublic void setSaveTime(long t)
t - the given save timepublic boolean isNew()
public boolean isReply()
public boolean isStarred()
public void setNew(boolean b)
b - the given boolean valuepublic void setReply(boolean b)
b - the given boolean valuepublic void setStarred(boolean b)
b - the given boolean valuepublic void setType(int i)
i - the given typepublic void parseAttachList(java.lang.String param)
param - the given param stringpublic java.lang.String packAttachList()
public 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]
mCCRecID = [cc receiver id] mCCRecName = [cc receiver's name]
mTitle = [message title] mMsg = [message content] mMsgType = [message type]
attachList = [attach list] attachFileList = [attach file list] }toString in class java.lang.Objectpublic java.lang.Object getHashKey()
public void update(java.lang.Object obj)
Copyright ? 2022. All Rights Reserved.