public class DocumentScript
extends com.accela.aa.emse.dom.service.BaseAAScript
Accela Automation
File: DocumentScript.java
Accela, Inc.
Copyright (C): 2010-2014
Description:
TODO
Notes:
$Id: DocumentScript.java 72642 2009-01-01 20:01:57Z ..\ashley.zou $
Revision History
<Date>, <Who>, <What>
2010-2-23 ashley.zou Initial.
| Constructor and Description |
|---|
DocumentScript(java.lang.String serviceProviderCode,
java.lang.String auditID,
com.accela.aa.emse.dom.service.CachedService cachedService)
Constructor for CapScript.
|
| Modifier and Type | Method and Description |
|---|---|
ScriptResult |
assignReviewer(com.accela.orm.model.document.DocumentEntityAssociationModel documentEntityAssociationModel)
Add Document Entity Associations.
|
ScriptResult |
associateDoc2Task(java.util.List<DocumentModel> docList,
com.accela.aa.workflow.workflow.TaskItemModel taskItemModel)
Associate doc2 task.
|
ScriptResult |
associateReviewer2Doc(java.util.List<DocumentModel> docList,
java.util.List<com.accela.aa.aamain.people.SysUserModel> reviewerList,
com.accela.aa.workflow.workflow.TaskItemModel taskItemModel)
Associate reviewer2 doc.
|
ScriptResult |
createDocument(DocumentModel documentModel)
Creates the document.
|
ScriptResult |
getACADocumentUrl(java.lang.String url,
DocumentModel documentModel)
get ACA URL
|
ScriptResult |
getCapDocumentList(com.accela.aa.aamain.cap.CapIDModel capID,
java.lang.String currentUserID)
get cap document list
|
ScriptResult |
getCapTaskByCapID(com.accela.aa.aamain.cap.CapIDModel capID)
Gets the cap task by cap id.
|
ScriptResult |
getDocumentByPK(java.lang.String documentID)
get document by PK
|
ScriptResult |
getDocumentListByEntity(java.lang.String entityID,
java.lang.String entityType)
get document list by entity:
1, for License Professional: the entityID is licSeqNbr, and the entityType is 'LICENSEPROFESSIONAL'
|
ScriptResult |
getOriginalDoc(DocumentModel resubmitDocModel)
Get Original Document By Resubmit Document.
|
ScriptResult |
getRelatedReviewers(java.lang.Long docID,
com.accela.aa.workflow.workflow.TaskItemModel taskItemModel)
Gets the related reviewers.
|
ScriptResult |
getTaskItemModel() |
ScriptResult |
newDocumentContentModel()
New document content model.
|
ScriptResult |
newDocumentModel()
New document model.
|
ScriptResult |
removeDocumentByPK(java.lang.String docSeq,
java.lang.String userName,
java.lang.String password,
java.lang.String moduleName)
Removes the document by sequence number
|
ScriptResult |
sendEmailAndSaveAsDocument(java.lang.String from,
java.lang.String to,
java.lang.String cc,
java.lang.String templateName,
java.util.Hashtable<java.lang.String,java.lang.String> contentVariables,
CapIDScriptModel capIDScriptModel,
java.lang.String[] fileNames)
send email and upload document by notification template name.
|
ScriptResult |
sendEmailAndSaveAsDocument4Workflow(java.lang.String from,
java.lang.String to,
java.lang.String cc,
java.lang.String subject,
java.lang.String content,
java.lang.String[] fileNames,
ProcessNoteScriptModel processNoteScriptModel)
Send Email and save to document
|
ScriptResult |
sendEmailByTemplateName(java.lang.String from,
java.lang.String to,
java.lang.String cc,
java.lang.String templateName,
java.util.Hashtable<java.lang.String,java.lang.String> contentVariables,
java.lang.String[] fileNames)
Send email by notification template name.
|
ScriptResult |
updateDocument(DocumentModel docModel)
Update Document.
|
ScriptResult |
updateReviewTask(com.accela.orm.model.document.DocumentEntityAssociationModel documentEntityAssociationModel)
update DocumentEntityAssociationModel
|
public DocumentScript(java.lang.String serviceProviderCode,
java.lang.String auditID,
com.accela.aa.emse.dom.service.CachedService cachedService)
throws com.accela.aa.exception.AAException
serviceProviderCode - agency codeauditID - the caller idcom.accela.aa.exception.AAExceptionpublic ScriptResult getCapDocumentList(com.accela.aa.aamain.cap.CapIDModel capID, java.lang.String currentUserID)
capID - cap id modelcurrentUserID - calleridpublic ScriptResult associateDoc2Task(java.util.List<DocumentModel> docList, com.accela.aa.workflow.workflow.TaskItemModel taskItemModel)
docList - the doc listtaskItemModelList - the task item model listpublic ScriptResult getOriginalDoc(DocumentModel resubmitDocModel)
resubmitDocModel - resubmit Doc Modelpublic ScriptResult updateDocument(DocumentModel docModel)
docModel - Doc Modelpublic ScriptResult assignReviewer(com.accela.orm.model.document.DocumentEntityAssociationModel documentEntityAssociationModel)
documentEntityAssociationModel - Document Entity Association Modelpublic ScriptResult associateReviewer2Doc(java.util.List<DocumentModel> docList, java.util.List<com.accela.aa.aamain.people.SysUserModel> reviewerList, com.accela.aa.workflow.workflow.TaskItemModel taskItemModel)
docList - the doc listreviewerList - the reviewer listtaskItemModel - the task item modelpublic ScriptResult getRelatedReviewers(java.lang.Long docID, com.accela.aa.workflow.workflow.TaskItemModel taskItemModel)
docID - the doc idtaskItemModel - public ScriptResult updateReviewTask(com.accela.orm.model.document.DocumentEntityAssociationModel documentEntityAssociationModel)
documentEntityAssociationModels - public ScriptResult getCapTaskByCapID(com.accela.aa.aamain.cap.CapIDModel capID)
capID - the cap idpublic ScriptResult getTaskItemModel()
public ScriptResult getDocumentByPK(java.lang.String documentID)
documentID - java.lang.Exceptionpublic ScriptResult sendEmailByTemplateName(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String templateName, java.util.Hashtable<java.lang.String,java.lang.String> contentVariables, java.lang.String[] fileNames)
from - email address fromto - email address tocc - email address cctemplateName - template namecontentVariables - variables for email subject and contentfileNames - the file names of attachmentpublic ScriptResult sendEmailAndSaveAsDocument(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String templateName, java.util.Hashtable<java.lang.String,java.lang.String> contentVariables, CapIDScriptModel capIDScriptModel, java.lang.String[] fileNames)
templateName - notification template namecontentVariables - HashtableCapIDScriptModel - capIDScriptModelfileNames - attached file names in email contentpublic ScriptResult sendEmailAndSaveAsDocument4Workflow(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String subject, java.lang.String content, java.lang.String[] fileNames, ProcessNoteScriptModel processNoteScriptModel)
from - the email address that send the emailto - the email address to sendcc - the email address to CC, can be nullsubject - the mail subjectcontent - the mail contentfileNames - the fileNames arrayProcessNoteScriptModel - processNoteScriptModel such as included AttachTo, EdmsName, DocGroup, DocCategory,
and CAPID.public ScriptResult getACADocumentUrl(java.lang.String url, DocumentModel documentModel)
url - documentModel - public ScriptResult removeDocumentByPK(java.lang.String docSeq, java.lang.String userName, java.lang.String password, java.lang.String moduleName)
docSeq - the doc sequence numberuserName - password - moduleName - public ScriptResult createDocument(DocumentModel documentModel)
documentModel - the document modelpublic ScriptResult newDocumentModel()
public ScriptResult newDocumentContentModel()
public ScriptResult getDocumentListByEntity(java.lang.String entityID, java.lang.String entityType)
entityID - entityType -