tvpl.api

<back to all web services

AdvanceCreateDocument

Requires Authentication
The following routes are available for this service:
POST/document/advance-create
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class AdvanceCreateDocument extends BasicDocument
    {
        public UploadedFiles partUploadedFile = null;
        public UploadedFiles compactUploadedFile = null;
        public UploadedFiles analysisUploadedFile = null;
        public UploadedFiles fullUploadedFile = null;
        public ArrayList<UploadedFiles> attachFiles = null;
        public ArrayList<Integer> basisDocumentId = null;
        public ArrayList<Integer> referenceDocumentId = null;
        public ArrayList<Integer> replacedDocumentId = null;
        public ArrayList<Integer> expiredDocumentId = null;
        
        public UploadedFiles getPartUploadedFile() { return partUploadedFile; }
        public AdvanceCreateDocument setPartUploadedFile(UploadedFiles value) { this.partUploadedFile = value; return this; }
        public UploadedFiles getCompactUploadedFile() { return compactUploadedFile; }
        public AdvanceCreateDocument setCompactUploadedFile(UploadedFiles value) { this.compactUploadedFile = value; return this; }
        public UploadedFiles getAnalysisUploadedFile() { return analysisUploadedFile; }
        public AdvanceCreateDocument setAnalysisUploadedFile(UploadedFiles value) { this.analysisUploadedFile = value; return this; }
        public UploadedFiles getFullUploadedFile() { return fullUploadedFile; }
        public AdvanceCreateDocument setFullUploadedFile(UploadedFiles value) { this.fullUploadedFile = value; return this; }
        public ArrayList<UploadedFiles> getAttachFiles() { return attachFiles; }
        public AdvanceCreateDocument setAttachFiles(ArrayList<UploadedFiles> value) { this.attachFiles = value; return this; }
        public ArrayList<Integer> getBasisDocumentId() { return basisDocumentId; }
        public AdvanceCreateDocument setBasisDocumentId(ArrayList<Integer> value) { this.basisDocumentId = value; return this; }
        public ArrayList<Integer> getReferenceDocumentId() { return referenceDocumentId; }
        public AdvanceCreateDocument setReferenceDocumentId(ArrayList<Integer> value) { this.referenceDocumentId = value; return this; }
        public ArrayList<Integer> getReplacedDocumentId() { return replacedDocumentId; }
        public AdvanceCreateDocument setReplacedDocumentId(ArrayList<Integer> value) { this.replacedDocumentId = value; return this; }
        public ArrayList<Integer> getExpiredDocumentId() { return expiredDocumentId; }
        public AdvanceCreateDocument setExpiredDocumentId(ArrayList<Integer> value) { this.expiredDocumentId = value; return this; }
    }

    public static class BasicDocument
    {
        @Required()
        public String title = null;

        @StringLength(4000)
        public String description = null;

        @StringLength(500)
        public String owner = null;

        public Integer documentPolicyId = null;
        public Integer updateDocumentId = null;
        public Date effectBeginDate = null;
        public Date effectEndDate = null;
        public Integer issuingAgencyId = null;
        public Integer documentTypeId = null;
        public Integer documentGroupId = null;
        public Integer subjectId = null;
        @StringLength(500)
        public String signBy = null;

        public Date signDate = null;
        public Integer statusId = null;
        public Boolean isInternal = null;
        public String documentNumber = null;
        public String documentCode = null;
        public Boolean isUrgent = null;
        public Integer scopeType = null;
        public Boolean isActive = null;
        
        public String getTitle() { return title; }
        public BasicDocument setTitle(String value) { this.title = value; return this; }
        public String getDescription() { return description; }
        public BasicDocument setDescription(String value) { this.description = value; return this; }
        public String getOwner() { return owner; }
        public BasicDocument setOwner(String value) { this.owner = value; return this; }
        public Integer getDocumentPolicyId() { return documentPolicyId; }
        public BasicDocument setDocumentPolicyId(Integer value) { this.documentPolicyId = value; return this; }
        public Integer getUpdateDocumentId() { return updateDocumentId; }
        public BasicDocument setUpdateDocumentId(Integer value) { this.updateDocumentId = value; return this; }
        public Date getEffectBeginDate() { return effectBeginDate; }
        public BasicDocument setEffectBeginDate(Date value) { this.effectBeginDate = value; return this; }
        public Date getEffectEndDate() { return effectEndDate; }
        public BasicDocument setEffectEndDate(Date value) { this.effectEndDate = value; return this; }
        public Integer getIssuingAgencyId() { return issuingAgencyId; }
        public BasicDocument setIssuingAgencyId(Integer value) { this.issuingAgencyId = value; return this; }
        public Integer getDocumentTypeId() { return documentTypeId; }
        public BasicDocument setDocumentTypeId(Integer value) { this.documentTypeId = value; return this; }
        public Integer getDocumentGroupId() { return documentGroupId; }
        public BasicDocument setDocumentGroupId(Integer value) { this.documentGroupId = value; return this; }
        public Integer getSubjectId() { return subjectId; }
        public BasicDocument setSubjectId(Integer value) { this.subjectId = value; return this; }
        public String getSignBy() { return signBy; }
        public BasicDocument setSignBy(String value) { this.signBy = value; return this; }
        public Date getSignDate() { return signDate; }
        public BasicDocument setSignDate(Date value) { this.signDate = value; return this; }
        public Integer getStatusId() { return statusId; }
        public BasicDocument setStatusId(Integer value) { this.statusId = value; return this; }
        public Boolean getIsInternal() { return isInternal; }
        public BasicDocument setIsInternal(Boolean value) { this.isInternal = value; return this; }
        public String getDocumentNumber() { return documentNumber; }
        public BasicDocument setDocumentNumber(String value) { this.documentNumber = value; return this; }
        public String getDocumentCode() { return documentCode; }
        public BasicDocument setDocumentCode(String value) { this.documentCode = value; return this; }
        public Boolean getIsUrgent() { return isUrgent; }
        public BasicDocument setIsUrgent(Boolean value) { this.isUrgent = value; return this; }
        public Integer getScopeType() { return scopeType; }
        public BasicDocument setScopeType(Integer value) { this.scopeType = value; return this; }
        public Boolean getIsActive() { return isActive; }
        public BasicDocument setIsActive(Boolean value) { this.isActive = value; return this; }
    }

    public static class UploadedFiles extends BasicUploadedFile
    {
        public Long id = null;
        public String uploadedFile = null;
        public Integer subDocumentId = null;
        public Integer stepId = null;
        public Integer code = null;
        
        public Long getId() { return id; }
        public UploadedFiles setId(Long value) { this.id = value; return this; }
        public String getUploadedFile() { return uploadedFile; }
        public UploadedFiles setUploadedFile(String value) { this.uploadedFile = value; return this; }
        public Integer getSubDocumentId() { return subDocumentId; }
        public UploadedFiles setSubDocumentId(Integer value) { this.subDocumentId = value; return this; }
        public Integer getStepId() { return stepId; }
        public UploadedFiles setStepId(Integer value) { this.stepId = value; return this; }
        public Integer getCode() { return code; }
        public UploadedFiles setCode(Integer value) { this.code = value; return this; }
    }

    public static class BasicUploadedFile
    {
        public String fileName = null;
        public String filekey = null;
        public String fileUrl = null;
        public String checksum = null;
        public String eTag = null;
        public Long fileSize = null;
        
        public String getFileName() { return fileName; }
        public BasicUploadedFile setFileName(String value) { this.fileName = value; return this; }
        public String getFilekey() { return filekey; }
        public BasicUploadedFile setFilekey(String value) { this.filekey = value; return this; }
        public String getFileUrl() { return fileUrl; }
        public BasicUploadedFile setFileUrl(String value) { this.fileUrl = value; return this; }
        public String getChecksum() { return checksum; }
        public BasicUploadedFile setChecksum(String value) { this.checksum = value; return this; }
        public String getETag() { return eTag; }
        public BasicUploadedFile setETag(String value) { this.eTag = value; return this; }
        public Long getFileSize() { return fileSize; }
        public BasicUploadedFile setFileSize(Long value) { this.fileSize = value; return this; }
    }

    public static class DocumentDetailResponse implements IResponseRequest
    {
        public DocumentDetail data = null;
        public Integer code = null;
        public String message = null;
        
        public DocumentDetail getData() { return data; }
        public DocumentDetailResponse setData(DocumentDetail value) { this.data = value; return this; }
        public Integer getCode() { return code; }
        public DocumentDetailResponse setCode(Integer value) { this.code = value; return this; }
        public String getMessage() { return message; }
        public DocumentDetailResponse setMessage(String value) { this.message = value; return this; }
    }

    public static class DocumentDetail extends DocumentSearchResultItem
    {
        public UploadedFileAttach partUploadedFile = null;
        public UploadedFileAttach compactUploadedFile = null;
        public UploadedFileAttach analysisUploadedFile = null;
        public UploadedFileAttach fullUploadedFile = null;
        public Date createdAt = null;
        public ApproversProfile nextApprover = null;
        public CurrentApprover currentApprover = null;
        public ArrayList<UploadedFileAttach> attachFiles = null;
        public Boolean hasReadPermission = null;
        public Boolean canGrantReadPermission = null;
        public ArrayList<SimpleDocumentRelation> basisDocument = null;
        public ArrayList<SimpleDocumentRelation> basisForDocument = null;
        public SimpleDocumentRelation mainDocument = null;
        public ArrayList<SimpleDocumentRelation> referenceDocument = null;
        public ArrayList<SimpleDocumentRelation> referencedByDocument = null;
        public ArrayList<SimpleDocumentRelation> replacedDocument = null;
        public ArrayList<SimpleDocumentRelation> replacedByDocument = null;
        public ArrayList<SimpleDocumentRelation> expiredDocument = null;
        public ArrayList<SimpleDocumentRelation> expiredByDocument = null;
        public SimpleDocumentRelation updateForDocument = null;
        public Integer scopeType = null;
        public Integer stepOrder = null;
        
        public UploadedFileAttach getPartUploadedFile() { return partUploadedFile; }
        public DocumentDetail setPartUploadedFile(UploadedFileAttach value) { this.partUploadedFile = value; return this; }
        public UploadedFileAttach getCompactUploadedFile() { return compactUploadedFile; }
        public DocumentDetail setCompactUploadedFile(UploadedFileAttach value) { this.compactUploadedFile = value; return this; }
        public UploadedFileAttach getAnalysisUploadedFile() { return analysisUploadedFile; }
        public DocumentDetail setAnalysisUploadedFile(UploadedFileAttach value) { this.analysisUploadedFile = value; return this; }
        public UploadedFileAttach getFullUploadedFile() { return fullUploadedFile; }
        public DocumentDetail setFullUploadedFile(UploadedFileAttach value) { this.fullUploadedFile = value; return this; }
        public Date getCreatedAt() { return createdAt; }
        public DocumentDetail setCreatedAt(Date value) { this.createdAt = value; return this; }
        public ApproversProfile getNextApprover() { return nextApprover; }
        public DocumentDetail setNextApprover(ApproversProfile value) { this.nextApprover = value; return this; }
        public CurrentApprover getCurrentApprover() { return currentApprover; }
        public DocumentDetail setCurrentApprover(CurrentApprover value) { this.currentApprover = value; return this; }
        public ArrayList<UploadedFileAttach> getAttachFiles() { return attachFiles; }
        public DocumentDetail setAttachFiles(ArrayList<UploadedFileAttach> value) { this.attachFiles = value; return this; }
        public Boolean isHasReadPermission() { return hasReadPermission; }
        public DocumentDetail setHasReadPermission(Boolean value) { this.hasReadPermission = value; return this; }
        public Boolean isCanGrantReadPermission() { return canGrantReadPermission; }
        public DocumentDetail setCanGrantReadPermission(Boolean value) { this.canGrantReadPermission = value; return this; }
        public ArrayList<SimpleDocumentRelation> getBasisDocument() { return basisDocument; }
        public DocumentDetail setBasisDocument(ArrayList<SimpleDocumentRelation> value) { this.basisDocument = value; return this; }
        public ArrayList<SimpleDocumentRelation> getBasisForDocument() { return basisForDocument; }
        public DocumentDetail setBasisForDocument(ArrayList<SimpleDocumentRelation> value) { this.basisForDocument = value; return this; }
        public SimpleDocumentRelation getMainDocument() { return mainDocument; }
        public DocumentDetail setMainDocument(SimpleDocumentRelation value) { this.mainDocument = value; return this; }
        public ArrayList<SimpleDocumentRelation> getReferenceDocument() { return referenceDocument; }
        public DocumentDetail setReferenceDocument(ArrayList<SimpleDocumentRelation> value) { this.referenceDocument = value; return this; }
        public ArrayList<SimpleDocumentRelation> getReferencedByDocument() { return referencedByDocument; }
        public DocumentDetail setReferencedByDocument(ArrayList<SimpleDocumentRelation> value) { this.referencedByDocument = value; return this; }
        public ArrayList<SimpleDocumentRelation> getReplacedDocument() { return replacedDocument; }
        public DocumentDetail setReplacedDocument(ArrayList<SimpleDocumentRelation> value) { this.replacedDocument = value; return this; }
        public ArrayList<SimpleDocumentRelation> getReplacedByDocument() { return replacedByDocument; }
        public DocumentDetail setReplacedByDocument(ArrayList<SimpleDocumentRelation> value) { this.replacedByDocument = value; return this; }
        public ArrayList<SimpleDocumentRelation> getExpiredDocument() { return expiredDocument; }
        public DocumentDetail setExpiredDocument(ArrayList<SimpleDocumentRelation> value) { this.expiredDocument = value; return this; }
        public ArrayList<SimpleDocumentRelation> getExpiredByDocument() { return expiredByDocument; }
        public DocumentDetail setExpiredByDocument(ArrayList<SimpleDocumentRelation> value) { this.expiredByDocument = value; return this; }
        public SimpleDocumentRelation getUpdateForDocument() { return updateForDocument; }
        public DocumentDetail setUpdateForDocument(SimpleDocumentRelation value) { this.updateForDocument = value; return this; }
        public Integer getScopeType() { return scopeType; }
        public DocumentDetail setScopeType(Integer value) { this.scopeType = value; return this; }
        public Integer getStepOrder() { return stepOrder; }
        public DocumentDetail setStepOrder(Integer value) { this.stepOrder = value; return this; }
    }

    public static class DocumentSearchResultItem
    {
        public String title = null;
        public String description = null;
        public String owner = null;
        public Integer documentPolicyId = null;
        public Integer updateDocumentId = null;
        public Date effectBeginDate = null;
        public Date effectEndDate = null;
        public Integer issuingAgencyId = null;
        public Integer subjectId = null;
        public String signBy = null;
        public Date signDate = null;
        public Date updatedAt = null;
        public Integer statusId = null;
        public Boolean isInternal = null;
        public String documentNumber = null;
        public String documentCode = null;
        public Boolean isUrgent = null;
        public Integer id = null;
        public String reasonReturn = null;
        public Integer accountId = null;
        public Integer approverId = null;
        @StringLength(500)
        public String updatedBy = null;

        @StringLength(500)
        public String createdBy = null;

        public Boolean isParty = null;
        public Boolean isRevisionRequested = null;
        public Boolean isPrivate = null;
        public Integer departmentId = null;
        public Date publicationDate = null;
        public Integer processStatusId = null;
        public Integer documentTypeId = null;
        public Integer documentGroupId = null;
        public String accountName = null;
        public String acceptAccountName = null;
        public String documentGroupText = null;
        public String processStatusText = null;
        public String documentTypeText = null;
        public String departmentText = null;
        public String statusText = null;
        public String issuingAgencyText = null;
        public String subjectText = null;
        public String comment = null;
        public String submitComment = null;
        public String fullFile = null;
        public String parthFile = null;
        public Boolean isActive = null;
        public Integer stepOrder = null;
        public Integer stepCount = null;
        
        public String getTitle() { return title; }
        public DocumentSearchResultItem setTitle(String value) { this.title = value; return this; }
        public String getDescription() { return description; }
        public DocumentSearchResultItem setDescription(String value) { this.description = value; return this; }
        public String getOwner() { return owner; }
        public DocumentSearchResultItem setOwner(String value) { this.owner = value; return this; }
        public Integer getDocumentPolicyId() { return documentPolicyId; }
        public DocumentSearchResultItem setDocumentPolicyId(Integer value) { this.documentPolicyId = value; return this; }
        public Integer getUpdateDocumentId() { return updateDocumentId; }
        public DocumentSearchResultItem setUpdateDocumentId(Integer value) { this.updateDocumentId = value; return this; }
        public Date getEffectBeginDate() { return effectBeginDate; }
        public DocumentSearchResultItem setEffectBeginDate(Date value) { this.effectBeginDate = value; return this; }
        public Date getEffectEndDate() { return effectEndDate; }
        public DocumentSearchResultItem setEffectEndDate(Date value) { this.effectEndDate = value; return this; }
        public Integer getIssuingAgencyId() { return issuingAgencyId; }
        public DocumentSearchResultItem setIssuingAgencyId(Integer value) { this.issuingAgencyId = value; return this; }
        public Integer getSubjectId() { return subjectId; }
        public DocumentSearchResultItem setSubjectId(Integer value) { this.subjectId = value; return this; }
        public String getSignBy() { return signBy; }
        public DocumentSearchResultItem setSignBy(String value) { this.signBy = value; return this; }
        public Date getSignDate() { return signDate; }
        public DocumentSearchResultItem setSignDate(Date value) { this.signDate = value; return this; }
        public Date getUpdatedAt() { return updatedAt; }
        public DocumentSearchResultItem setUpdatedAt(Date value) { this.updatedAt = value; return this; }
        public Integer getStatusId() { return statusId; }
        public DocumentSearchResultItem setStatusId(Integer value) { this.statusId = value; return this; }
        public Boolean getIsInternal() { return isInternal; }
        public DocumentSearchResultItem setIsInternal(Boolean value) { this.isInternal = value; return this; }
        public String getDocumentNumber() { return documentNumber; }
        public DocumentSearchResultItem setDocumentNumber(String value) { this.documentNumber = value; return this; }
        public String getDocumentCode() { return documentCode; }
        public DocumentSearchResultItem setDocumentCode(String value) { this.documentCode = value; return this; }
        public Boolean getIsUrgent() { return isUrgent; }
        public DocumentSearchResultItem setIsUrgent(Boolean value) { this.isUrgent = value; return this; }
        public Integer getId() { return id; }
        public DocumentSearchResultItem setId(Integer value) { this.id = value; return this; }
        public String getReasonReturn() { return reasonReturn; }
        public DocumentSearchResultItem setReasonReturn(String value) { this.reasonReturn = value; return this; }
        public Integer getAccountId() { return accountId; }
        public DocumentSearchResultItem setAccountId(Integer value) { this.accountId = value; return this; }
        public Integer getApproverId() { return approverId; }
        public DocumentSearchResultItem setApproverId(Integer value) { this.approverId = value; return this; }
        public String getUpdatedBy() { return updatedBy; }
        public DocumentSearchResultItem setUpdatedBy(String value) { this.updatedBy = value; return this; }
        public String getCreatedBy() { return createdBy; }
        public DocumentSearchResultItem setCreatedBy(String value) { this.createdBy = value; return this; }
        public Boolean getIsParty() { return isParty; }
        public DocumentSearchResultItem setIsParty(Boolean value) { this.isParty = value; return this; }
        public Boolean getIsRevisionRequested() { return isRevisionRequested; }
        public DocumentSearchResultItem setIsRevisionRequested(Boolean value) { this.isRevisionRequested = value; return this; }
        public Boolean getIsPrivate() { return isPrivate; }
        public DocumentSearchResultItem setIsPrivate(Boolean value) { this.isPrivate = value; return this; }
        public Integer getDepartmentId() { return departmentId; }
        public DocumentSearchResultItem setDepartmentId(Integer value) { this.departmentId = value; return this; }
        public Date getPublicationDate() { return publicationDate; }
        public DocumentSearchResultItem setPublicationDate(Date value) { this.publicationDate = value; return this; }
        public Integer getProcessStatusId() { return processStatusId; }
        public DocumentSearchResultItem setProcessStatusId(Integer value) { this.processStatusId = value; return this; }
        public Integer getDocumentTypeId() { return documentTypeId; }
        public DocumentSearchResultItem setDocumentTypeId(Integer value) { this.documentTypeId = value; return this; }
        public Integer getDocumentGroupId() { return documentGroupId; }
        public DocumentSearchResultItem setDocumentGroupId(Integer value) { this.documentGroupId = value; return this; }
        public String getAccountName() { return accountName; }
        public DocumentSearchResultItem setAccountName(String value) { this.accountName = value; return this; }
        public String getAcceptAccountName() { return acceptAccountName; }
        public DocumentSearchResultItem setAcceptAccountName(String value) { this.acceptAccountName = value; return this; }
        public String getDocumentGroupText() { return documentGroupText; }
        public DocumentSearchResultItem setDocumentGroupText(String value) { this.documentGroupText = value; return this; }
        public String getProcessStatusText() { return processStatusText; }
        public DocumentSearchResultItem setProcessStatusText(String value) { this.processStatusText = value; return this; }
        public String getDocumentTypeText() { return documentTypeText; }
        public DocumentSearchResultItem setDocumentTypeText(String value) { this.documentTypeText = value; return this; }
        public String getDepartmentText() { return departmentText; }
        public DocumentSearchResultItem setDepartmentText(String value) { this.departmentText = value; return this; }
        public String getStatusText() { return statusText; }
        public DocumentSearchResultItem setStatusText(String value) { this.statusText = value; return this; }
        public String getIssuingAgencyText() { return issuingAgencyText; }
        public DocumentSearchResultItem setIssuingAgencyText(String value) { this.issuingAgencyText = value; return this; }
        public String getSubjectText() { return subjectText; }
        public DocumentSearchResultItem setSubjectText(String value) { this.subjectText = value; return this; }
        public String getComment() { return comment; }
        public DocumentSearchResultItem setComment(String value) { this.comment = value; return this; }
        public String getSubmitComment() { return submitComment; }
        public DocumentSearchResultItem setSubmitComment(String value) { this.submitComment = value; return this; }
        public String getFullFile() { return fullFile; }
        public DocumentSearchResultItem setFullFile(String value) { this.fullFile = value; return this; }
        public String getParthFile() { return parthFile; }
        public DocumentSearchResultItem setParthFile(String value) { this.parthFile = value; return this; }
        public Boolean getIsActive() { return isActive; }
        public DocumentSearchResultItem setIsActive(Boolean value) { this.isActive = value; return this; }
        public Integer getStepOrder() { return stepOrder; }
        public DocumentSearchResultItem setStepOrder(Integer value) { this.stepOrder = value; return this; }
        public Integer getStepCount() { return stepCount; }
        public DocumentSearchResultItem setStepCount(Integer value) { this.stepCount = value; return this; }
    }

    public static class UploadedFileAttach extends UploadedFileModel
    {
        public String fileType = null;
        public Integer subDocumentId = null;
        public Integer stepId = null;
        
        public String getFileType() { return fileType; }
        public UploadedFileAttach setFileType(String value) { this.fileType = value; return this; }
        public Integer getSubDocumentId() { return subDocumentId; }
        public UploadedFileAttach setSubDocumentId(Integer value) { this.subDocumentId = value; return this; }
        public Integer getStepId() { return stepId; }
        public UploadedFileAttach setStepId(Integer value) { this.stepId = value; return this; }
    }

    public static class UploadedFileModel extends BasicUploadedFile
    {
        public Long id = null;
        public AccessType accessType = null;
        public Integer createdBy = null;
        public Date createdDate = null;
        
        public Long getId() { return id; }
        public UploadedFileModel setId(Long value) { this.id = value; return this; }
        public AccessType getAccessType() { return accessType; }
        public UploadedFileModel setAccessType(AccessType value) { this.accessType = value; return this; }
        public Integer getCreatedBy() { return createdBy; }
        public UploadedFileModel setCreatedBy(Integer value) { this.createdBy = value; return this; }
        public Date getCreatedDate() { return createdDate; }
        public UploadedFileModel setCreatedDate(Date value) { this.createdDate = value; return this; }
    }

    public static enum AccessType
    {
        Public,
        Restricted;
    }

    public static class ApproversProfile
    {
        public ArrayList<UserProfile> userProfiles = null;
        public Integer processStatusId = null;
        public String processTitle = null;
        public String actionButtonLabel = null;
        public String processDescription = null;
        public Boolean isApprovalRequired = null;
        public Boolean isFinalStep = null;
        public Integer stepOrder = null;
        
        public ArrayList<UserProfile> getUserProfiles() { return userProfiles; }
        public ApproversProfile setUserProfiles(ArrayList<UserProfile> value) { this.userProfiles = value; return this; }
        public Integer getProcessStatusId() { return processStatusId; }
        public ApproversProfile setProcessStatusId(Integer value) { this.processStatusId = value; return this; }
        public String getProcessTitle() { return processTitle; }
        public ApproversProfile setProcessTitle(String value) { this.processTitle = value; return this; }
        public String getActionButtonLabel() { return actionButtonLabel; }
        public ApproversProfile setActionButtonLabel(String value) { this.actionButtonLabel = value; return this; }
        public String getProcessDescription() { return processDescription; }
        public ApproversProfile setProcessDescription(String value) { this.processDescription = value; return this; }
        public Boolean getIsApprovalRequired() { return isApprovalRequired; }
        public ApproversProfile setIsApprovalRequired(Boolean value) { this.isApprovalRequired = value; return this; }
        public Boolean getIsFinalStep() { return isFinalStep; }
        public ApproversProfile setIsFinalStep(Boolean value) { this.isFinalStep = value; return this; }
        public Integer getStepOrder() { return stepOrder; }
        public ApproversProfile setStepOrder(Integer value) { this.stepOrder = value; return this; }
    }

    public static class UserProfile extends UserLogin
    {
        public Integer id = null;
        public String fullName = null;
        public String email = null;
        public Integer departmentId = null;
        public Integer partyGroupId = null;
        public String avatar = null;
        public String telephone = null;
        public Date birthday = null;
        public Date createdAt = null;
        public Date updatedAt = null;
        public Integer failedLoginCount = null;
        @Ignore()
        public ArrayList<Integer> roles = null;

        public Date lastLoginDate = null;
        
        public Integer getId() { return id; }
        public UserProfile setId(Integer value) { this.id = value; return this; }
        public String getFullName() { return fullName; }
        public UserProfile setFullName(String value) { this.fullName = value; return this; }
        public String getEmail() { return email; }
        public UserProfile setEmail(String value) { this.email = value; return this; }
        public Integer getDepartmentId() { return departmentId; }
        public UserProfile setDepartmentId(Integer value) { this.departmentId = value; return this; }
        public Integer getPartyGroupId() { return partyGroupId; }
        public UserProfile setPartyGroupId(Integer value) { this.partyGroupId = value; return this; }
        public String getAvatar() { return avatar; }
        public UserProfile setAvatar(String value) { this.avatar = value; return this; }
        public String getTelephone() { return telephone; }
        public UserProfile setTelephone(String value) { this.telephone = value; return this; }
        public Date getBirthday() { return birthday; }
        public UserProfile setBirthday(Date value) { this.birthday = value; return this; }
        public Date getCreatedAt() { return createdAt; }
        public UserProfile setCreatedAt(Date value) { this.createdAt = value; return this; }
        public Date getUpdatedAt() { return updatedAt; }
        public UserProfile setUpdatedAt(Date value) { this.updatedAt = value; return this; }
        public Integer getFailedLoginCount() { return failedLoginCount; }
        public UserProfile setFailedLoginCount(Integer value) { this.failedLoginCount = value; return this; }
        public ArrayList<Integer> getRoles() { return roles; }
        public UserProfile setRoles(ArrayList<Integer> value) { this.roles = value; return this; }
        public Date getLastLoginDate() { return lastLoginDate; }
        public UserProfile setLastLoginDate(Date value) { this.lastLoginDate = value; return this; }
    }

    public static class UserLogin
    {
        @Required()
        public String name = null;
        
        public String getName() { return name; }
        public UserLogin setName(String value) { this.name = value; return this; }
    }

    public static class CurrentApprover
    {
        public Integer approverId = null;
        public String status = null;
        public Integer processStatusId = null;
        public String processTitle = null;
        public String actionButtonLabel = null;
        public String processDescription = null;
        public Boolean isApprovalRequired = null;
        public Boolean isFinalStep = null;
        public Integer stepOrder = null;
        
        public Integer getApproverId() { return approverId; }
        public CurrentApprover setApproverId(Integer value) { this.approverId = value; return this; }
        public String getStatus() { return status; }
        public CurrentApprover setStatus(String value) { this.status = value; return this; }
        public Integer getProcessStatusId() { return processStatusId; }
        public CurrentApprover setProcessStatusId(Integer value) { this.processStatusId = value; return this; }
        public String getProcessTitle() { return processTitle; }
        public CurrentApprover setProcessTitle(String value) { this.processTitle = value; return this; }
        public String getActionButtonLabel() { return actionButtonLabel; }
        public CurrentApprover setActionButtonLabel(String value) { this.actionButtonLabel = value; return this; }
        public String getProcessDescription() { return processDescription; }
        public CurrentApprover setProcessDescription(String value) { this.processDescription = value; return this; }
        public Boolean getIsApprovalRequired() { return isApprovalRequired; }
        public CurrentApprover setIsApprovalRequired(Boolean value) { this.isApprovalRequired = value; return this; }
        public Boolean getIsFinalStep() { return isFinalStep; }
        public CurrentApprover setIsFinalStep(Boolean value) { this.isFinalStep = value; return this; }
        public Integer getStepOrder() { return stepOrder; }
        public CurrentApprover setStepOrder(Integer value) { this.stepOrder = value; return this; }
    }

    public static class SimpleDocumentRelation
    {
        public Integer id = null;
        public String title = null;
        public String documentCode = null;
        public Date publicationDate = null;
        
        public Integer getId() { return id; }
        public SimpleDocumentRelation setId(Integer value) { this.id = value; return this; }
        public String getTitle() { return title; }
        public SimpleDocumentRelation setTitle(String value) { this.title = value; return this; }
        public String getDocumentCode() { return documentCode; }
        public SimpleDocumentRelation setDocumentCode(String value) { this.documentCode = value; return this; }
        public Date getPublicationDate() { return publicationDate; }
        public SimpleDocumentRelation setPublicationDate(Date value) { this.publicationDate = value; return this; }
    }

}

