Package com.saperion.ngc.model.document
Interface DocumentService
- All Superinterfaces:
- Service
- All Known Implementing Classes:
- DocClassicConnectorService
Interface for document services.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionaddDocument(List<FieldResultBean> properties, com.saperion.rmi.SaContentStream[] content, String comment, String ddcName, String acls) Adds a new document to the archive.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.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.addDocument(Properties properties, com.saperion.rmi.SaContentStream[] content, String comment, String ddcName, String acls) Deprecated.voidCheckout a document.voidcheckoutDocument(DocumentId id, boolean withShareBase, int[] shareBaseDocIds) Checkout a document.createLookupItem(List<FieldResultBean> properties, String ddcName) Create a new lookup entry.booleanDelete a document.booleandeleteDocument(DocumentId id, boolean finalDelete) Delete a document.voidDiscards checkout of a document.Retrieves the access data for the specified document.getAccessData(String revisionId) Retrieves the access data fot the specified document.getAcl(DocumentId id) Deprecated.usegetAclNames(DocumentId)instead.Retrieves the ACLs for the specified document or lookup entry.org.zkoss.image.ImageReads the actual document image from backend.Gets all ACL names.getAnnotations(String hDoc, int element) Deprecated.usegetAnnotations(String, int, boolean)insteadgetAnnotations(String hDoc, int element, boolean currentRevision) Retrieves the annotations of a document.getArchiveMetaInfo(DocumentId documentId, boolean currentRevision) Retrieves the meta information of a document that is stored on the archive.getArchiveMetaInfo(DocumentId documentId, boolean currentRevision, boolean previewMode) Retrieves the meta information of a document that is stored on the archive.Reads the document properties.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.getDocumentVersion(String versionId) Returns the metadata of the specified version.Returns a list of all version IDs for the specified document.Retrieves information about a document's versions.getDocumentVersions(String ddcName, String objectId) Retrieves information about a document's versions.longgetElementSize(String hDoc, int element) Retrieves the size of the specified element (in bytes).getElementSizes(String hDoc, List<Integer> elementsWithoutSize) Retrieves a map with the sizes (in bytes) of elements for a given hDoc.getFullTextFields(String ddcName, List<String> fullTextFields, String hdoc) Fetches values of Full text columnsReads the document image informations from backend.getIXOSAnnotation(String hdoc) Reads the IXOS annotation for this document.Returns the lock data for the specified document.getLockData(DocumentId id, boolean isDeleted) Returns the lock data for the specified document.Retrieves the access data for the specified lookup table entry.intgetNextCounterValue(String ddcName, String fieldName, String dbFieldName) Deprecated.Counter fields cannot be set by API any more.getNotesContent(String hDoc) Reads notes element.getPageList(String hDoc, int element, boolean currentRevision) getPageListStream(DocumentId documentId, List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> documentElements) getReleasedStream(String hDoc, int element, boolean currentRevision) Retrieves the content of a document.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.Reads the properties of the specified revision.Returns a set of document IDs that are locked by this session.Retrieves the content of a document.Retrieves the content of a document.Retrieves the content of a document.Retrieves the content of a document.getThumbnail(DocumentId id, int height, int width, boolean color) Retrieves a thumbnail for the specified document or null if no thumbnail is available.getVariable(Properties variables, String key) Reads the variable with the given case insensitive name.booleanhasBlackmarkers(DocumentId docId) Checks for blackmarkers.booleanhasVariable(Properties variables, String key) Checks, if the variable with the given case insensitive name exists.booleanlockDocument(DocumentId id, DocumentService.AuditEvent event) Lock document.voidreleaseDocument(DocumentId id, String comment) Release a document.voidremoveIXOSAnno(DocumentId docId) Remove the IXOS annotation from content list.resolveLatestHdoc(String oldHdoc) Deprecated.useresolveLatestRevision(String)instead.resolveLatestRevision(String oldHdoc) Resolve latest revision for the given hdoc.com.saperion.bean.SapDocInforesolveSapURL(String url) Resolves the given SAP URL and returns the SapDocInfo.voidsetAcl(DocumentId id, String acl, String comment) Deprecated.usesetAclNames(DocumentId, List, String)instead.voidsetAclNames(DocumentId id, List<String> acls, String comment) Sets the ACL for the specified document or lookup table entry.voidsetAnnotations(String hDoc, int element, String annotations) Sets the annotations of a document.voidSets the specified document's state to 'read' without creating a new revision.voidSets the specified document's state to 'unread' without creating a new revision.voidsetNotesContent(String hDoc, String ddc, String content) Writes the notes element.booleanUnlock document.updateDocument(DocumentId docId, DataToUpdate data, UpdateSettings settings) Updates the document identfied by docId using the specified data and settings.com.saperion.intf.SaSaveInfoupdateDocument(List<FieldResultBean> properties, com.saperion.bean.ContentStream[] content, String comment, DocumentId docId, boolean checkin, boolean lookup, int selectedImage) Deprecated.com.saperion.intf.SaSaveInfoupdateDocument(Properties properties, com.saperion.bean.ContentStream[] content, String comment, DocumentId docId, boolean checkin, boolean lookup, int selectedImage) Deprecated.voidupdateLookupItem(String sysRowId, List<FieldResultBean> properties, String ddcName) Update a lookup entry.voidupdateLookupItem(String sysRowId, List<FieldResultBean> properties, String ddcName, boolean isDeleted) Update a lookup entry.voidwriteAuditEvent(String hdoc, DocumentService.AuditEvent event, String remark) Write audit event.
- 
Field Details- 
COMP_IDName for SapCompId.- See Also:
 
