public interface DMSDocForm extends DMSForm
Modifier and Type | Field and Description |
---|---|
static int |
IN
Deprecated.
since ep10, will be removed in ep11
|
static int |
LOCKED
Deprecated.
since ep10, will be removed in ep11
|
static int |
OUT
Deprecated.
since ep10, will be removed in ep11
|
emptyKeys
Modifier and Type | Method and Description |
---|---|
void |
checkIn(User user,
byte[] bytes)
Deprecated.
since ep10, will be removed in ep11
Use
DMS.setContent(DMSDocForm, byte[]) instead |
void |
checkIn(User user,
InputStream is)
Deprecated.
since ep10, will be removed in ep11
Use
DMS.setContent(DMSDocForm, InputStream) instead |
void |
checkIn(User user,
InputStream is,
long length,
byte[] digest)
Deprecated.
since ep10, will be removed in ep11
Use
DMS.setContent(DMSDocForm, InputStream, long, byte[]) instead |
String |
checkOut(User user)
Deprecated.
since ep10, will be removed in ep11
|
String |
getAlgorithm()
Returns the hashing algorithm, for example 'SHA-256'.
|
byte[] |
getContent()
Returns the content of this document
|
InputStream |
getContentAsStream()
Returns an InputStream to the content of this document
|
String |
getExtension()
Returns the extension of this document (e.g.
|
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)
|
byte[] |
getMessageDigest()
Returns the message digest of the content of this document (
Settings.getMessageDigest() will be used by the system
to calculate it). |
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) |
long |
getSize()
Returns the size of the documents content (in bytes)
|
int |
getStatus()
Deprecated.
since ep10, will be removed in ep11
Use
isLocked() instead, all other states are not supported anymore |
User |
getUsedBy()
Get the user who has locked the document.
|
boolean |
hasAttributes()
Returns if this object has any meta data
|
boolean |
isLocked()
Returns true if this document is locked, false otherwise
|
void |
lock(User user)
Deprecated.
since ep10, will be removed in ep11
Use
DMS.lock(DMSDocForm) instead |
void |
setExtension(String extension)
Set the extension of this document.
|
void |
undoCheckOut()
Deprecated.
since ep10, will be removed in ep11
|
void |
unlock()
Deprecated.
since ep10, will be removed in ep11
Use
DMS.unlock(DMSDocForm) instead |
getField, getFieldType, getFormType, getSubforms, hasField, setActivityContext, setActivityContext, setField
attachNote, getChangedAt, getChangedBy, getCreatedAt, getCreatedBy, getDefaultOrgUnit, getName, getPermissionList, getTypeName, hasAttachedNotes, hasVersions, listAttachedNotes, listVersions, makeCopy, makeVersion, removeNote, setName, setPermissionList
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, dbFields, getKey, getKeys, getLocalClassName, getLocalObjectName, getOid, getStore, getTableName, getValue, isFilled, isValid, setFilled, setOid, setOid, setStore, toListString
getTransactionId, increaseTransactionId, setTransactionId
getVersionId, setVersionId
@Deprecated static final int IN
@Deprecated static final int OUT
@Deprecated static final int LOCKED
byte[] getContent()
InputStream getContentAsStream()
String getExtension()
void setExtension(String extension)
long getSize()
byte[] getMessageDigest()
Settings.getMessageDigest()
will be used by the system
to calculate it).String getMessageDigestAsString()
Settings.getMessageDigest()
will be used by the system
to calculate it)String getAlgorithm()
@Deprecated int getStatus()
isLocked()
instead, all other states are not supported anymoreboolean hasAttributes()
@Deprecated void checkIn(User user, InputStream is)
DMS.setContent(DMSDocForm, InputStream)
insteaduser
- the user who performs this actionis
- an inputstream to the content of the document@Deprecated void checkIn(User user, InputStream is, long length, byte[] digest)
DMS.setContent(DMSDocForm, InputStream, long, byte[])
insteaduser
- 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@Deprecated void checkIn(User user, byte[] bytes)
DMS.setContent(DMSDocForm, byte[])
insteaduser
- the user who performs this actionbytes
- a byte array holding the content of the document@Deprecated String checkOut(User user)
user
- the user who performs this action@Deprecated void undoCheckOut()
@Deprecated void lock(User user)
DMS.lock(DMSDocForm)
insteaduser
- the user who performs this action@Deprecated void unlock()
DMS.unlock(DMSDocForm)
insteadboolean isLocked()
User getUsedBy()
String getFullName()
@enterprise 10.0.38934 Copyright © 2001-2024 Groiss Informatics GmbH. All Rights Reserved.