public class EmailNotification extends AbstractOutputFileAction
限定符和类型 | 字段和说明 |
---|---|
static ObjectTableMapper |
OBJECT_MAPPER |
static java.lang.String |
TABLE_NAME |
static java.lang.String |
XML_TAG |
CPR, EXTRA_OUTPUT_FILE_ACTION_COLUMN_NAME, PNG
EMPTY_ACTION
构造器和说明 |
---|
EmailNotification() |
EmailNotification(java.lang.String toAddress,
java.lang.String ccAddress,
java.lang.String bccAddress,
java.lang.String subject,
java.lang.String bodyContent,
java.lang.Boolean canPreviewAttach,
boolean isRole) |
限定符和类型 | 方法和说明 |
---|---|
OutputFileAction |
analyzeJSON(JSONObject emailNotificationJSON)
将json转换为EmailNotification对象
|
java.lang.Object |
clone()
Clone.
|
JSONObject |
createJSONConfig()
生成json对象
|
void |
doFileAction(java.io.File[] files)
对附件的处理
|
void |
doFileAction(java.io.File[] files,
java.lang.String toAddress)
对附件的处理
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBccAddress() |
java.lang.String |
getBodyContent() |
java.lang.Boolean |
getCanPreviewAttach() |
java.lang.String |
getCcAddress() |
CompatiableIDFCMapper |
getExtraOutputFileActionForeignKey()
和FileActionList的外键关联
|
java.io.File[] |
getFilesToDealWith(java.io.File[] files) |
long |
getId() |
java.lang.String |
getJsonTag() |
java.lang.String |
getNeedMailUser() |
java.lang.String |
getNeedMailUser(java.lang.String toAddress) |
EmailAttachment[] |
getPreviewFiles() |
java.lang.String |
getResultURL() |
java.lang.String |
getSubject() |
java.lang.String |
getToAddress() |
protected java.util.Set |
getUserIdsInRole(java.lang.String tempRole) |
boolean |
isAddLink() |
boolean |
isEmailNotification()
是否需要邮件通知
|
boolean |
isRole()
收件人是否为角色
|
boolean |
isUseAttach() |
ObjectTableMapper |
objectTableMapper2Register()
需要建立的数据库表结构
|
void |
setAddLink(boolean addLink) |
void |
setBccAddress(java.lang.String bccAddress) |
void |
setBodyContent(java.lang.String bodyContent) |
void |
setCanPreviewAttach(java.lang.Boolean canPreviewAttach) |
void |
setCcAddress(java.lang.String ccAddress) |
void |
setId(long id) |
void |
setPreviewFiles(java.util.List<java.io.File> files) |
void |
setResultURL(java.lang.String resultURL) |
void |
setRole(boolean isRole) |
void |
setSubject(java.lang.String subject) |
void |
setToAddress(java.lang.String toAddress) |
void |
setUseAttach(boolean useAttach) |
dealWithParameter, getBook, getCprFromOutputFile, getParameterMap, getPngFromOutputFile, getTaskName, getUserArray, init, readXML, setBook, setParameters, setTaskName, setUserArray, writeXML
public static final java.lang.String XML_TAG
public static final java.lang.String TABLE_NAME
public static final ObjectTableMapper OBJECT_MAPPER
public EmailNotification()
public EmailNotification(java.lang.String toAddress, java.lang.String ccAddress, java.lang.String bccAddress, java.lang.String subject, java.lang.String bodyContent, java.lang.Boolean canPreviewAttach, boolean isRole)
public JSONObject createJSONConfig() throws JSONException
createJSONConfig
在接口中 OutputFileAction
createJSONConfig
在类中 AbstractOutputFileAction
JSONException
public boolean isRole()
public void setRole(boolean isRole)
public OutputFileAction analyzeJSON(JSONObject emailNotificationJSON)
analyzeJSON
在接口中 OutputFileAction
analyzeJSON
在类中 AbstractOutputFileAction
emailNotificationJSON
- json对象public ObjectTableMapper objectTableMapper2Register()
public java.io.File[] getFilesToDealWith(java.io.File[] files)
getFilesToDealWith
在接口中 OutputFileAction
getFilesToDealWith
在类中 AbstractOutputFileAction
public CompatiableIDFCMapper getExtraOutputFileActionForeignKey()
OutputFileAction
getExtraOutputFileActionForeignKey
在接口中 OutputFileAction
getExtraOutputFileActionForeignKey
在类中 AbstractOutputFileAction
public void doFileAction(java.io.File[] files) throws java.lang.Exception
doFileAction
在接口中 OutputFileAction
doFileAction
在类中 AbstractOutputFileAction
files
- 附件数组java.lang.Exception
- 异常public java.lang.String getNeedMailUser()
public java.lang.String getNeedMailUser(java.lang.String toAddress)
protected java.util.Set getUserIdsInRole(java.lang.String tempRole)
public void doFileAction(java.io.File[] files, java.lang.String toAddress) throws java.lang.Exception
files
- 附件数组toAddress
- 指定的地址java.lang.Exception
public long getId()
public void setId(long id)
public java.lang.String getToAddress()
public void setToAddress(java.lang.String toAddress)
public java.lang.String getCcAddress()
public void setCcAddress(java.lang.String ccAddress)
public java.lang.String getBccAddress()
public void setBccAddress(java.lang.String bccAddress)
public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
public java.lang.String getBodyContent()
public void setBodyContent(java.lang.String bodyContent)
public java.lang.Boolean getCanPreviewAttach()
public void setCanPreviewAttach(java.lang.Boolean canPreviewAttach)
public EmailAttachment[] getPreviewFiles()
public void setPreviewFiles(java.util.List<java.io.File> files)
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 AbstractOutputFileAction
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public java.lang.String getJsonTag()
getJsonTag
在接口中 OutputFileAction
getJsonTag
在类中 AbstractOutputFileAction
public boolean isEmailNotification()
public boolean isAddLink()
public void setAddLink(boolean addLink)
public boolean isUseAttach()
public void setUseAttach(boolean useAttach)
public java.lang.String getResultURL()
public void setResultURL(java.lang.String resultURL)