- 
NEEDED_COMP_IDValue for SapCompId.- See Also:
 
- 
COMP_TYPEName for SapCompType.- See Also:
 
- 
NEEDED_COMP_TYPEValue for SapCompType.- See Also:
 
- 
NOTES_NAMEFilename for SAP notes.- See Also:
 
- 
IXOS_ANNOElement name of IXOS annotations.- See Also:
 
 
- 
- 
Method Details- 
getReleasedStreamInputStream getReleasedStream(String hDoc, int element, boolean currentRevision) throws BinaryUnavailableException, AuthenticationException Retrieves the content of a document. For use in servlets.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. - Parameters:
- hDoc- document HDOC
- element- sub document
- currentRevision- the current revision
- Returns:
- InputStream with content
- Throws:
- BinaryUnavailableException- when the binary content could not be accessed.
- AuthenticationException- when the user is not authenticated
 
- 
getStreamInputStream getStream(String hDoc, int element) throws BinaryUnavailableException, AuthenticationException Retrieves the content of a document. For use in servlets.- Parameters:
- hDoc- document HDOC
- element- sub document
- Returns:
- InputStream with content
- Throws:
- BinaryUnavailableException- when the binary content could not be accessed.
- AuthenticationException- when the user is not authenticated
 
- 
getStreamInputStream getStream(String hDoc, int element, boolean currentRevision) throws BinaryUnavailableException, AuthenticationException Retrieves the content of a document. For use in servlets.- Parameters:
- hDoc- document HDOC
- element- sub document
- currentRevision- currentRevision
- Returns:
- InputStream with content
- Throws:
- BinaryUnavailableException- when the binary content could not be accessed.
- AuthenticationException- when the user is not authenticated
 
- 
getStreamInputStream getStream(String hDoc, int element, boolean currentRevision, boolean withAnnotations) throws BinaryUnavailableException, AuthenticationException Retrieves the content of a document. For use in servlets.- Parameters:
- hDoc- document HDOC
- element- sub document
- currentRevision- currentRevision
- withAnnotations- * withAnnotations
- Returns:
- InputStream with content
- Throws:
- BinaryUnavailableException- when the binary content could not be accessed.
- AuthenticationException- when the user is not authenticated
 
- 
getStreamInputStream getStream(String hDoc, int element, boolean currentRevision, long start, long size) throws BinaryUnavailableException, AuthenticationException Retrieves the content of a document. For use in servlets.- Parameters:
- hDoc- document HDOC
- element- sub document
- currentRevision- currentRevision
- start- Startbyte
- size- Streamsize
- Returns:
- InputStream with content
- Throws:
- BinaryUnavailableException- when the binary content could not be accessed.
- AuthenticationException- when the user is not authenticated
 
