tvpl.api

<back to all web services

SearchDocumentPolicyRequest

Requires Authentication
The following routes are available for this service:
GET/DocumentPolicy
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SearchDocumentPolicyRequest extends DocumentPolicyFilter implements IGet
    {
        
    }

    public static class DocumentPolicyFilter extends PagingRequest
    {
        public Integer departmentId = null;
        public String name = null;
        public Boolean isApproved = null;
        
        public Integer getDepartmentId() { return departmentId; }
        public DocumentPolicyFilter setDepartmentId(Integer value) { this.departmentId = value; return this; }
        public String getName() { return name; }
        public DocumentPolicyFilter setName(String value) { this.name = value; return this; }
        public Boolean getIsApproved() { return isApproved; }
        public DocumentPolicyFilter setIsApproved(Boolean value) { this.isApproved = value; return this; }
    }

    public static class PagingRequest
    {
        public Integer page = null;
        public Integer limit = null;
        
        public Integer getPage() { return page; }
        public PagingRequest setPage(Integer value) { this.page = value; return this; }
        public Integer getLimit() { return limit; }
        public PagingRequest setLimit(Integer value) { this.limit = value; return this; }
    }

    public static class DocumentPolicyResponse implements IResponseRequest
    {
        public Integer code = null;
        public String message = null;
        public ArrayList<DocumentPolicy> documentPolicy = null;
        public Integer unapprovedCount = null;
        public Integer totalCount = null;
        
        public Integer getCode() { return code; }
        public DocumentPolicyResponse setCode(Integer value) { this.code = value; return this; }
        public String getMessage() { return message; }
        public DocumentPolicyResponse setMessage(String value) { this.message = value; return this; }
        public ArrayList<DocumentPolicy> getDocumentPolicy() { return documentPolicy; }
        public DocumentPolicyResponse setDocumentPolicy(ArrayList<DocumentPolicy> value) { this.documentPolicy = value; return this; }
        public Integer getUnapprovedCount() { return unapprovedCount; }
        public DocumentPolicyResponse setUnapprovedCount(Integer value) { this.unapprovedCount = value; return this; }
        public Integer getTotalCount() { return totalCount; }
        public DocumentPolicyResponse setTotalCount(Integer value) { this.totalCount = value; return this; }
    }

    public static class DocumentPolicy extends UpdateDocumentPolicyModel
    {
        public Date approvedDate = null;
        public Date estimatedDeadline = null;
        public Boolean isApproved = null;
        @Required()
        public Integer createdBy = null;

        public Date createdDate = null;
        public Date deletedAt = null;
        public Integer deletedBy = null;
        public String approvalComment = null;
        public Boolean isDeleted = null;
        public Date lastUpdateAt = null;
        public Integer updatedBy = null;
        
        public Date getApprovedDate() { return approvedDate; }
        public DocumentPolicy setApprovedDate(Date value) { this.approvedDate = value; return this; }
        public Date getEstimatedDeadline() { return estimatedDeadline; }
        public DocumentPolicy setEstimatedDeadline(Date value) { this.estimatedDeadline = value; return this; }
        public Boolean getIsApproved() { return isApproved; }
        public DocumentPolicy setIsApproved(Boolean value) { this.isApproved = value; return this; }
        public Integer getCreatedBy() { return createdBy; }
        public DocumentPolicy setCreatedBy(Integer value) { this.createdBy = value; return this; }
        public Date getCreatedDate() { return createdDate; }
        public DocumentPolicy setCreatedDate(Date value) { this.createdDate = value; return this; }
        public Date getDeletedAt() { return deletedAt; }
        public DocumentPolicy setDeletedAt(Date value) { this.deletedAt = value; return this; }
        public Integer getDeletedBy() { return deletedBy; }
        public DocumentPolicy setDeletedBy(Integer value) { this.deletedBy = value; return this; }
        public String getApprovalComment() { return approvalComment; }
        public DocumentPolicy setApprovalComment(String value) { this.approvalComment = value; return this; }
        public Boolean getIsDeleted() { return isDeleted; }
        public DocumentPolicy setIsDeleted(Boolean value) { this.isDeleted = value; return this; }
        public Date getLastUpdateAt() { return lastUpdateAt; }
        public DocumentPolicy setLastUpdateAt(Date value) { this.lastUpdateAt = value; return this; }
        public Integer getUpdatedBy() { return updatedBy; }
        public DocumentPolicy setUpdatedBy(Integer value) { this.updatedBy = value; return this; }
    }

    public static class UpdateDocumentPolicyModel
    {
        public Integer id = null;
        public String policyCode = null;
        public String title = null;
        public String documentLink = null;
        public Integer documentGroupId = null;
        public String description = null;
        public Integer approvedBy = null;
        @Required()
        public Integer departmentLeadId = null;

        public Integer departmentCoId = null;
        
        public Integer getId() { return id; }
        public UpdateDocumentPolicyModel setId(Integer value) { this.id = value; return this; }
        public String getPolicyCode() { return policyCode; }
        public UpdateDocumentPolicyModel setPolicyCode(String value) { this.policyCode = value; return this; }
        public String getTitle() { return title; }
        public UpdateDocumentPolicyModel setTitle(String value) { this.title = value; return this; }
        public String getDocumentLink() { return documentLink; }
        public UpdateDocumentPolicyModel setDocumentLink(String value) { this.documentLink = value; return this; }
        public Integer getDocumentGroupId() { return documentGroupId; }
        public UpdateDocumentPolicyModel setDocumentGroupId(Integer value) { this.documentGroupId = value; return this; }
        public String getDescription() { return description; }
        public UpdateDocumentPolicyModel setDescription(String value) { this.description = value; return this; }
        public Integer getApprovedBy() { return approvedBy; }
        public UpdateDocumentPolicyModel setApprovedBy(Integer value) { this.approvedBy = value; return this; }
        public Integer getDepartmentLeadId() { return departmentLeadId; }
        public UpdateDocumentPolicyModel setDepartmentLeadId(Integer value) { this.departmentLeadId = value; return this; }
        public Integer getDepartmentCoId() { return departmentCoId; }
        public UpdateDocumentPolicyModel setDepartmentCoId(Integer value) { this.departmentCoId = value; return this; }
    }

}

