Package com.ads.api.beans.common
Class Document
java.lang.Object
com.ads.api.beans.common.Document
This class provides some beans control methods related to Documents and its
related Audit Specifications.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the auditHistory.Returns the documentApprovedBy.Returns the documentApprovedDate.intReturns documentId.Returns the documentIntendedPurpose.Returns the documentLink, where the Document can be found.Returns the documentName.Returns the documentObject.Returns the DocumentOwner.Returns the documentReference.Returns the documentReferenceNumber.Returns the documentStatus.Returns the Type of the Document.Returns the path type of the given file.i.e ABSOLUTE OR RELATIVEReturns the userData.getUserData(String key) Returns the userData.booleanReturns the boolean value of approvalRequired.setApprovalRequired(boolean approvalRequired) Method sets the approvalRequired as specified.setAuditHistory(AuditHistory auditHistory) Method sets the documentStatus as specified.setDocumentApprovedBy(String documentApprovedBy) Method sets the documentApprovedBy as specified.setDocumentApprovedDate(Date documentApprovedDate) Method sets the documentApprovedDate as specified.setDocumentId(int documentId) Method to set the documentId as specified.setDocumentIntendedPurpose(String documentIntendedPurpose) Sets the documentIntendedPurpose as specified.setDocumentLink(String documentLink) Sets the documentLink as specified.setDocumentName(String documentName) Method sets the documentName as specified.setDocumentObject(String documentObject) Method sets the documentObject as specified.setDocumentOwner(String documentOwner) Method sets the documentOwner as specified.setDocumentReference(String documentReference) Method sets the documentReference as specified.setDocumentReferenceNumber(String documentReferenceNumber) Method sets the documentReferenceNumber as specified.setDocumentStatus(String documentStatus) Method sets the documentStatus as specified.setDocumentType(String documentType) Method sets the type of the Document.voidsetFilePathType(APIConstants.FilePathType filePathType) Method sets the path type for the specified file.setUserData(String key, String val) Method sets the userData as specified.setUserData(HashMap<String, String> userData) Method sets the userData as specified.
-
Constructor Details
-
Document
public Document()
-
-
Method Details
-
getDocumentLink
Returns the documentLink, where the Document can be found.- Returns:
- String
-
setDocumentLink
Sets the documentLink as specified.- Parameters:
documentLink- String- Returns:
- Document: Returns the updated document with the currently set document link
-
getDocumentName
Returns the documentName.- Returns:
- documentName String
-
setDocumentName
Method sets the documentName as specified.- Parameters:
documentName- String- Returns:
-
getDocumentType
Returns the Type of the Document.- Returns:
- documentType String
-
setDocumentType
Method sets the type of the Document.- Parameters:
documentType- String- Returns:
-
getDocumentIntendedPurpose
Returns the documentIntendedPurpose.- Returns:
- documentIntendedPurpose String
-
setDocumentIntendedPurpose
Sets the documentIntendedPurpose as specified.- Parameters:
documentIntendedPurpose- String- Returns:
-
getDocumentOwner
Returns the DocumentOwner.- Returns:
- documentOwner String
-
setDocumentOwner
Method sets the documentOwner as specified.- Parameters:
documentOwner- String- Returns:
-
getDocumentId
public int getDocumentId()Returns documentId.- Returns:
- documentId int
-
setDocumentId
Method to set the documentId as specified.- Parameters:
documentId- int- Returns:
-
getDocumentObject
Returns the documentObject.- Returns:
- documentObject String
-
setDocumentObject
Method sets the documentObject as specified.- Parameters:
documentObject- String- Returns:
-
getDocumentReference
Returns the documentReference.- Returns:
- documentReference String
-
setDocumentReference
Method sets the documentReference as specified.- Parameters:
documentReference- String- Returns:
-
getDocumentReferenceNumber
Returns the documentReferenceNumber.- Returns:
- documentReferenceNumber String
-
setDocumentReferenceNumber
Method sets the documentReferenceNumber as specified.- Parameters:
documentReferenceNumber- String- Returns:
-
isApprovalRequired
public boolean isApprovalRequired()Returns the boolean value of approvalRequired.- Returns:
- approvalRequired boolean
-
setApprovalRequired
Method sets the approvalRequired as specified.- Parameters:
approvalRequired- boolean- Returns:
-
getDocumentApprovedBy
Returns the documentApprovedBy.- Returns:
- documentApprovedBy String
-
setDocumentApprovedBy
Method sets the documentApprovedBy as specified.- Parameters:
documentApprovedBy- String- Returns:
-
getDocumentApprovedDate
Returns the documentApprovedDate.- Returns:
- documentApprovedDate Date
-
setDocumentApprovedDate
Method sets the documentApprovedDate as specified.- Parameters:
documentApprovedDate- Date- Returns:
-
getDocumentStatus
Returns the documentStatus.- Returns:
- documentStatus String
-
setDocumentStatus
Method sets the documentStatus as specified.- Parameters:
documentStatus- String- Returns:
-
getAuditHistory
Returns the auditHistory.- Returns:
- auditHistory AuditHistory
-
setAuditHistory
Method sets the documentStatus as specified.- Parameters:
auditHistory- AuditHistory- Returns:
-
getUserData
Returns the userData.- Returns:
- userData HashMap
-
setUserData
Method sets the userData as specified.- Parameters:
userData- HashMap- Returns:
-
getUserData
Returns the userData.- Parameters:
key- String- Returns:
- userData String
-
setUserData
Method sets the userData as specified.- Parameters:
key- Stringval- String- Returns:
-
getFilePathType
Returns the path type of the given file.i.e ABSOLUTE OR RELATIVE- Returns:
- Enum - FilePathType
-
setFilePathType
Method sets the path type for the specified file.- Parameters:
filePathType- - Enum : Valid values are ABSOLUTE/RELATIVE
-