- 
getPageListPageList getPageList(String hDoc, int element, boolean currentRevision) throws BinaryUnavailableException, AuthenticationException - Parameters:
- hDoc- document HDOC
- element- sub document
- currentRevision- currentRevision
- Returns:
- Pagelist
- Throws:
- BinaryUnavailableException- when the binary content could not be accessed.
- AuthenticationException- when the user is not authenticated
 
- 
getAnnotationsString getAnnotations(String hDoc, int element, boolean currentRevision) throws AuthenticationException, SystemException Retrieves the annotations of a document.- Parameters:
- hDoc- document hDoc
- element- document element
- currentRevision- currentRevision
- Returns:
- annotations string
- Throws:
- AuthenticationException- if user identification fails
- SystemException- in case of common system error
 
- 
getAnnotations@Deprecated String getAnnotations(String hDoc, int element) throws AuthenticationException, SystemException Deprecated.usegetAnnotations(String, int, boolean)insteadRetrieves the annotations of a document.- Parameters:
- hDoc- document hDoc
- element- document element
- Returns:
- annotations string
- Throws:
- AuthenticationException- if user identification fails
- SystemException- in case of common system error
 
- 
setAnnotationsvoid setAnnotations(String hDoc, int element, String annotations) throws AuthenticationException, SystemException Sets the annotations of a document.- Parameters:
- hDoc- document hDoc
- element- document element
- annotations- annotations string
- Throws:
- AuthenticationException- if user identification fails
- SystemException- in case of common system error
 
- 
getAccessDataRetrieves the access data for the specified document.- Parameters:
- id- document id
- Returns:
- access data
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
 
- 
getLookupEntryAccessDataResultAccessData getLookupEntryAccessData(DocumentId id) throws SystemException, AuthenticationException Retrieves the access data for the specified lookup table entry.- Parameters:
- id- the id of the entry
- Returns:
- the access data for the current user
- Throws:
- SystemException- system error when getting access data
- AuthenticationException- authentication error when getting access data
 
- 
getAccessDataRetrieves the access data fot the specified document. For use in servlets.- Parameters:
- revisionId- document's revision id
- Returns:
- access data
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
getAclDeprecated.usegetAclNames(DocumentId)instead. Will be removed in 8.1.Retrieves the ACLs for the specified document.- Parameters:
- id- document id
- Returns:
- ACL string (separated by SaConstants.ACL_DELIMITERto get multiple ACLs)
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
 
- 
getAllAclsGets all ACL names.- Returns:
- list of ACL names
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
setAcl@Deprecated void setAcl(DocumentId id, String acl, String comment) throws SystemException, AuthenticationException Deprecated.usesetAclNames(DocumentId, List, String)instead. Will be removed in 8.1.Sets the ACLs for the specified document.- Parameters:
- id- document id
- acl- ACL string (separated by- SaConstants.ACL_DELIMITERto set multiple ACLs)
- comment- revision comment
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
 
- 
getAclNamesRetrieves the ACLs for the specified document or lookup entry.- Parameters:
- id- document id
- Returns:
- a list of ACL names that are set on the specified document
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
 
- 
setAclNamesvoid setAclNames(DocumentId id, List<String> acls, String comment) throws SystemException, AuthenticationException Sets the ACL for the specified document or lookup table entry.- Parameters:
- id- document id
- acls- a list of ACL names to set on the specified document
- comment- revision comment
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
 
- 
lockDocumentboolean lockDocument(DocumentId id, DocumentService.AuditEvent event) throws SystemException, AuthenticationException, DocumentLockException Lock document.- Parameters:
- id- Document ID
- Returns:
- True, if done
- Throws:
- DocumentLockException- lock exception
- AuthenticationException- authentication exception
- SystemException- system exception
 
- 
unlockDocumentboolean unlockDocument(DocumentId id) throws SystemException, AuthenticationException, DocumentLockException Unlock document.- Parameters:
- id- Document ID
- Returns:
- True, if done
- Throws:
- DocumentLockException- lock exception
- AuthenticationException- authentication exception
- SystemException- system exception
 
- 
deleteDocumentboolean deleteDocument(DocumentId id) throws SystemException, AuthenticationException, DocumentAccessException Delete a document.- Parameters:
- id- Document id
- Returns:
- True, if done
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- DocumentAccessException- document access exception
 