Java SearchDocumentPolicyRequest DTOs

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

HTTP + XML

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

GET /DocumentPolicy HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DocumentPolicyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tvpl.api.ServiceModel">
  <Code>0</Code>
  <DocumentPolicy xmlns:d2p1="http://schemas.datacontract.org/2004/07/tvpl.data.Models">
    <d2p1:DocumentPolicy>
      <d2p1:ApprovedBy>0</d2p1:ApprovedBy>
      <d2p1:DepartmentCoId>0</d2p1:DepartmentCoId>
      <d2p1:DepartmentLeadId>0</d2p1:DepartmentLeadId>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:DocumentGroupId>0</d2p1:DocumentGroupId>
      <d2p1:DocumentLink>String</d2p1:DocumentLink>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:PolicyCode>String</d2p1:PolicyCode>
      <d2p1:Title>String</d2p1:Title>
      <d2p1:ApprovalComment>String</d2p1:ApprovalComment>
      <d2p1:ApprovedDate>0001-01-01T00:00:00</d2p1:ApprovedDate>
      <d2p1:CreatedBy>0</d2p1:CreatedBy>
      <d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
      <d2p1:DeletedAt>0001-01-01T00:00:00</d2p1:DeletedAt>
      <d2p1:DeletedBy>0</d2p1:DeletedBy>
      <d2p1:EstimatedDeadline>0001-01-01T00:00:00</d2p1:EstimatedDeadline>
      <d2p1:IsApproved>false</d2p1:IsApproved>
      <d2p1:IsDeleted>false</d2p1:IsDeleted>
      <d2p1:LastUpdateAt>0001-01-01T00:00:00</d2p1:LastUpdateAt>
      <d2p1:UpdatedBy>0</d2p1:UpdatedBy>
    </d2p1:DocumentPolicy>
  </DocumentPolicy>
  <Message>String</Message>
  <TotalCount>0</TotalCount>
  <UnapprovedCount>0</UnapprovedCount>
</DocumentPolicyResponse>