Class DocVersion
- All Implemented Interfaces:
Serializable
Description: This class describes a document version, a document preview or a signature.
Copyright: Copyright (c) 2002
Organisation: ELO DIgital Office GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringLast access date.protected StringVersion commentprotected StringContent-Type (MIME-Type).protected StringCreate date.protected booleanIndicates whether the version is logically deleted.protected StringDelete date.protected intID of the encryption set.protected StringDocument file extension (without ".")protected FileDataDocument, preview or fulltextContent file content.protected DocVersionThis object provides the content of the fulltext database for the document version.protected StringDocument GUID.protected intDocument IDprotected StringLanguage of the document content.protected StringMD5 hash of the documet file.protected booleanIndicates whether the version is marked as a milestone version.protected intNumber of valid signatures.protected intThe owners user ID.protected StringThe owners user name.protected intStorage path IDprotected int(to be defined)protected StringPhysical pathprotected DocVersionDocument previewprotected StringDeprecated.Use member preview insteadprotected StringRelative file path for external file.protected DocVersionDocument signatureprotected longFile size.protected StringDocument timestampprotected StringTimestamp of this object's ACLs last export by the replication.protected StringLast update date.protected StringResult from the ELODM if the document was uploaded.protected StringURL to up-/downloadprotected StringVersion numberprotected booleanIndicates whether the version is the current work version.Fields inherited from class byps.BValueClass
bypsClient, changedMembers, dbHelper, FLAG_SEALED, flags -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetExt()getGuid()intgetId()getMd5()intintintintDeprecated.getSig()longgetSize()getUrl()inthashCode()booleanbooleanbooleanvoidsetAccessDateIso(String accessDateIso) voidsetComment(String comment) voidsetContentType(String contentType) voidsetCreateDateIso(String createDateIso) voidsetDeleted(boolean deleted) voidsetDeleteDateIso(String deleteDateIso) voidsetEncryptionSet(int encryptionSet) voidvoidsetFileData(FileData fileData) voidsetFulltextContent(DocVersion fulltextContent) voidvoidsetId(int id) voidsetLanguage(String language) voidvoidsetMilestone(boolean milestone) voidsetNbOfValidSignatures(int nbOfValidSignatures) voidsetOwnerId(int ownerId) voidsetOwnerName(String ownerName) voidsetPathId(int pathId) voidsetPathId2(int pathId2) voidsetPhysPath(String physPath) voidsetPreview(DocVersion preview) voidsetPreviewUrl(String previewUrl) Deprecated.voidsetRelativeFilePath(String relativeFilePath) voidsetSig(DocVersion sig) voidsetSize(long size) voidvoidsetTStampSync(String tStampSync) voidsetUpdateDateIso(String updateDateIso) voidsetUploadResult(String uploadResult) voidvoidsetVersion(String version) voidsetWorkVersion(boolean workVersion) toString()Methods inherited from class byps.BValueClass
getBypsClient, getChangedMembers, getDbHelper, isChangedMember, isSealed, seal, seal, setBypsClient, setChangedMember, setChangedMembers, setDbHelper
-
Field Details
-
accessDateIso
Last access date. ClientInfo determines the Timezone.Applies to document version and signature. Is undefined for preview and fulltextContent.
-
comment
Version commentApplies to document version. Is undefined for signature, preview and fulltextContent.
-
createDateIso
Create date. ClientInfo determines the Timezone.Applies to document version and signature. Is undefined for preview and fulltextContent.
-
deleted
protected boolean deletedIndicates whether the version is logically deleted.Applies to document version. Is undefined for signature, preview and fulltextContent.
-
ext
Document file extension (without ".")Applies to document version, signature and preview. Is readonly for fulltextContent.
This value has precedence beforecontentType.- See Also:
-
contentType
Content-Type (MIME-Type).- Since:
- 6.00.095
- See Also:
-
fileData
Document, preview or fulltextContent file content. IfcheckoutDocis called with optionmbSordDocSmallContentand the requested document (version) is small (less than the configured value), this member contains the file data and content type. IfmbPreviewis additionally set,fileDatacontains the content of the preview - REGARDLESS of the size. In case there is no preview,fileDatacontains the data of the document (if it's a small file).Applies to document version, signature and preview.
-
guid
Document GUID.Applies to document version and signature. Is undefined for preview and fulltextContent.
-
id
protected int idDocument IDApplies to document version and signature. Is undefined for preview and fulltextContent.
-
md5
MD5 hash of the documet file.Applies to document version and signature. Is undefined for preview and fulltextContent.
-
milestone
protected boolean milestoneIndicates whether the version is marked as a milestone version.Applies to document version. Is undefined for signature and preview and fulltextContent.
-
ownerId
protected int ownerIdThe owners user ID.Applies to document version. Is undefined for signature and preview and fulltextContent.
-
ownerName
The owners user name. This value is read only (ignored in checkinDoc...).Applies to document version. Is undefined for signature and preview and fulltextContent.
-
pathId
protected int pathIdStorage path IDApplies to document version and signature. Is undefined for preview and fulltextContent.
-
pathId2
protected int pathId2(to be defined)Applies to document version and signature. Is undefined for preview and fulltextContent.
-
physPath
Physical pathApplies to document version and signature. Is undefined for preview and fulltextContent.
Set SordC.mbPhysPath or EditInfoC.mbPhysPath in the member selector passed to checkoutSord or checkoutDoc to read the physical path. -
previewUrl
Deprecated.Use member preview insteadURL to up-/download a document preview.
Applies to document version. Is empty for signature and preview and fulltextContent.
-
sig
Document signatureApplies to document version. Is null for signature and preview and fulltextContent.
-
preview
Document previewApplies to document version. Is null for signature and preview and fulltextContent.
- Since:
- 6.00.087
-
size
protected long sizeFile size. -
tStamp
Document timestampApplies to document version and signature. Is undefined for preview. (Is available for fulltextContent)
The format is JJJJ.MM.DD.hh.mm.ss -
updateDateIso
Last update date. ClientInfo determines the Timezone.Applies to document version and signature. Is undefined for preview and fulltextContent.
-
uploadResult
Result from the ELODM if the document was uploaded.Applies to document version, signature, preview and fulltextContent.
-
url
URL to up-/downloadApplies to document version, signature,preview and fulltextContent.
-
version
Version numberApplies to document version. Is undefined for signature, preview and fulltextContent.
-
workVersion
protected boolean workVersionIndicates whether the version is the current work version.Applies to document version. Is undefined for signature, preview and fulltextContent.
-
encryptionSet
protected int encryptionSetID of the encryption set. It's password is used to encrypt or decrypt the document. It a new document or version should be checked in, this member must be set to Sord.details.encryptionSet before checkinDocBegin is called. When this object is retrieved via IX it is always set to Sord.details.encryptionSet.Applies to document version. Is undefined for signature.
-
fulltextContent
This object provides the content of the fulltext database for the document version. The information is read-only and only available for DocVersion objects that refer to a document version (and not an attachment, preview or signature). Currenly, only the members url, ext, contentType and encryptionSet are valid for a DocVersion object that belongs to fulltext content. Whereby ext is always txt and contentType is always text/plain. A Byte Order Mark preceedes the content data. If the related document version is encrypted, the appropriate encryption password has to be set, before the fulltext information can be downloaded. If the SessionOptionC.DECRYPT_DOCUMENTS is not set, the fulltext information is transmitted encrypted.Applies to document version. Is undefined for signature and preview.
- Since:
- 7.00.020.003
-
deleteDateIso
Delete date. ClientInfo determines the Timezone.Is undefined if isDeleted() returns false.
- Since:
- 9.00.000.000
-
nbOfValidSignatures
protected int nbOfValidSignaturesNumber of valid signatures. This member holds the count of valid signatures in the signature file. It is only valid for a DocVersion object that represents a signature (membersig). A value of zero means, that the signatures are unchecked. A number greater than zero means, that all signatures are valid. In this case the member value is equal to the number of signatures. If at least one signature is invalid, the value is less than zero. The number of invalid signatures is thereby unknown. Client applications are responsible to check signatures. The ELOix does not check signatures.- Since:
- 9.00.016.002
-
relativeFilePath
Relative file path for external file. This member specifies the location of the file relative to a custom path. IfpathIddoes not refer a custom path, this member is empty and ignored inIXServicePortIF.checkinDocEnd(ClientInfo, Sord, SordZ, Document, LockZ).- Since:
- 9.00.030.023
-
tStampSync
Timestamp of this object's ACLs last export by the replication.- Since:
- 9.99.009.001
-
language
Language of the document content. This value is estimated by ELO Textreader when the document is sent for fulltext extraction. SeeTranslateTermC.DEFAULT_LANGUAGESfor a list of language-tags.- Since:
- 21.04.000.001
-
-
Constructor Details
-
DocVersion
public DocVersion() -
DocVersion
-
-
Method Details
-
getRelativeFilePath
-
setRelativeFilePath
-
getAccessDateIso
-
setAccessDateIso
-
getComment
-
setComment
-
getCreateDateIso
-
setCreateDateIso
-
isDeleted
public boolean isDeleted() -
setDeleted
public void setDeleted(boolean deleted) -
getExt
-
setExt
-
getFileData
-
setFileData
-
getGuid
-
setGuid
-
getId
public int getId() -
setId
public void setId(int id) -
getMd5
-
setMd5
-
isMilestone
public boolean isMilestone() -
setMilestone
public void setMilestone(boolean milestone) -
getOwnerId
public int getOwnerId() -
setOwnerId
public void setOwnerId(int ownerId) -
getOwnerName
-
setOwnerName
-
getPathId
public int getPathId() -
setPathId
public void setPathId(int pathId) -
getPathId2
public int getPathId2() -
setPathId2
public void setPathId2(int pathId2) -
getPhysPath
-
setPhysPath
-
getPreviewUrl
Deprecated. -
setPreviewUrl
Deprecated. -
getSig
-
setSig
-
getSize
public long getSize() -
setSize
public void setSize(long size) -
getTStamp
-
setTStamp
-
getUpdateDateIso
-
setUpdateDateIso
-
getUploadResult
-
setUploadResult
-
getUrl
-
setUrl
-
getVersion
-
setVersion
-
isWorkVersion
public boolean isWorkVersion() -
setWorkVersion
public void setWorkVersion(boolean workVersion) -
getEncryptionSet
public int getEncryptionSet() -
setEncryptionSet
public void setEncryptionSet(int encryptionSet) -
getPreview
-
setPreview
-
getContentType
-
setContentType
-
getFulltextContent
-
setFulltextContent
-
getDeleteDateIso
-
setDeleteDateIso
-
getNbOfValidSignatures
public int getNbOfValidSignatures() -
setNbOfValidSignatures
public void setNbOfValidSignatures(int nbOfValidSignatures) -
getTStampSync
-
setTStampSync
-
setLanguage
-
getLanguage
-
toString
-
equals
-
hashCode
public int hashCode()
-