- 
deleteDocumentboolean deleteDocument(DocumentId id, boolean finalDelete) throws SystemException, AuthenticationException, DocumentAccessException Delete a document.- Parameters:
- id- Document id
- finalDelete- set to true if the document was already marked as deleted (sysindexstate = 65002) to avoid checking of document access, which will fail otherwise
- Returns:
- True, if done
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- DocumentAccessException- document access exception
 
- 
updateDocument@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 Deprecated.Update a document.- Parameters:
- properties- Properties
- docId- Document ID
- content- Document content
- comment- revision comment
- checkin- True for checkin
- lookup- True for lookup table
- selectedImage- Selected image
- Returns:
- true if success
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- DocumentAccessException- document access exception
 
- 
updateDocument@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 Deprecated.Update a document.- Parameters:
- properties- Properties
- docId- Document ID
- content- Document content
- comment- revision comment
- checkin- True for checkin
- lookup- True for lookup table
- selectedImage- Selected image
- Returns:
- true if success
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- DocumentAccessException- document access exception
 
- 
updateDocumentDocumentId updateDocument(DocumentId docId, DataToUpdate data, UpdateSettings settings) throws SystemException, AuthenticationException, DocumentAccessException Updates the document identfied by docId using the specified data and settings.- Parameters:
- docId- ID of the document to update
- data- data to update (content and/or metadata)
- settings- setting to use when updating
- Returns:
- ID of the updated document
- Throws:
- SystemException- system error when updating
- AuthenticationException- insufficient rights or logged off
- DocumentAccessException- insufficient rights (ACL-based)
 
- 
getIXOSAnnotationReads the IXOS annotation for this document.- Parameters:
- hdoc- Document ID
- Returns:
- ISOS Annotation as string
- Throws:
- AuthenticationException- AuthenticationException
- SystemException- SystemException
 
- 
removeIXOSAnnovoid removeIXOSAnno(DocumentId docId) throws DocumentAccessException, SystemException, AuthenticationException Remove the IXOS annotation from content list.- Parameters:
- docId- Document ID
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- DocumentAccessException- document access exception
 
- 
getLockDataReturns the lock data for the specified document.- Parameters:
- id- document id
- Returns:
- lock data
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
getLockDataResultLockData getLockData(DocumentId id, boolean isDeleted) throws SystemException, AuthenticationException Returns the lock data for the specified document.- Parameters:
- id- document id
- isDeleted- pass true if the document is deleted (sysIndexState = 65002)
- Returns:
- lock data
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
checkoutDocumentvoid checkoutDocument(DocumentId id) throws SystemException, AuthenticationException, DocumentAccessException, CheckoutFailedException Checkout a document.- Parameters:
- id- Document id
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
- DocumentAccessException- access exception
- CheckoutFailedException- thrown when the checkout-operation did not cause an exception but did not actually checkout the document. Happens on image-files.
 
- 
checkoutDocumentvoid checkoutDocument(DocumentId id, boolean withShareBase, int[] shareBaseDocIds) throws SystemException, AuthenticationException, DocumentAccessException, CheckoutFailedException Checkout a document.- Parameters:
- id- Document id
- withShareBase- true if open document is checked out with ShareBase else false
- shareBaseDocIds- Array of sharebase doc ids for open checkout docs
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
- DocumentAccessException- access exception
- CheckoutFailedException- thrown when the checkout-operation did not cause an exception but did not actually checkout the document. Happens on image-files.
 
- 
releaseDocumentvoid releaseDocument(DocumentId id, String comment) throws SystemException, AuthenticationException, DocumentAccessException Release a document.- Parameters:
- id- Document id
- comment- the revision comment
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
- DocumentAccessException- access exception
 
- 
getReleaseHdocGets the last released hdoc.- Parameters:
- hDoc- the h doc
- Returns:
- the release hdoc
- Throws:
- AuthenticationException- the authentication exception
- SystemException- the system exception
 
- 
discardCheckoutvoid discardCheckout(DocumentId id) throws SystemException, AuthenticationException, DocumentAccessException Discards checkout of a document.- Parameters:
- id- Document id
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
- DocumentAccessException- access exception
 
- 
getDocumentInfoReads the document properties.- Parameters:
- id- Document id
- Returns:
- Document properties
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
 
