Package com.groiss.dms
Interface DMSDocForm
- All Superinterfaces:
DMSForm
,DMSObject
,HasLog
,HasOwner
,HasPermissionList
,HasVersionId
,KeyValuePair<String,
,String> OptimisticLocking
,Persistent
,Serializable
The base interface for all documents with meta data in @enterprise DMS
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.since ep10static final int
Deprecated, for removal: This API element is subject to removal in a future version.since ep10Fields inherited from interface com.groiss.store.Persistent
emptyKeys
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated, for removal: This API element is subject to removal in a future version.since ep10, useDMS.setContent(DMSDocForm, byte[])
insteadvoid
checkIn
(User user, InputStream is) Deprecated, for removal: This API element is subject to removal in a future version.since ep10, useDMS.setContent(DMSDocForm, InputStream)
insteadvoid
checkIn
(User user, InputStream is, long length, byte[] digest) Deprecated, for removal: This API element is subject to removal in a future version.since ep10, useDMS.setContent(DMSDocForm, InputStream, long, byte[])
insteadReturns the hashing algorithm, for example 'SHA-256'.byte[]
Returns the content of this documentReturns an InputStream to the content of this documentReturns the extension of this document (e.g.Returns the full name of the document which is the name followed by a dot and the extension (if the extension is not empty)byte[]
Returns the message digest of the content of this document (Settings.getMessageDigest()
will be used by the system to calculate it).Returns the message digest of the content of this document as hexadecimal String (Settings.getMessageDigest()
will be used by the system to calculate it)long
getSize()
Returns the size of the documents content (in bytes)int
Deprecated, for removal: This API element is subject to removal in a future version.since ep10, useisLocked()
instead, all other states are not supported anymoreGet the user who has locked the document.boolean
Returns if this object has any meta databoolean
isLocked()
Returns true if this document is locked, false otherwisevoid
Deprecated, for removal: This API element is subject to removal in a future version.since ep10, useDMS.lock(DMSDocForm)
insteadvoid
setExtension
(String extension) Set the extension of this document.void
unlock()
Deprecated, for removal: This API element is subject to removal in a future version.since ep10, useDMS.unlock(DMSDocForm)
insteadMethods inherited from interface com.groiss.dms.DMSForm
getField, getFieldType, getFormType, getSubforms, hasField, setActivityContext, setActivityContext, setField
Methods inherited from interface com.groiss.dms.DMSObject
attachNote, getChangedAt, getChangedBy, getCreatedAt, getCreatedBy, getName, getTypeName, hasAttachedNotes, hasVersions, listAttachedNotes, listVersions, makeCopy, makeVersion, removeNote, setName
Methods inherited from interface com.groiss.org.HasPermissionList
getDefaultOrgUnit, getPermissionList, setPermissionList
Methods inherited from interface com.groiss.org.HasVersionId
getVersionId, setVersionId
Methods inherited from interface com.groiss.store.OptimisticLocking
getTransactionId, increaseTransactionId, setTransactionId
Methods inherited from interface com.groiss.store.Persistent
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, dbFields, getKey, getKeys, getLocalClassName, getLocalObjectName, getOid, getStore, getTableName, getValue, isFilled, isValid, setFilled, setOid, setOid, toListString
-
Field Details
-
IN
Deprecated, for removal: This API element is subject to removal in a future version.since ep10status: the document is checked in.- See Also:
-
LOCKED
Deprecated, for removal: This API element is subject to removal in a future version.since ep10status: the document is locked (i.e. its content may only be changed by the user holding the lock).- See Also:
-
-
Method Details
-
getContent
byte[] getContent()Returns the content of this document -
getContentAsStream
InputStream getContentAsStream()Returns an InputStream to the content of this document -
getExtension
String getExtension()Returns the extension of this document (e.g. 'doc') -
setExtension
Set the extension of this document. -
getSize
long getSize()Returns the size of the documents content (in bytes) -
getMessageDigest
byte[] getMessageDigest()Returns the message digest of the content of this document (Settings.getMessageDigest()
will be used by the system to calculate it). -
getMessageDigestAsString
String getMessageDigestAsString()Returns the message digest of the content of this document as hexadecimal String (Settings.getMessageDigest()
will be used by the system to calculate it) -
getAlgorithm
String getAlgorithm()Returns the hashing algorithm, for example 'SHA-256'. -
getStatus
Deprecated, for removal: This API element is subject to removal in a future version.since ep10, useisLocked()
instead, all other states are not supported anymoreReturns the status of this document -
hasAttributes
boolean hasAttributes()Returns if this object has any meta data -
checkIn
Deprecated, for removal: This API element is subject to removal in a future version.since ep10, useDMS.setContent(DMSDocForm, InputStream)
insteadChecks the document in- Parameters:
user
- the user who performs this actionis
- an InputStream to the content of the document
-
checkIn
@Deprecated(since="10.0", forRemoval=true) void checkIn(User user, InputStream is, long length, byte[] digest) Deprecated, for removal: This API element is subject to removal in a future version.since ep10, useDMS.setContent(DMSDocForm, InputStream, long, byte[])
insteadChecks the document in- Parameters:
user
- the user who performs this actionis
- an InputStream to the content of the documentlength
- the length of the new content in bytesdigest
- the message digest of the new content
-
checkIn
Deprecated, for removal: This API element is subject to removal in a future version.since ep10, useDMS.setContent(DMSDocForm, byte[])
insteadChecks the document in- Parameters:
user
- the user who performs this actionbytes
- a byte array holding the content of the document
-
lock
Deprecated, for removal: This API element is subject to removal in a future version.since ep10, useDMS.lock(DMSDocForm)
insteadLocks this document.- Parameters:
user
- the user who performs this action
-
unlock
Deprecated, for removal: This API element is subject to removal in a future version.since ep10, useDMS.unlock(DMSDocForm)
insteadUnlocks this document. -
isLocked
boolean isLocked()Returns true if this document is locked, false otherwise -
getUsedBy
User getUsedBy()Get the user who has locked the document.- Returns:
- the user or null if not locked
-
getFullName
String getFullName()Returns the full name of the document which is the name followed by a dot and the extension (if the extension is not empty)
-