Java AdvanceCreateDocument DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /document/advance-create HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	partUploadedFile: 
	{
		id: 0,
		uploadedFile: String,
		subDocumentId: 0,
		stepId: 0,
		code: 0,
		fileName: String,
		filekey: String,
		fileUrl: String,
		checksum: String,
		eTag: String,
		fileSize: 0
	},
	compactUploadedFile: 
	{
		id: 0,
		uploadedFile: String,
		subDocumentId: 0,
		stepId: 0,
		code: 0,
		fileName: String,
		filekey: String,
		fileUrl: String,
		checksum: String,
		eTag: String,
		fileSize: 0
	},
	analysisUploadedFile: 
	{
		id: 0,
		uploadedFile: String,
		subDocumentId: 0,
		stepId: 0,
		code: 0,
		fileName: String,
		filekey: String,
		fileUrl: String,
		checksum: String,
		eTag: String,
		fileSize: 0
	},
	fullUploadedFile: 
	{
		id: 0,
		uploadedFile: String,
		subDocumentId: 0,
		stepId: 0,
		code: 0,
		fileName: String,
		filekey: String,
		fileUrl: String,
		checksum: String,
		eTag: String,
		fileSize: 0
	},
	attachFiles: 
	[
		{
			id: 0,
			uploadedFile: String,
			subDocumentId: 0,
			stepId: 0,
			code: 0,
			fileName: String,
			filekey: String,
			fileUrl: String,
			checksum: String,
			eTag: String,
			fileSize: 0
		}
	],
	basisDocumentId: 
	[
		0
	],
	referenceDocumentId: 
	[
		0
	],
	replacedDocumentId: 
	[
		0
	],
	expiredDocumentId: 
	[
		0
	],
	title: String,
	description: String,
	owner: String,
	documentPolicyId: 0,
	updateDocumentId: 0,
	effectBeginDate: "0001-01-01T00:00:00.0000000+07:06",
	effectEndDate: "0001-01-01T00:00:00.0000000+07:06",
	issuingAgencyId: 0,
	documentTypeId: 0,
	documentGroupId: 0,
	subjectId: 0,
	signBy: String,
	signDate: "0001-01-01T00:00:00.0000000+07:06",
	statusId: 0,
	isInternal: False,
	documentNumber: String,
	documentCode: String,
	isUrgent: False,
	scopeType: 0,
	isActive: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	data: 
	{
		partUploadedFile: 
		{
			fileType: String,
			subDocumentId: 0,
			stepId: 0,
			id: 0,
			accessType: Public,
			createdBy: 0,
			fileName: String,
			filekey: String,
			fileUrl: String,
			checksum: String,
			eTag: String,
			fileSize: 0
		},
		compactUploadedFile: 
		{
			fileType: String,
			subDocumentId: 0,
			stepId: 0,
			id: 0,
			accessType: Public,
			createdBy: 0,
			fileName: String,
			filekey: String,
			fileUrl: String,
			checksum: String,
			eTag: String,
			fileSize: 0
		},
		analysisUploadedFile: 
		{
			fileType: String,
			subDocumentId: 0,
			stepId: 0,
			id: 0,
			accessType: Public,
			createdBy: 0,
			fileName: String,
			filekey: String,
			fileUrl: String,
			checksum: String,
			eTag: String,
			fileSize: 0
		},
		fullUploadedFile: 
		{
			fileType: String,
			subDocumentId: 0,
			stepId: 0,
			id: 0,
			accessType: Public,
			createdBy: 0,
			fileName: String,
			filekey: String,
			fileUrl: String,
			checksum: String,
			eTag: String,
			fileSize: 0
		},
		nextApprover: 
		{
			userProfiles: 
			[
				{
					id: 0,
					fullName: String,
					email: String,
					departmentId: 0,
					partyGroupId: 0,
					avatar: String,
					telephone: String,
					birthday: "0001-01-01T00:00:00.0000000+07:06",
					createdAt: "0001-01-01T00:00:00.0000000+07:06",
					updatedAt: "0001-01-01T00:00:00.0000000+07:06",
					failedLoginCount: 0,
					roles: 
					[
						0
					],
					lastLoginDate: "0001-01-01T00:00:00.0000000+07:06",
					name: String
				}
			],
			processStatusId: 0,
			processTitle: String,
			actionButtonLabel: String,
			processDescription: String,
			isApprovalRequired: False,
			isFinalStep: False,
			stepOrder: 0
		},
		currentApprover: 
		{
			approverId: 0,
			status: String,
			processStatusId: 0,
			processTitle: String,
			actionButtonLabel: String,
			processDescription: String,
			isApprovalRequired: False,
			isFinalStep: False,
			stepOrder: 0
		},
		attachFiles: 
		[
			{
				fileType: String,
				subDocumentId: 0,
				stepId: 0,
				id: 0,
				accessType: Public,
				createdBy: 0,
				fileName: String,
				filekey: String,
				fileUrl: String,
				checksum: String,
				eTag: String,
				fileSize: 0
			}
		],
		hasReadPermission: False,
		canGrantReadPermission: False,
		basisDocument: 
		[
			{
				id: 0,
				title: String,
				documentCode: String,
				publicationDate: "0001-01-01T00:00:00.0000000+07:06"
			}
		],
		basisForDocument: 
		[
			{
				id: 0,
				title: String,
				documentCode: String,
				publicationDate: "0001-01-01T00:00:00.0000000+07:06"
			}
		],
		mainDocument: 
		{
			id: 0,
			title: String,
			documentCode: String,
			publicationDate: "0001-01-01T00:00:00.0000000+07:06"
		},
		referenceDocument: 
		[
			{
				id: 0,
				title: String,
				documentCode: String,
				publicationDate: "0001-01-01T00:00:00.0000000+07:06"
			}
		],
		referencedByDocument: 
		[
			{
				id: 0,
				title: String,
				documentCode: String,
				publicationDate: "0001-01-01T00:00:00.0000000+07:06"
			}
		],
		replacedDocument: 
		[
			{
				id: 0,
				title: String,
				documentCode: String,
				publicationDate: "0001-01-01T00:00:00.0000000+07:06"
			}
		],
		replacedByDocument: 
		[
			{
				id: 0,
				title: String,
				documentCode: String,
				publicationDate: "0001-01-01T00:00:00.0000000+07:06"
			}
		],
		expiredDocument: 
		[
			{
				id: 0,
				title: String,
				documentCode: String,
				publicationDate: "0001-01-01T00:00:00.0000000+07:06"
			}
		],
		expiredByDocument: 
		[
			{
				id: 0,
				title: String,
				documentCode: String,
				publicationDate: "0001-01-01T00:00:00.0000000+07:06"
			}
		],
		updateForDocument: 
		{
			id: 0,
			title: String,
			documentCode: String,
			publicationDate: "0001-01-01T00:00:00.0000000+07:06"
		},
		scopeType: 0,
		stepOrder: 0,
		title: String,
		description: String,
		owner: String,
		documentPolicyId: 0,
		updateDocumentId: 0,
		effectBeginDate: "0001-01-01T00:00:00.0000000+07:06",
		effectEndDate: "0001-01-01T00:00:00.0000000+07:06",
		issuingAgencyId: 0,
		subjectId: 0,
		signBy: String,
		signDate: "0001-01-01T00:00:00.0000000+07:06",
		updatedAt: "0001-01-01T00:00:00.0000000+07:06",
		statusId: 0,
		isInternal: False,
		documentNumber: String,
		documentCode: String,
		isUrgent: False,
		id: 0,
		reasonReturn: String,
		accountId: 0,
		approverId: 0,
		updatedBy: String,
		createdBy: String,
		isParty: False,
		isRevisionRequested: False,
		isPrivate: False,
		departmentId: 0,
		publicationDate: "0001-01-01T00:00:00.0000000+07:06",
		processStatusId: 0,
		documentTypeId: 0,
		documentGroupId: 0,
		accountName: String,
		acceptAccountName: String,
		documentGroupText: String,
		processStatusText: String,
		documentTypeText: String,
		departmentText: String,
		statusText: String,
		issuingAgencyText: String,
		subjectText: String,
		comment: String,
		submitComment: String,
		fullFile: String,
		parthFile: String,
		isActive: False,
		stepOrder: 0,
		stepCount: 0
	},
	code: 0,
	message: String
}