- 
getDocumentInfoResultProperties getDocumentInfo(DocumentId id, boolean isDeleted) throws SystemException, AuthenticationException Reads the document properties.- Parameters:
- id- Document id
- isDeleted- pass true if the document is deleted (sysIndexState = 65002)
- Returns:
- Document properties
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
 
- 
getRevisionInfoResultProperties getRevisionInfo(DocumentId id) throws SystemException, AuthenticationException, DatabaseException, DocumentIdentificationException Reads the properties of the specified revision.- Parameters:
- id- id identifying the revision (revision-id must be set!)
- Returns:
- revision properties
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- DatabaseException- database exception
- DocumentIdentificationException- if the id does not contain the revision id
 
- 
getDocumentVersionsList<DocumentVersionInfo> getDocumentVersions(DocumentId id) throws SystemException, AuthenticationException Retrieves information about a document's versions.- Parameters:
- id- document id
- Returns:
- list with DocumentVersionInfo objects
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
getDocumentVersionIdsReturns a list of all version IDs for the specified document.- Parameters:
- id- document ID
- Returns:
- list of version IDs
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
getDocumentVersionDocumentVersionInfo getDocumentVersion(String versionId) throws DatabaseException, AuthenticationException, SystemException Returns the metadata of the specified version.- Parameters:
- versionId- ID of the version
- Returns:
- version information
- Throws:
- DatabaseException- database exception
- AuthenticationException- authentication exception
- SystemException- system exception
 
- 
getDocumentVersionsList<DocumentVersionInfo> getDocumentVersions(String ddcName, String objectId) throws SystemException, AuthenticationException Retrieves information about a document's versions. For use in servlets.- Parameters:
- ddcName- ddc name
- objectId- object id of the document (SysRowId)
- Returns:
- list with DocumentVersionInfo objects
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
resolveLatestHdoc@Deprecated String resolveLatestHdoc(String oldHdoc) throws com.saperion.exception.SaSystemException, com.saperion.exception.SaAuthenticationException Deprecated.useresolveLatestRevision(String)instead.Resolve latest hdoc(revision) for the given hdoc.- Parameters:
- oldHdoc- the old hdoc to lookup
- Returns:
- the latest hdoc (revision) of the given hdoc
- Throws:
- com.saperion.exception.SaSystemException- system exception
- com.saperion.exception.SaAuthenticationException- authentication exception
 
- 
resolveLatestRevisionResolve latest revision for the given hdoc.- Parameters:
- oldHdoc- the old hdoc to lookup
- Returns:
- the latest hdoc (revision) of the given hdoc
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
getThumbnailBufferedImage getThumbnail(DocumentId id, int height, int width, boolean color) throws SystemException, AuthenticationException Retrieves a thumbnail for the specified document or null if no thumbnail is available.- Parameters:
- id- document id
- height- thumbnail height
- width- thumbnail width
- color- color option
- Returns:
- thumbnail as BufferedImage in PNG format
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
writeAuditEventvoid writeAuditEvent(String hdoc, DocumentService.AuditEvent event, String remark) throws SystemException, AuthenticationException Write audit event.- Parameters:
- hdoc- Document HDOC
- event- Event type
- remark- Remark
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
getSessionLocksSet<DocumentId> getSessionLocks()Returns a set of document IDs that are locked by this session.- Returns:
- set of document IDs
 
