public interface DocumentService extends Service
Modifier and Type | Interface and Description |
---|---|
static class |
DocumentService.AuditEvent
Audit events.
|
Modifier and Type | Field and Description |
---|---|
static String |
COMP_ID
Name for SapCompId.
|
static String |
COMP_TYPE
Name for SapCompType.
|
static String |
IXOS_ANNO
Element name of IXOS annotations.
|
static String |
NEEDED_COMP_ID
Value for SapCompId.
|
static String |
NEEDED_COMP_TYPE
Value for SapCompType.
|
static String |
NOTES_NAME
Filename for SAP notes.
|
Modifier and Type | Method and Description |
---|---|
DocumentId |
addDocument(List<FieldResultBean> properties,
com.saperion.rmi.SaContentStream[] content,
String comment,
String ddcName,
String acls)
Adds a new document to the archive.
|
DocumentId |
addDocument(List<FieldResultBean> properties,
com.saperion.rmi.SaContentStream[] content,
String comment,
String ddcName,
String acls,
Map<String,DocumentVariable> variables)
Adds a new document to the archive.
|
DocumentId |
addDocument(Map<String,Object> properties,
com.saperion.bean.ContentStream[] content,
String comment,
String ddcName,
String acls,
Map<String,DocumentVariable> variables)
Adds a new document to the archive.
|
DocumentId |
addDocument(Properties properties,
com.saperion.rmi.SaContentStream[] content,
String comment,
String ddcName,
String acls)
Deprecated.
|
void |
checkoutDocument(DocumentId id)
Checkout a document.
|
DocumentId |
createLookupItem(List<FieldResultBean> properties,
String ddcName)
Create a new lookup entry.
|
boolean |
deleteDocument(DocumentId id)
Delete a document.
|
boolean |
deleteDocument(DocumentId id,
boolean finalDelete)
Delete a document.
|
void |
discardCheckout(DocumentId id)
Discards checkout of a document.
|
ResultAccessData |
getAccessData(DocumentId id)
Retrieves the access data for the specified document.
|
ResultAccessData |
getAccessData(String revisionId)
Retrieves the access data fot the specified document.
|
String |
getAcl(DocumentId id)
Deprecated.
use
getAclNames(DocumentId) instead. Will be removed in 8.0. |
List<String> |
getAclNames(DocumentId id)
Retrieves the ACLs for the specified document or lookup entry.
|
org.zkoss.image.Image |
getActualImage(DocumentId id)
Reads the actual document image from backend.
|
String |
getAnnotations(String hDoc,
int element)
Deprecated.
use
getAnnotations(String, int, boolean) instead |
String |
getAnnotations(String hDoc,
int element,
boolean currentRevision)
Retrieves the annotations of a document.
|
DocumentArchiveMetaInfo |
getArchiveMetaInfo(DocumentId documentId,
boolean currentRevision)
Retrieves the meta information of a document that is stored on the archive.
|
DocumentArchiveMetaInfo |
getArchiveMetaInfo(DocumentId documentId,
boolean currentRevision,
boolean previewMode)
Retrieves the meta information of a document that is stored on the archive.
|
ResultProperties |
getDocumentInfo(DocumentId id)
Reads the document properties.
|
ResultProperties |
getDocumentInfo(DocumentId id,
boolean isDeleted)
Reads the document properties.
|
com.saperion.intf.SaPropertyValue[] |
getDocumentMetadataFromArchive(DocumentId id,
boolean currentRevision)
Returns the metadata of the document as read from the archive.
|
DocumentVersionInfo |
getDocumentVersion(String versionId)
Returns the metadata of the specified version.
|
List<String> |
getDocumentVersionIds(DocumentId id)
Returns a list of all version IDs for the specified document.
|
List<DocumentVersionInfo> |
getDocumentVersions(DocumentId id)
Retrieves information about a document's versions.
|
List<DocumentVersionInfo> |
getDocumentVersions(String ddcName,
String objectId)
Retrieves information about a document's versions.
|
long |
getElementSize(String hDoc,
int element)
Retrieves the size of the specified element (in bytes).
|
Map<Integer,Long> |
getElementSizes(String hDoc,
List<Integer> elementsWithoutSize)
Retrieves a map with the sizes (in bytes) of elements for a given hDoc.
|
Set<Map.Entry<String,String>> |
getFullTextFields(String ddcName,
List<String> fullTextFields,
String hdoc)
Fetches values of Full text columns
|
DocumentImageInfo |
getImageInfo(DocumentId id)
Reads the document image informations from backend.
|
String |
getIXOSAnnotation(String hdoc)
Reads the IXOS annotation for this document.
|
ResultLockData |
getLockData(DocumentId id)
Returns the lock data for the specified document.
|
ResultLockData |
getLockData(DocumentId id,
boolean isDeleted)
Returns the lock data for the specified document.
|
ResultAccessData |
getLookupEntryAccessData(DocumentId id)
Retrieves the access data for the specified lookup table entry.
|
int |
getNextCounterValue(String ddcName,
String fieldName,
String dbFieldName)
Returns the next possible value for a document counter field.
|
String |
getNotesContent(String hDoc)
Reads notes element.
|
PageList |
getPageList(String hDoc,
int element,
boolean currentRevision) |
InputStream |
getReleasedStream(String hDoc,
int element,
boolean currentRevision)
Retrieves the content of a document.
|
String |
getReleaseHdoc(String hDoc)
Gets the last released hdoc.
|
List<com.saperion.connector.renditions.Rendition> |
getRenderedDocument(DocumentId documentId,
com.saperion.connector.formats.TargetFormat format,
boolean currentRevision)
Renders the specified document to the target format.
|
ResultProperties |
getRevisionInfo(DocumentId id)
Reads the properties of the specified revision.
|
Set<DocumentId> |
getSessionLocks()
Returns a set of document IDs that are locked by this session.
|
InputStream |
getStream(String hDoc,
int element)
Retrieves the content of a document.
|
InputStream |
getStream(String hDoc,
int element,
boolean currentRevision)
Retrieves the content of a document.
|
InputStream |
getStream(String hDoc,
int element,
boolean currentRevision,
long start,
long size)
Retrieves the content of a document.
|
BufferedImage |
getThumbnail(DocumentId id,
int height,
int width,
boolean color)
Retrieves a thumbnail for the specified document or null if no thumbnail is available.
|
String |
getVariable(Properties variables,
String key)
Reads the variable with the given case insensitive name.
|
boolean |
hasBlackmarkers(DocumentId docId)
Checks for blackmarkers.
|
boolean |
hasVariable(Properties variables,
String key)
Checks, if the variable with the given case insensitive name exists.
|
boolean |
lockDocument(DocumentId id)
Lock document.
|
void |
releaseDocument(DocumentId id,
String comment)
Release a document.
|
void |
removeIXOSAnno(DocumentId docId)
Remove the IXOS annotation from content list.
|
String |
resolveLatestHdoc(String oldHdoc)
Deprecated.
use
resolveLatestRevision(String) instead. |
String |
resolveLatestRevision(String oldHdoc)
Resolve latest revision for the given hdoc.
|
com.saperion.bean.SapDocInfo |
resolveSapURL(String url)
Resolves the given SAP URL and returns the SapDocInfo.
|
void |
setAcl(DocumentId id,
String acl,
String comment)
Deprecated.
use
setAclNames(DocumentId, List, String) instead. Will be removed in 8.0. |
void |
setAclNames(DocumentId id,
List<String> acls,
String comment)
Sets the ACL for the specified document or lookup table entry.
|
void |
setAnnotations(String hDoc,
int element,
String annotations)
Sets the annotations of a document.
|
void |
setDocumentRead(DocumentId id)
Sets the specified document's state to 'read' without creating a new revision.
|
void |
setDocumentUnread(DocumentId id)
Sets the specified document's state to 'unread' without creating a new revision.
|
void |
setNotesContent(String hDoc,
String ddc,
String content)
Writes the notes element.
|
boolean |
unlockDocument(DocumentId id)
Unlock document.
|
DocumentId |
updateDocument(DocumentId docId,
DataToUpdate data,
UpdateSettings settings)
Updates the document identfied by docId using the specified data and settings.
|
com.saperion.intf.SaSaveInfo |
updateDocument(List<FieldResultBean> properties,
com.saperion.bean.ContentStream[] content,
String comment,
DocumentId docId,
boolean checkin,
boolean lookup,
int selectedImage)
Deprecated.
|
com.saperion.intf.SaSaveInfo |
updateDocument(Properties properties,
com.saperion.bean.ContentStream[] content,
String comment,
DocumentId docId,
boolean checkin,
boolean lookup,
int selectedImage)
Deprecated.
|
void |
updateLookupItem(String sysRowId,
List<FieldResultBean> properties,
String ddcName)
Update a lookup entry.
|
void |
updateLookupItem(String sysRowId,
List<FieldResultBean> properties,
String ddcName,
boolean isDeleted)
Update a lookup entry.
|
void |
writeAuditEvent(String hdoc,
DocumentService.AuditEvent event,
String remark)
Write audit event.
|
static final String COMP_ID
static final String NEEDED_COMP_ID
static final String COMP_TYPE
static final String NEEDED_COMP_TYPE
static final String NOTES_NAME
static final String IXOS_ANNO
InputStream getReleasedStream(String hDoc, int element, boolean currentRevision) throws BinaryUnavailableException, AuthenticationException
If the release feature is configured, and the logged in user doesn't have write permissions on the Document the last released document is returned, otherwise the current revision content stream is returned.
hDoc
- document HDOCelement
- sub documentcurrentRevision
- the current revisionBinaryUnavailableException
- when the binary content could not be accessed.AuthenticationException
- when the user is not authenticatedInputStream getStream(String hDoc, int element) throws BinaryUnavailableException, AuthenticationException
hDoc
- document HDOCelement
- sub documentBinaryUnavailableException
- when the binary content could not be accessed.AuthenticationException
- when the user is not authenticatedInputStream getStream(String hDoc, int element, boolean currentRevision) throws BinaryUnavailableException, AuthenticationException
hDoc
- document HDOCelement
- sub documentcurrentRevision
- currentRevisionBinaryUnavailableException
- when the binary content could not be accessed.AuthenticationException
- when the user is not authenticatedInputStream getStream(String hDoc, int element, boolean currentRevision, long start, long size) throws BinaryUnavailableException, AuthenticationException
hDoc
- document HDOCelement
- sub documentcurrentRevision
- currentRevisionstart
- Startbytesize
- StreamsizeBinaryUnavailableException
- when the binary content could not be accessed.AuthenticationException
- when the user is not authenticatedPageList getPageList(String hDoc, int element, boolean currentRevision) throws BinaryUnavailableException, AuthenticationException
hDoc
- document HDOCelement
- sub documentcurrentRevision
- currentRevisionBinaryUnavailableException
- when the binary content could not be accessed.AuthenticationException
- when the user is not authenticatedString getAnnotations(String hDoc, int element, boolean currentRevision) throws AuthenticationException, SystemException
hDoc
- document hDocelement
- document elementcurrentRevision
- currentRevisionAuthenticationException
- if user identification failsSystemException
- in case of common system error@Deprecated String getAnnotations(String hDoc, int element) throws AuthenticationException, SystemException
getAnnotations(String, int, boolean)
insteadhDoc
- document hDocelement
- document elementAuthenticationException
- if user identification failsSystemException
- in case of common system errorvoid setAnnotations(String hDoc, int element, String annotations) throws AuthenticationException, SystemException
hDoc
- document hDocelement
- document elementannotations
- annotations stringAuthenticationException
- if user identification failsSystemException
- in case of common system errorResultAccessData getAccessData(DocumentId id) throws SystemException, AuthenticationException
id
- document idSystemException
- System exceptionAuthenticationException
- Authentication exceptionResultAccessData getLookupEntryAccessData(DocumentId id) throws SystemException, AuthenticationException
id
- the id of the entrySystemException
- system error when getting access dataAuthenticationException
- authentication error when getting access dataResultAccessData getAccessData(String revisionId) throws SystemException, AuthenticationException
revisionId
- document's revision idSystemException
- system exceptionAuthenticationException
- authentication exception@Deprecated String getAcl(DocumentId id) throws SystemException, AuthenticationException
getAclNames(DocumentId)
instead. Will be removed in 8.0.id
- document idSaConstants.ACL_DELIMITER
to get multiple ACLs)SystemException
- System exceptionAuthenticationException
- Authentication exception@Deprecated void setAcl(DocumentId id, String acl, String comment) throws SystemException, AuthenticationException
setAclNames(DocumentId, List, String)
instead. Will be removed in 8.0.id
- document idacl
- ACL string (separated by SaConstants.ACL_DELIMITER
to set multiple ACLs)comment
- revision commentSystemException
- System exceptionAuthenticationException
- Authentication exceptionList<String> getAclNames(DocumentId id) throws SystemException, AuthenticationException
id
- document idSystemException
- System exceptionAuthenticationException
- Authentication exceptionvoid setAclNames(DocumentId id, List<String> acls, String comment) throws SystemException, AuthenticationException
id
- document idacls
- a list of ACL names to set on the specified documentcomment
- revision commentSystemException
- System exceptionAuthenticationException
- Authentication exceptionboolean lockDocument(DocumentId id) throws SystemException, AuthenticationException, DocumentLockException
id
- Document IDDocumentLockException
- lock exceptionAuthenticationException
- authentication exceptionSystemException
- system exceptionboolean unlockDocument(DocumentId id) throws SystemException, AuthenticationException, DocumentLockException
id
- Document IDDocumentLockException
- lock exceptionAuthenticationException
- authentication exceptionSystemException
- system exceptionboolean deleteDocument(DocumentId id) throws SystemException, AuthenticationException, DocumentAccessException
id
- Document idSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentAccessException
- document access exceptionboolean deleteDocument(DocumentId id, boolean finalDelete) throws SystemException, AuthenticationException, DocumentAccessException
id
- Document idfinalDelete
- set to true if the document was already marked as deleted (sysindexstate = 65002) to
avoid checking of document access, which will fail otherwiseSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentAccessException
- document access exception@Deprecated com.saperion.intf.SaSaveInfo updateDocument(List<FieldResultBean> properties, com.saperion.bean.ContentStream[] content, String comment, DocumentId docId, boolean checkin, boolean lookup, int selectedImage) throws SystemException, AuthenticationException, DocumentAccessException
updateDocument(DocumentId, DataToUpdate, UpdateSettings)
insteadproperties
- PropertiesdocId
- Document IDcontent
- Document contentcomment
- revision commentcheckin
- True for checkinlookup
- True for lookup tableselectedImage
- Selected imageSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentAccessException
- document access exception@Deprecated com.saperion.intf.SaSaveInfo updateDocument(Properties properties, com.saperion.bean.ContentStream[] content, String comment, DocumentId docId, boolean checkin, boolean lookup, int selectedImage) throws SystemException, AuthenticationException, DocumentAccessException
updateDocument(DocumentId, DataToUpdate, UpdateSettings)
insteadproperties
- PropertiesdocId
- Document IDcontent
- Document contentcomment
- revision commentcheckin
- True for checkinlookup
- True for lookup tableselectedImage
- Selected imageSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentAccessException
- document access exceptionDocumentId updateDocument(DocumentId docId, DataToUpdate data, UpdateSettings settings) throws SystemException, AuthenticationException, DocumentAccessException
docId
- ID of the document to updatedata
- data to update (content and/or metadata)settings
- setting to use when updatingSystemException
- system error when updatingAuthenticationException
- insufficient rights or logged offDocumentAccessException
- insufficient rights (ACL-based)String getIXOSAnnotation(String hdoc) throws AuthenticationException, SystemException
hdoc
- Document IDAuthenticationException
- AuthenticationExceptionSystemException
- SystemExceptionvoid removeIXOSAnno(DocumentId docId) throws DocumentAccessException, SystemException, AuthenticationException
docId
- Document IDSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentAccessException
- document access exceptionResultLockData getLockData(DocumentId id) throws SystemException, AuthenticationException
id
- document idSystemException
- system exceptionAuthenticationException
- authentication exceptionResultLockData getLockData(DocumentId id, boolean isDeleted) throws SystemException, AuthenticationException
id
- document idisDeleted
- pass true if the document is deleted (sysIndexState = 65002)SystemException
- system exceptionAuthenticationException
- authentication exceptionvoid checkoutDocument(DocumentId id) throws SystemException, AuthenticationException, DocumentAccessException, CheckoutFailedException
id
- Document idSystemException
- System exceptionAuthenticationException
- Authentication exceptionDocumentAccessException
- access exceptionCheckoutFailedException
- thrown when the checkout-operation did not cause an exception but did not
actually checkout the document. Happens on image-files.void releaseDocument(DocumentId id, String comment) throws SystemException, AuthenticationException, DocumentAccessException
id
- Document idcomment
- the revision commentSystemException
- System exceptionAuthenticationException
- Authentication exceptionDocumentAccessException
- access exceptionString getReleaseHdoc(String hDoc) throws AuthenticationException, SystemException
hDoc
- the h docAuthenticationException
- the authentication exceptionSystemException
- the system exceptionvoid discardCheckout(DocumentId id) throws SystemException, AuthenticationException, DocumentAccessException
id
- Document idSystemException
- System exceptionAuthenticationException
- Authentication exceptionDocumentAccessException
- access exceptionResultProperties getDocumentInfo(DocumentId id) throws SystemException, AuthenticationException
id
- Document idSystemException
- System exceptionAuthenticationException
- Authentication exceptionResultProperties getDocumentInfo(DocumentId id, boolean isDeleted) throws SystemException, AuthenticationException
id
- Document idisDeleted
- pass true if the document is deleted (sysIndexState = 65002)SystemException
- System exceptionAuthenticationException
- Authentication exceptionResultProperties getRevisionInfo(DocumentId id) throws SystemException, AuthenticationException, DatabaseException, DocumentIdentificationException
id
- id identifying the revision (revision-id must be set!)SystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exceptionDocumentIdentificationException
- if the id does not contain the revision idList<DocumentVersionInfo> getDocumentVersions(DocumentId id) throws SystemException, AuthenticationException
id
- document idSystemException
- system exceptionAuthenticationException
- authentication exceptionList<String> getDocumentVersionIds(DocumentId id) throws SystemException, AuthenticationException
id
- document IDSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentVersionInfo getDocumentVersion(String versionId) throws DatabaseException, AuthenticationException, SystemException
versionId
- ID of the versionDatabaseException
- database exceptionAuthenticationException
- authentication exceptionSystemException
- system exceptionList<DocumentVersionInfo> getDocumentVersions(String ddcName, String objectId) throws SystemException, AuthenticationException
ddcName
- ddc nameobjectId
- object id of the document (SysRowId)SystemException
- system exceptionAuthenticationException
- authentication exception@Deprecated String resolveLatestHdoc(String oldHdoc) throws com.saperion.exception.SaSystemException, com.saperion.exception.SaAuthenticationException
resolveLatestRevision(String)
instead.oldHdoc
- the old hdoc to lookupcom.saperion.exception.SaSystemException
- system exceptioncom.saperion.exception.SaAuthenticationException
- authentication exceptionString resolveLatestRevision(String oldHdoc) throws SystemException, AuthenticationException
oldHdoc
- the old hdoc to lookupSystemException
- system exceptionAuthenticationException
- authentication exceptionBufferedImage getThumbnail(DocumentId id, int height, int width, boolean color) throws SystemException, AuthenticationException
id
- document idheight
- thumbnail heightwidth
- thumbnail widthcolor
- color optionSystemException
- system exceptionAuthenticationException
- authentication exceptionvoid writeAuditEvent(String hdoc, DocumentService.AuditEvent event, String remark) throws SystemException, AuthenticationException
hdoc
- Document HDOCevent
- Event typeremark
- RemarkSystemException
- system exceptionAuthenticationException
- authentication exceptionSet<DocumentId> getSessionLocks()
DocumentId addDocument(List<FieldResultBean> properties, com.saperion.rmi.SaContentStream[] content, String comment, String ddcName, String acls) throws SystemException, AuthenticationException
properties
- meta datacontent
- contentcomment
- commentddcName
- name of the ddcacls
- semicolon separated string of ACL namesSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentId addDocument(List<FieldResultBean> properties, com.saperion.rmi.SaContentStream[] content, String comment, String ddcName, String acls, Map<String,DocumentVariable> variables) throws SystemException, AuthenticationException
properties
- meta datacontent
- contentcomment
- commentddcName
- name of the ddcacls
- semicolon separated string of ACL namesvariables
- variables to add to the documentSystemException
- system exceptionAuthenticationException
- authentication exception@Deprecated DocumentId addDocument(Properties properties, com.saperion.rmi.SaContentStream[] content, String comment, String ddcName, String acls) throws SystemException, AuthenticationException
addDocument(Map, ContentStream[], String, String, String, Map)
insteadproperties
- meta datacontent
- contentcomment
- commentddcName
- name of the ddcacls
- semicolon separated string of ACL namesSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentId addDocument(Map<String,Object> properties, com.saperion.bean.ContentStream[] content, String comment, String ddcName, String acls, Map<String,DocumentVariable> variables) throws SystemException, AuthenticationException
properties
- meta datacontent
- contentcomment
- commentddcName
- name of the ddcacls
- semicolon separated string of ACL namesvariables
- variables to add to the documentSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentId createLookupItem(List<FieldResultBean> properties, String ddcName) throws SystemException, AuthenticationException
properties
- meta dataddcName
- name of the ddcSystemException
- system exceptionAuthenticationException
- authentication exceptionvoid updateLookupItem(String sysRowId, List<FieldResultBean> properties, String ddcName) throws SystemException, AuthenticationException
sysRowId
- SysRowId of the lookup entryproperties
- meta dataddcName
- name of the ddcSystemException
- system exceptionAuthenticationException
- authentication exceptionvoid updateLookupItem(String sysRowId, List<FieldResultBean> properties, String ddcName, boolean isDeleted) throws SystemException, AuthenticationException
sysRowId
- SysRowId of the lookup entryproperties
- meta dataddcName
- name of the ddcisDeleted
- indicates if the document is deleted or notSystemException
- system exceptionAuthenticationException
- authentication exceptionint getNextCounterValue(String ddcName, String fieldName, String dbFieldName) throws SystemException, AuthenticationException
ddcName
- name of the ddcfieldName
- name of the counter fielddbFieldName
- database name of the counter fieldSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentImageInfo getImageInfo(DocumentId id) throws SystemException, AuthenticationException
id
- Document IdSystemException
- system exceptionAuthenticationException
- authentication exceptionorg.zkoss.image.Image getActualImage(DocumentId id) throws SystemException, AuthenticationException
id
- Document IdSystemException
- system exceptionAuthenticationException
- authentication exceptionString getNotesContent(String hDoc) throws SystemException, AuthenticationException
hDoc
- Document idSystemException
- System exceptionAuthenticationException
- Authentication exceptionvoid setNotesContent(String hDoc, String ddc, String content) throws SystemException, AuthenticationException
hDoc
- Document idddc
- DDC namecontent
- element contentSystemException
- System exceptionAuthenticationException
- Authentication exceptioncom.saperion.bean.SapDocInfo resolveSapURL(String url) throws SystemException, SapViewerUrlException, AuthenticationException
url
- URLSystemException
- System exceptionSapViewerUrlException
- resolving the url failedAuthenticationException
- Authentication exceptionboolean hasVariable(Properties variables, String key)
variables
- Variableskey
- Key nameString getVariable(Properties variables, String key)
variables
- Variableskey
- Key nameMap<Integer,Long> getElementSizes(String hDoc, List<Integer> elementsWithoutSize) throws SystemException, AuthenticationException
hDoc
- hDoc of the documentelementsWithoutSize
- List of elementNumbers for elements without a file size.SystemException
- System exceptionAuthenticationException
- Authentication exceptionlong getElementSize(String hDoc, int element) throws SystemException, AuthenticationException
hDoc
- hDoc of the documentelement
- number of the elementSystemException
- System exceptionAuthenticationException
- Authentication exceptionDocumentArchiveMetaInfo getArchiveMetaInfo(DocumentId documentId, boolean currentRevision) throws AuthenticationException, SystemException
documentId
- The id of the document the information is aboutcurrentRevision
- if true, the latest revision of the document will be retrievedAuthenticationException
- Authentication exceptionSystemException
- System exceptionDocumentArchiveMetaInfo getArchiveMetaInfo(DocumentId documentId, boolean currentRevision, boolean previewMode) throws AuthenticationException, SystemException
documentId
- The id of the document the information is aboutcurrentRevision
- if true, the latest revision of the document will be retrievedpreviewMode
- used to notify the document service that a preview-viewer in a mask
requests the archive meta info (currently not in use)AuthenticationException
- Authentication exceptionSystemException
- System exceptionboolean hasBlackmarkers(DocumentId docId) throws AuthenticationException, SystemException
docId
- The id of the document in questionAuthenticationException
- Authentication exceptionSystemException
- System exceptionList<com.saperion.connector.renditions.Rendition> getRenderedDocument(DocumentId documentId, com.saperion.connector.formats.TargetFormat format, boolean currentRevision) throws SystemException, AuthenticationException, RenderingFailedException
documentId
- the document idformat
- the target formatcurrentRevision
- if true, the current revision of the document will be renderedSystemException
- System exception when renderingAuthenticationException
- authentication exception when renderingRenderingFailedException
- rendering the document failedcom.saperion.intf.SaPropertyValue[] getDocumentMetadataFromArchive(DocumentId id, boolean currentRevision) throws DocumentIdentificationException, SystemException, AuthenticationException, DatabaseException
id
- document idcurrentRevision
- resolve current revision or notDocumentIdentificationException
- revision id not set in document idSystemException
- system exception when loading metadataAuthenticationException
- authentication exception when loading metadataDatabaseException
- ddc exception when loading metadatavoid setDocumentRead(DocumentId id) throws DocumentIdentificationException, SystemException, AuthenticationException
id
- document's IDDocumentIdentificationException
- missing information in IDSystemException
- system error when setting stateAuthenticationException
- authentication error when setting statevoid setDocumentUnread(DocumentId id) throws DocumentIdentificationException, SystemException, AuthenticationException
id
- document's IDDocumentIdentificationException
- missing information in IDSystemException
- system error when setting stateAuthenticationException
- authentication error when setting stateSet<Map.Entry<String,String>> getFullTextFields(String ddcName, List<String> fullTextFields, String hdoc) throws SystemException, AuthenticationException
ddcName
- name of the DDCfullTextFields
- List of Fields which are of Text retrieval type.
Make sure to prefix SaConstants.FULL_TEXT_COLUMN_PREFIX
hdoc
- hdoc of the documentSystemException
AuthenticationException
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.