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 String
Last access date.protected String
Version commentprotected String
Content-Type (MIME-Type).protected String
Create date.protected boolean
Indicates whether the version is logically deleted.protected String
Delete date.protected int
ID of the encryption set.protected String
Document file extension (without ".")protected FileData
Document, preview or fulltextContent file content.protected DocVersion
This object provides the content of the fulltext database for the document version.protected String
Document GUID.protected int
Document IDprotected String
Language of the document content.protected String
MD5 hash of the documet file.protected boolean
Indicates whether the version is marked as a milestone version.protected int
Number of valid signatures.protected int
The owners user ID.protected String
The owners user name.protected int
Storage path IDprotected int
(to be defined)protected String
Physical pathprotected DocVersion
Document previewprotected String
Deprecated.Use member preview insteadprotected String
Relative file path for external file.protected DocVersion
Document signatureprotected long
File size.protected String
Document timestampprotected String
Timestamp of this object's ACLs last export by the replication.protected String
Last update date.protected String
Result from the ELODM if the document was uploaded.protected String
URL to up-/downloadprotected String
Version numberprotected boolean
Indicates 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 TypeMethodDescriptionboolean
int
getExt()
getGuid()
int
getId()
getMd5()
int
int
int
int
Deprecated.getSig()
long
getSize()
getUrl()
int
hashCode()
boolean
boolean
boolean
void
setAccessDateIso
(String accessDateIso) void
setComment
(String comment) void
setContentType
(String contentType) void
setCreateDateIso
(String createDateIso) void
setDeleted
(boolean deleted) void
setDeleteDateIso
(String deleteDateIso) void
setEncryptionSet
(int encryptionSet) void
void
setFileData
(FileData fileData) void
setFulltextContent
(DocVersion fulltextContent) void
void
setId
(int id) void
setLanguage
(String language) void
void
setMilestone
(boolean milestone) void
setNbOfValidSignatures
(int nbOfValidSignatures) void
setOwnerId
(int ownerId) void
setOwnerName
(String ownerName) void
setPathId
(int pathId) void
setPathId2
(int pathId2) void
setPhysPath
(String physPath) void
setPreview
(DocVersion preview) void
setPreviewUrl
(String previewUrl) Deprecated.void
setRelativeFilePath
(String relativeFilePath) void
setSig
(DocVersion sig) void
setSize
(long size) void
void
setTStampSync
(String tStampSync) void
setUpdateDateIso
(String updateDateIso) void
setUploadResult
(String uploadResult) void
void
setVersion
(String version) void
setWorkVersion
(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. IfcheckoutDoc
is called with optionmbSordDocSmallContent
and the requested document (version) is small (less than the configured value), this member contains the file data and content type. IfmbPreview
is additionally set,fileData
contains the content of the preview - REGARDLESS of the size. In case there is no preview,fileData
contains 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. IfpathId
does 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_LANGUAGES
for 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()
-