- 
addDocumentDocumentId addDocument(List<FieldResultBean> properties, com.saperion.rmi.SaContentStream[] content, String comment, String ddcName, String acls) throws SystemException, AuthenticationException Adds a new document to the archive.- Parameters:
- properties- meta data
- content- content
- comment- comment
- ddcName- name of the ddc
- acls- semicolon separated string of ACL names
- Returns:
- id of the new document
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
addDocumentDocumentId addDocument(List<FieldResultBean> properties, com.saperion.rmi.SaContentStream[] content, String comment, String ddcName, String acls, Map<String, DocumentVariable> variables) throws SystemException, AuthenticationExceptionAdds a new document to the archive.- Parameters:
- properties- meta data
- content- content
- comment- comment
- ddcName- name of the ddc
- acls- semicolon separated string of ACL names
- variables- variables to add to the document
- Returns:
- id of the new document
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
addDocument@Deprecated DocumentId addDocument(Properties properties, com.saperion.rmi.SaContentStream[] content, String comment, String ddcName, String acls) throws SystemException, AuthenticationException Deprecated.Adds a new document to the archive.- Parameters:
- properties- meta data
- content- content
- comment- comment
- ddcName- name of the ddc
- acls- semicolon separated string of ACL names
- Returns:
- id of the new document
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
addDocumentDocumentId addDocument(Map<String, Object> properties, com.saperion.bean.ContentStream[] content, String comment, String ddcName, String acls, Map<String, throws SystemException, AuthenticationExceptionDocumentVariable> variables) Adds a new document to the archive.- Parameters:
- properties- meta data
- content- content
- comment- comment
- ddcName- name of the ddc
- acls- semicolon separated string of ACL names
- variables- variables to add to the document
- Returns:
- id of the new document
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
createLookupItemDocumentId createLookupItem(List<FieldResultBean> properties, String ddcName) throws SystemException, AuthenticationException Create a new lookup entry.- Parameters:
- properties- meta data
- ddcName- name of the ddc
- Returns:
- id of the new document
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
updateLookupItemvoid updateLookupItem(String sysRowId, List<FieldResultBean> properties, String ddcName) throws SystemException, AuthenticationException Update a lookup entry.- Parameters:
- sysRowId- SysRowId of the lookup entry
- properties- meta data
- ddcName- name of the ddc
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
updateLookupItemvoid updateLookupItem(String sysRowId, List<FieldResultBean> properties, String ddcName, boolean isDeleted) throws SystemException, AuthenticationException Update a lookup entry.- Parameters:
- sysRowId- SysRowId of the lookup entry
- properties- meta data
- ddcName- name of the ddc
- isDeleted- indicates if the document is deleted or not
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
getNextCounterValue@Deprecated int getNextCounterValue(String ddcName, String fieldName, String dbFieldName) throws SystemException, AuthenticationException Deprecated.Counter fields cannot be set by API any more. This method is contained for backwards-compatibility only and will be removed in a future version.This method is only contained for compatibility reasons and always returns -1 because counter-fields cannot be set by API any more.- Parameters:
- ddcName- name of the ddc
- fieldName- name of the counter field
- dbFieldName- database name of the counter field
- Returns:
- next possible value as int
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
getImageInfoReads the document image informations from backend.- Parameters:
- id- Document Id
- Returns:
- Image info
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
getActualImageReads the actual document image from backend.- Parameters:
- id- Document Id
- Returns:
- Image
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
 
- 
getPageListStreamInputStream getPageListStream(DocumentId documentId, List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> documentElements) - Parameters:
- documentId- ID of the document
- documentElements- list of the document's elements
- Returns:
- stream containing the page-list
 
- 
getNotesContentReads notes element.- Parameters:
- hDoc- Document id
- Returns:
- Element content
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
 
- 
setNotesContentvoid setNotesContent(String hDoc, String ddc, String content) throws SystemException, AuthenticationException Writes the notes element.- Parameters:
- hDoc- Document id
- ddc- DDC name
- content- element content
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
 
- 
resolveSapURLcom.saperion.bean.SapDocInfo resolveSapURL(String url) throws SystemException, SapViewerUrlException, AuthenticationException Resolves the given SAP URL and returns the SapDocInfo.- Parameters:
- url- URL
- Returns:
- SAP Document info
- Throws:
- SystemException- System exception
- SapViewerUrlException- resolving the url failed
- AuthenticationException- Authentication exception
 
- 
hasVariableChecks, if the variable with the given case insensitive name exists.- Parameters:
- variables- Variables
- key- Key name
- Returns:
- True, if exists
 
- 
getVariableReads the variable with the given case insensitive name.- Parameters:
- variables- Variables
- key- Key name
- Returns:
- Variable value or null, if variable don't exists
 
- 
getElementSizesMap<Integer,Long> getElementSizes(String hDoc, List<Integer> elementsWithoutSize) throws SystemException, AuthenticationException Retrieves a map with the sizes (in bytes) of elements for a given hDoc.- Parameters:
- hDoc- hDoc of the document
- elementsWithoutSize- List of elementNumbers for elements without a file size.
- Returns:
- Map of Element Numbers and its sizes in bytes
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
 
- 
getElementSizeRetrieves the size of the specified element (in bytes).- Parameters:
- hDoc- hDoc of the document
- element- number of the element
- Returns:
- size in bytes
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
 
- 
getArchiveMetaInfoDocumentArchiveMetaInfo getArchiveMetaInfo(DocumentId documentId, boolean currentRevision) throws AuthenticationException, SystemException Retrieves the meta information of a document that is stored on the archive.- Parameters:
- documentId- The id of the document the information is about
- currentRevision- if true, the latest revision of the document will be retrieved
- Returns:
- The meta information of a document that is stored on the archive.
- Throws:
- AuthenticationException- Authentication exception
- SystemException- System exception
 
- 
getArchiveMetaInfoDocumentArchiveMetaInfo getArchiveMetaInfo(DocumentId documentId, boolean currentRevision, boolean previewMode) throws AuthenticationException, SystemException Retrieves the meta information of a document that is stored on the archive.- Parameters:
- documentId- The id of the document the information is about
- currentRevision- if true, the latest revision of the document will be retrieved
- previewMode- used to notify the document service that a preview-viewer in a mask requests the archive meta info (currently not in use)
- Returns:
- The meta information of a document that is stored on the archive.
- Throws:
- AuthenticationException- Authentication exception
- SystemException- System exception
 
- 
hasBlackmarkersChecks for blackmarkers.- Parameters:
- docId- The id of the document in question
- Returns:
- Whether the document has blackmarker annotations
- Throws:
- AuthenticationException- Authentication exception
- SystemException- System exception
 
- 
getRenderedDocumentList<com.saperion.connector.renditions.Rendition> getRenderedDocument(DocumentId documentId, com.saperion.connector.formats.TargetFormat format, boolean currentRevision) throws SystemException, AuthenticationException, RenderingFailedException Renders the specified document to the target format.- Parameters:
- documentId- the document id
- format- the target format
- currentRevision- if true, the current revision of the document will be rendered
- Returns:
- the rendered document
- Throws:
- SystemException- System exception when rendering
- AuthenticationException- authentication exception when rendering
- RenderingFailedException- rendering the document failed
 
- 
getDocumentMetadataFromArchivecom.saperion.intf.SaPropertyValue[] getDocumentMetadataFromArchive(DocumentId id, boolean currentRevision) throws DocumentIdentificationException, SystemException, AuthenticationException, DatabaseException Returns the metadata of the document as read from the archive. The database will not be used to load the data.- Parameters:
- id- document id
- currentRevision- resolve current revision or not
- Returns:
- document's metadata
- Throws:
- DocumentIdentificationException- revision id not set in document id
- SystemException- system exception when loading metadata
- AuthenticationException- authentication exception when loading metadata
- DatabaseException- ddc exception when loading metadata
 
- 
setDocumentReadvoid setDocumentRead(DocumentId id) throws DocumentIdentificationException, SystemException, AuthenticationException Sets the specified document's state to 'read' without creating a new revision. If the specified DDC does not contain the SYSDOCSTATE field, this method has no effect.- Parameters:
- id- document's ID
- Throws:
- DocumentIdentificationException- missing information in ID
- SystemException- system error when setting state
- AuthenticationException- authentication error when setting state
 
- 
setDocumentUnreadvoid setDocumentUnread(DocumentId id) throws DocumentIdentificationException, SystemException, AuthenticationException Sets the specified document's state to 'unread' without creating a new revision. If the specified DDC does not contain the SYSDOCSTATE field, this method has no effect.- Parameters:
- id- document's ID
- Throws:
- DocumentIdentificationException- missing information in ID
- SystemException- system error when setting state
- AuthenticationException- authentication error when setting state
 
- 
getFullTextFieldsSet<Map.Entry<String,String>> getFullTextFields(String ddcName, List<String> fullTextFields, String hdoc) throws SystemException, AuthenticationException Fetches values of Full text columns- Parameters:
- ddcName- name of the DDC
- fullTextFields- List of Fields which are of Text retrieval type. Make sure to prefix- SaConstants.FULL_TEXT_COLUMN_PREFIX
- hdoc- hdoc of the document
- Returns:
- Set of entries containing full text coulmn and corresponding value
- Throws:
- SystemException
- AuthenticationException
 
 
- 
addDocument(Map, ContentStream[], String, String, String, Map)instead