Package com.saperion.ngc.model.document
Class DocClassicConnectorService
- java.lang.Object
- 
- com.saperion.ngc.model.ClassicConnectorService
- 
- com.saperion.ngc.model.document.DocClassicConnectorService
 
 
- 
- All Implemented Interfaces:
- DocumentService,- Service
 
 public class DocClassicConnectorService extends ClassicConnectorService implements DocumentService Service presenting document access methods provided by the classic connector.- Author:
- mak
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.saperion.ngc.model.document.DocumentServiceDocumentService.AuditEvent
 
- 
 - 
Field Summary- 
Fields inherited from class com.saperion.ngc.model.ClassicConnectorServiceddcCache
 - 
Fields inherited from interface com.saperion.ngc.model.document.DocumentServiceCOMP_ID, COMP_TYPE, IXOS_ANNO, NEEDED_COMP_ID, NEEDED_COMP_TYPE, NOTES_NAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description DocClassicConnectorService()Constructor.DocClassicConnectorService(ConnectionProvider<com.saperion.connector.SaClassicConnector> connectionProvider)Creates a newDocClassicConnectorService.DocClassicConnectorService(javax.servlet.http.HttpSession session)Creates a new DocClassicConnectorService.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DocumentIdaddDocument(java.util.List<FieldResultBean> properties, com.saperion.rmi.SaContentStream[] content, java.lang.String comment, java.lang.String ddcName, java.lang.String acls)Adds a new document to the archive.DocumentIdaddDocument(java.util.List<FieldResultBean> properties, com.saperion.rmi.SaContentStream[] content, java.lang.String comment, java.lang.String ddcName, java.lang.String acls, java.util.Map<java.lang.String,DocumentVariable> variables)Adds a new document to the archive.DocumentIdaddDocument(java.util.Map<java.lang.String,java.lang.Object> properties, com.saperion.bean.ContentStream[] content, java.lang.String comment, java.lang.String ddcName, java.lang.String acls, java.util.Map<java.lang.String,DocumentVariable> variables)Adds a new document to the archive.DocumentIdaddDocument(java.util.Properties properties, com.saperion.rmi.SaContentStream[] content, java.lang.String comment, java.lang.String ddcName, java.lang.String acls)Deprecated.voidcheckoutDocument(DocumentId id)Checkout a document.voidcheckoutDocument(DocumentId id, boolean withShareBase, int[] shareBaseDocIds)Checkout a document.com.saperion.connector.service.RmiClientExtendedLookupEntryServicecreateLookupEntryService(com.saperion.connector.SaClassicConnector connector)DocumentIdcreateLookupItem(java.util.List<FieldResultBean> properties, java.lang.String ddcName)Create a new lookup entry.booleandeleteDocument(DocumentId id)Delete a document.booleandeleteDocument(DocumentId id, boolean finalDelete)Delete a document.voiddiscardCheckout(DocumentId id)Discards checkout of a document.ResultAccessDatagetAccessData(DocumentId id)Retrieves the access data for the specified document.ResultAccessDatagetAccessData(java.lang.String revisionId)Retrieves the access data fot the specified document.java.lang.StringgetAcl(DocumentId docId)Deprecated.usegetAclNames(DocumentId)instead.java.util.List<java.lang.String>getAclNames(DocumentId id)Retrieves the ACLs for the specified document or lookup entry.org.zkoss.image.ImagegetActualImage(DocumentId id)Reads the actual document image from backend.java.lang.StringgetAnnotations(java.lang.String hDoc, int element)Deprecated.usegetAnnotations(String, int, boolean)insteadjava.lang.StringgetAnnotations(java.lang.String hDoc, int element, boolean currentRevision)Retrieves the annotations of a document.DocumentArchiveMetaInfogetArchiveMetaInfo(DocumentId documentId, boolean currentRevision)Retrieves the meta information of a document that is stored on the archive.DocumentArchiveMetaInfogetArchiveMetaInfo(DocumentId documentId, boolean currentRevision, boolean previewMode)Retrieves the meta information of a document that is stored on the archive.ResultPropertiesgetDocumentInfo(DocumentId id)Reads the document properties.ResultPropertiesgetDocumentInfo(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.DocumentVersionInfogetDocumentVersion(java.lang.String versionId)Returns the metadata of the specified version.java.util.List<java.lang.String>getDocumentVersionIds(DocumentId id)Returns a list of all version IDs for the specified document.java.util.List<DocumentVersionInfo>getDocumentVersions(DocumentId id)Retrieves information about a document's versions.java.util.List<DocumentVersionInfo>getDocumentVersions(java.lang.String ddcName, java.lang.String objectId)Retrieves information about a document's versions.longgetElementSize(java.lang.String hDoc, int element)Retrieves the size of the specified element (in bytes).java.util.Map<java.lang.Integer,java.lang.Long>getElementSizes(java.lang.String hDoc, java.util.List<java.lang.Integer> elementsWithoutSize)Retrieves a map with the sizes (in bytes) of elements for a given hDoc.java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>>getFullTextFields(java.lang.String ddcName, java.util.List<java.lang.String> fullTextFields, java.lang.String hdoc)DocumentImageInfogetImageInfo(DocumentId id)Reads the document image informations from backend.java.lang.StringgetIXOSAnnotation(java.lang.String hdoc)Reads the IXOS annotation for this document.ResultLockDatagetLockData(DocumentId id)Returns the lock data for the specified document.ResultLockDatagetLockData(DocumentId id, boolean isDeleted)Returns the lock data for the specified document.ResultAccessDatagetLookupEntryAccessData(DocumentId id)Retrieves the access data for the specified lookup table entry.intgetNextCounterValue(java.lang.String ddcName, java.lang.String fieldName, java.lang.String dbFieldName)Deprecated.Counter fields cannot be set by API any more.java.lang.StringgetNotesContent(java.lang.String hDoc)Reads notes element.PageListgetPageList(java.lang.String hDoc, int element, boolean currentRevision)java.io.InputStreamgetPageListStream(DocumentId documentId, java.util.List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> documentElements)java.io.InputStreamgetReleasedStream(java.lang.String hDoc, int element, boolean currentRevision)Retrieves the content of a document.java.lang.StringgetReleaseHdoc(java.lang.String hDoc)Gets the last released hdoc.java.util.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.ResultPropertiesgetRevisionInfo(DocumentId id)Reads the properties of the specified revision.java.util.Set<DocumentId>getSessionLocks()Returns a set of document IDs that are locked by this session.java.io.InputStreamgetStream(java.lang.String hDoc, int element)Retrieves the content of a document.java.io.InputStreamgetStream(java.lang.String hDoc, int element, boolean currentRevision)Retrieves the content of a document.java.io.InputStreamgetStream(java.lang.String hDoc, int element, boolean currentRevision, boolean withAnnotations)Retrieves the content of a document.java.io.InputStreamgetStream(java.lang.String hDoc, int element, boolean currentRevision, long start, long size)Retrieves the content of a document.java.awt.image.BufferedImagegetThumbnail(DocumentId id, int height, int width, boolean color)Retrieves a thumbnail for the specified document or null if no thumbnail is available.java.lang.StringgetVariable(java.util.Properties variables, java.lang.String key)Reads the variable with the given case insensitive name.booleanhasBlackmarkers(DocumentId docId)Checks for blackmarkers.booleanhasVariable(java.util.Properties variables, java.lang.String key)Checks, if the variable with the given case insensitive name exists.booleanlockDocument(DocumentId id, DocumentService.AuditEvent event)Lock document.voidreleaseDocument(DocumentId id, java.lang.String comment)Release a document.voidremoveIXOSAnno(DocumentId docId)Remove the IXOS annotation from content list.java.lang.StringresolveLatestHdoc(java.lang.String oldHdoc)Deprecated.useresolveLatestRevision(String)insteadjava.lang.StringresolveLatestRevision(java.lang.String oldHdoc)Resolve latest revision for the given hdoc.com.saperion.bean.SapDocInforesolveSapURL(java.lang.String url)Resolves the given SAP URL and returns the SapDocInfo.voidsetAcl(DocumentId docId, java.lang.String acl, java.lang.String comment)Deprecated.usesetAclNames(DocumentId, List, String)instead.voidsetAclNames(DocumentId id, java.util.List<java.lang.String> acls, java.lang.String comment)Sets the ACL for the specified document or lookup table entry.voidsetAnnotations(java.lang.String hDoc, int element, java.lang.String annotations)Sets the annotations of a document.voidsetDocumentRead(DocumentId id)Sets the specified document's state to 'read' without creating a new revision.voidsetDocumentUnread(DocumentId id)Sets the specified document's state to 'unread' without creating a new revision.voidsetNotesContent(java.lang.String hDoc, java.lang.String ddc, java.lang.String content)Writes the notes element.booleanunlockDocument(DocumentId id)Unlock document.DocumentIdupdateDocument(DocumentId docId, DataToUpdate data, UpdateSettings settings)Updates the document identfied by docId using the specified data and settings.com.saperion.intf.SaSaveInfoupdateDocument(java.util.List<FieldResultBean> properties, com.saperion.bean.ContentStream[] content, java.lang.String comment, DocumentId docId, boolean checkin, boolean lookup, int selectedImage)Deprecated.com.saperion.intf.SaSaveInfoupdateDocument(java.util.Properties properties, com.saperion.bean.ContentStream[] content, java.lang.String comment, DocumentId docId, boolean checkin, boolean lookup, int selectedImage)Deprecated.voidupdateLookupItem(java.lang.String sysRowId, java.util.List<FieldResultBean> properties, java.lang.String ddcName)Update a lookup entry.voidupdateLookupItem(java.lang.String sysRowId, java.util.List<FieldResultBean> properties, java.lang.String ddcName, boolean isDeleted)Update a lookup entry.voidwriteAuditEvent(java.lang.String hdoc, DocumentService.AuditEvent event, java.lang.String remark)Write audit event.- 
Methods inherited from class com.saperion.ngc.model.ClassicConnectorServiceconvertAuthenticationException, getCachedDDC, getConnectionProvider, getCurrentUserFromSession, getSession, getWfConnectionProvider, isActive
 
- 
 
- 
- 
- 
Constructor Detail- 
DocClassicConnectorServicepublic DocClassicConnectorService() Constructor.
 - 
DocClassicConnectorServicepublic DocClassicConnectorService(javax.servlet.http.HttpSession session) Creates a new DocClassicConnectorService.- Parameters:
- session- HTTP session
 
 - 
DocClassicConnectorServicepublic DocClassicConnectorService(ConnectionProvider<com.saperion.connector.SaClassicConnector> connectionProvider) Creates a newDocClassicConnectorService.- Parameters:
- connectionProvider- connection provider
 
 
- 
 - 
Method Detail- 
getReleasedStreampublic final java.io.InputStream getReleasedStream(java.lang.String hDoc, int element, boolean currentRevision) throws BinaryUnavailableException, AuthenticationExceptionRetrieves 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. - Specified by:
- getReleasedStreamin interface- DocumentService
- 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
- See Also:
- DocumentService.getReleasedStream(java.lang.String, int, boolean)
 
 - 
getStreampublic final java.io.InputStream getStream(java.lang.String hDoc, int element, boolean currentRevision) throws BinaryUnavailableException, AuthenticationExceptionRetrieves the content of a document. For use in servlets.- Specified by:
- getStreamin interface- DocumentService
- 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
- See Also:
- DocumentService.getStream(java.lang.String, int, boolean)
 
 - 
getStreampublic final java.io.InputStream getStream(java.lang.String hDoc, int element, boolean currentRevision, boolean withAnnotations) throws BinaryUnavailableException, AuthenticationExceptionRetrieves the content of a document. For use in servlets.- Specified by:
- getStreamin interface- DocumentService
- 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
- See Also:
- DocumentService.getStream(java.lang.String, int, boolean,boolean)
 
 - 
getStreampublic final java.io.InputStream getStream(java.lang.String hDoc, int element) throws BinaryUnavailableException, AuthenticationExceptionRetrieves the content of a document. For use in servlets.- Specified by:
- getStreamin interface- DocumentService
- 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
- See Also:
- DocumentService.getStream(java.lang.String, int)
 
 - 
getStreampublic java.io.InputStream getStream(java.lang.String hDoc, int element, boolean currentRevision, long start, long size) throws BinaryUnavailableException, AuthenticationExceptionRetrieves the content of a document. For use in servlets.- Specified by:
- getStreamin interface- DocumentService
- 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
- See Also:
- DocumentService.getStream(java.lang.String, int, boolean, long, long)
 
 - 
getPageListpublic PageList getPageList(java.lang.String hDoc, int element, boolean currentRevision) throws BinaryUnavailableException, AuthenticationException - Specified by:
- getPageListin interface- DocumentService
- 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
- See Also:
- DocumentService.getPageList(java.lang.String, int, boolean)
 
 - 
getAnnotations@Deprecated public final java.lang.String getAnnotations(java.lang.String hDoc, int element) throws AuthenticationException, SystemExceptionDeprecated.usegetAnnotations(String, int, boolean)insteadRetrieves the annotations of a document.- Specified by:
- getAnnotationsin interface- DocumentService
- Parameters:
- hDoc- document hDoc
- element- document element
- Returns:
- annotations string
- Throws:
- AuthenticationException- if user identification fails
- SystemException- in case of common system error
- See Also:
- DocumentService.getAnnotations(java.lang.String, int)
 
 - 
getAnnotationspublic final java.lang.String getAnnotations(java.lang.String hDoc, int element, boolean currentRevision) throws AuthenticationException, SystemExceptionRetrieves the annotations of a document.- Specified by:
- getAnnotationsin interface- DocumentService
- 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
- See Also:
- DocumentService.getAnnotations(java.lang.String, int,boolean)
 
 - 
setAnnotationspublic final void setAnnotations(java.lang.String hDoc, int element, java.lang.String annotations) throws AuthenticationException, SystemExceptionSets the annotations of a document.- Specified by:
- setAnnotationsin interface- DocumentService
- Parameters:
- hDoc- document hDoc
- element- document element
- annotations- annotations string
- Throws:
- AuthenticationException- if user identification fails
- SystemException- in case of common system error
- See Also:
- DocumentService.setAnnotations(java.lang.String, int, java.lang.String)
 
 - 
getAccessDatapublic ResultAccessData getAccessData(DocumentId id) throws SystemException, AuthenticationException Retrieves the access data for the specified document.- Specified by:
- getAccessDatain interface- DocumentService
- Parameters:
- id- document id
- Returns:
- access data
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
- See Also:
- DocumentService.getAccessData(com.saperion.ngc.model.document.DocumentId)
 
 - 
getAccessDatapublic ResultAccessData getAccessData(java.lang.String revisionId) throws SystemException, AuthenticationException Retrieves the access data fot the specified document. For use in servlets.- Specified by:
- getAccessDatain interface- DocumentService
- Parameters:
- revisionId- document's revision id
- Returns:
- access data
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.getAccessData(java.lang.String)
 
 - 
getLookupEntryAccessDatapublic ResultAccessData getLookupEntryAccessData(DocumentId id) throws SystemException, AuthenticationException Description copied from interface:DocumentServiceRetrieves the access data for the specified lookup table entry.- Specified by:
- getLookupEntryAccessDatain interface- DocumentService
- 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
 
 - 
createLookupEntryServicepublic com.saperion.connector.service.RmiClientExtendedLookupEntryService createLookupEntryService(com.saperion.connector.SaClassicConnector connector) 
 - 
getAcl@Deprecated public java.lang.String getAcl(DocumentId docId) throws SystemException, AuthenticationException Deprecated.usegetAclNames(DocumentId)instead. Will be removed in 8.1.Retrieves the ACLs for the specified document.- Specified by:
- getAclin interface- DocumentService
- Parameters:
- docId- document id
- Returns:
- ACL string (separated by SaConstants.ACL_DELIMITERto get multiple ACLs)
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
- See Also:
- DocumentService.getAcl(com.saperion.ngc.model.document.DocumentId)
 
 - 
getAclNamespublic java.util.List<java.lang.String> getAclNames(DocumentId id) throws SystemException, AuthenticationException Description copied from interface:DocumentServiceRetrieves the ACLs for the specified document or lookup entry.- Specified by:
- getAclNamesin interface- DocumentService
- Parameters:
- id- document id
- Returns:
- a list of ACL names that are set on the specified document
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
 
 - 
setAcl@Deprecated public void setAcl(DocumentId docId, java.lang.String acl, java.lang.String comment) throws SystemException, AuthenticationException Deprecated.usesetAclNames(DocumentId, List, String)instead. Will be removed in 8.1.Sets the ACLs for the specified document.- Specified by:
- setAclin interface- DocumentService
- Parameters:
- docId- document id
- acl- ACL string (separated by- SaConstants.ACL_DELIMITERto set multiple ACLs)
- comment- revision comment
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
- See Also:
- DocumentService.setAcl(com.saperion.ngc.model.document.DocumentId, java.lang.String, java.lang.String)
 
 - 
setAclNamespublic void setAclNames(DocumentId id, java.util.List<java.lang.String> acls, java.lang.String comment) throws SystemException, AuthenticationException Description copied from interface:DocumentServiceSets the ACL for the specified document or lookup table entry.- Specified by:
- setAclNamesin interface- DocumentService
- 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
 
 - 
lockDocumentpublic final boolean lockDocument(DocumentId id, DocumentService.AuditEvent event) throws SystemException, AuthenticationException, DocumentLockException Lock document.- Specified by:
- lockDocumentin interface- DocumentService
- Parameters:
- id- Document ID
- Returns:
- True, if done
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- DocumentLockException- lock exception
- See Also:
- DocumentService.lockDocument(com.saperion.ngc.model.document.DocumentId, com.saperion.ngc.model.document.DocumentService.AuditEvent)
 
 - 
unlockDocumentpublic final boolean unlockDocument(DocumentId id) throws SystemException, AuthenticationException, DocumentLockException Unlock document.- Specified by:
- unlockDocumentin interface- DocumentService
- Parameters:
- id- Document ID
- Returns:
- True, if done
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- DocumentLockException- lock exception
- See Also:
- DocumentService.unlockDocument(com.saperion.ngc.model.document.DocumentId)
 
 - 
deleteDocumentpublic final boolean deleteDocument(DocumentId id) throws DocumentAccessException, SystemException, AuthenticationException Delete a document.- Specified by:
- deleteDocumentin interface- DocumentService
- Parameters:
- id- Document id
- Returns:
- True, if done
- Throws:
- DocumentAccessException- document access exception
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.deleteDocument(com.saperion.ngc.model.document.DocumentId)
 
 - 
deleteDocumentpublic boolean deleteDocument(DocumentId id, boolean finalDelete) throws SystemException, AuthenticationException, DocumentAccessException Delete a document.- Specified by:
- deleteDocumentin interface- DocumentService
- 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
- See Also:
- (com.saperion.ngc.model.document.DocumentId, boolean)
 
 - 
updateDocument@Deprecated public final com.saperion.intf.SaSaveInfo updateDocument(java.util.Properties properties, com.saperion.bean.ContentStream[] content, java.lang.String comment, DocumentId docId, boolean checkin, boolean lookup, int selectedImage) throws DocumentAccessException, SystemException, AuthenticationExceptionDeprecated.Update a document.- Specified by:
- updateDocumentin interface- DocumentService
- Parameters:
- properties- Properties
- content- Document content
- comment- revision comment
- docId- Document ID
- checkin- True for checkin
- lookup- True for lookup table
- selectedImage- Selected image
- Returns:
- true if success
- Throws:
- DocumentAccessException- document access exception
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.updateDocument(java.util.Properties, com.saperion.bean.ContentStream[], java.lang.String, com.saperion.ngc.model.document.DocumentId, boolean, boolean, int)
 
 - 
updateDocumentpublic DocumentId updateDocument(DocumentId docId, DataToUpdate data, UpdateSettings settings) throws SystemException, AuthenticationException, DocumentAccessException Updates the document identfied by docId using the specified data and settings.- Specified by:
- updateDocumentin interface- DocumentService
- 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)
- See Also:
- (com.saperion.ngc.model.document.DocumentId, com.saperion.ngc.model.document.DataToUpdate, com.saperion.ngc.model.document.UpdateSettings)
 
 - 
getIXOSAnnotationpublic java.lang.String getIXOSAnnotation(java.lang.String hdoc) throws AuthenticationException, SystemExceptionReads the IXOS annotation for this document.- Specified by:
- getIXOSAnnotationin interface- DocumentService
- Parameters:
- hdoc- Document ID
- Returns:
- ISOS Annotation as string
- Throws:
- AuthenticationException- AuthenticationException
- SystemException- SystemException
- See Also:
- DocumentService.getIXOSAnnotation(java.lang.String)
 
 - 
removeIXOSAnnopublic final void removeIXOSAnno(DocumentId docId) throws DocumentAccessException, SystemException, AuthenticationException Remove the IXOS annotation from content list.- Specified by:
- removeIXOSAnnoin interface- DocumentService
- Parameters:
- docId- Document ID
- Throws:
- DocumentAccessException- document access exception
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.removeIXOSAnno(com.saperion.ngc.model.document.DocumentId)
 
 - 
updateDocument@Deprecated public final com.saperion.intf.SaSaveInfo updateDocument(java.util.List<FieldResultBean> properties, com.saperion.bean.ContentStream[] content, java.lang.String comment, DocumentId docId, boolean checkin, boolean lookup, int selectedImage) throws DocumentAccessException, SystemException, AuthenticationException Deprecated.Update a document.- Specified by:
- updateDocumentin interface- DocumentService
- Parameters:
- properties- Properties
- content- Document content
- comment- revision comment
- docId- Document ID
- checkin- True for checkin
- lookup- True for lookup table
- selectedImage- Selected image
- Returns:
- true if success
- Throws:
- DocumentAccessException- document access exception
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.updateDocument(java.util.List, com.saperion.bean.ContentStream[], java.lang.String, com.saperion.ngc.model.document.DocumentId, boolean, boolean, int)
 
 - 
addDocumentpublic final DocumentId addDocument(java.util.List<FieldResultBean> properties, com.saperion.rmi.SaContentStream[] content, java.lang.String comment, java.lang.String ddcName, java.lang.String acls) throws SystemException, AuthenticationException Adds a new document to the archive.- Specified by:
- addDocumentin interface- DocumentService
- 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
- See Also:
- DocumentService.addDocument(java.util.List, com.saperion.rmi.SaContentStream[], java.lang.String, java.lang.String, java.lang.String)
 
 - 
addDocument@Deprecated public final DocumentId addDocument(java.util.Properties properties, com.saperion.rmi.SaContentStream[] content, java.lang.String comment, java.lang.String ddcName, java.lang.String acls) throws SystemException, AuthenticationException Deprecated.Adds a new document to the archive.- Specified by:
- addDocumentin interface- DocumentService
- 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
- See Also:
- DocumentService.addDocument(java.util.Properties, com.saperion.rmi.SaContentStream[], java.lang.String, java.lang.String, java.lang.String)
 
 - 
addDocumentpublic DocumentId addDocument(java.util.List<FieldResultBean> properties, com.saperion.rmi.SaContentStream[] content, java.lang.String comment, java.lang.String ddcName, java.lang.String acls, java.util.Map<java.lang.String,DocumentVariable> variables) throws SystemException, AuthenticationException Adds a new document to the archive.- Specified by:
- addDocumentin interface- DocumentService
- 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
- See Also:
- DocumentService.addDocument(java.util.List, com.saperion.rmi.SaContentStream[], java.lang.String, java.lang.String, java.lang.String, java.util.Map)
 
 - 
addDocumentpublic DocumentId addDocument(java.util.Map<java.lang.String,java.lang.Object> properties, com.saperion.bean.ContentStream[] content, java.lang.String comment, java.lang.String ddcName, java.lang.String acls, java.util.Map<java.lang.String,DocumentVariable> variables) throws SystemException, AuthenticationException Adds a new document to the archive.- Specified by:
- addDocumentin interface- DocumentService
- 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
- See Also:
- DocumentService.addDocument(java.util.Map, com.saperion.bean.ContentStream[], java.lang.String, java.lang.String, java.lang.String, java.util.Map)
 
 - 
createLookupItempublic final DocumentId createLookupItem(java.util.List<FieldResultBean> properties, java.lang.String ddcName) throws SystemException, AuthenticationException Create a new lookup entry.- Specified by:
- createLookupItemin interface- DocumentService
- Parameters:
- properties- meta data
- ddcName- name of the ddc
- Returns:
- id of the new document
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.createLookupItem(java.util.List, java.lang.String)
 
 - 
updateLookupItempublic void updateLookupItem(java.lang.String sysRowId, java.util.List<FieldResultBean> properties, java.lang.String ddcName) throws SystemException, AuthenticationExceptionUpdate a lookup entry.- Specified by:
- updateLookupItemin interface- DocumentService
- Parameters:
- sysRowId- SysRowId of the lookup entry
- properties- meta data
- ddcName- name of the ddc
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.updateLookupItem(java.lang.String, java.util.List, java.lang.String)
 
 - 
updateLookupItempublic void updateLookupItem(java.lang.String sysRowId, java.util.List<FieldResultBean> properties, java.lang.String ddcName, boolean isDeleted) throws SystemException, AuthenticationExceptionUpdate a lookup entry.- Specified by:
- updateLookupItemin interface- DocumentService
- 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
- See Also:
- DocumentService.updateLookupItem(String, List, String, boolean)
 
 - 
getLockDatapublic ResultLockData getLockData(DocumentId id) throws SystemException, AuthenticationException Returns the lock data for the specified document.- Specified by:
- getLockDatain interface- DocumentService
- Parameters:
- id- document id
- Returns:
- lock data
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.getLockData(com.saperion.ngc.model.document.DocumentId)
 
 - 
getLockDatapublic ResultLockData getLockData(DocumentId id, boolean isDeleted) throws SystemException, AuthenticationException Returns the lock data for the specified document.- Specified by:
- getLockDatain interface- DocumentService
- Parameters:
- id- document id
- isDeleted- pass true if the document is deleted (sysIndexState = 65002)
- Returns:
- lock data
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.getLockData(com.saperion.ngc.model.document.DocumentId)
 
 - 
checkoutDocumentpublic void checkoutDocument(DocumentId id) throws SystemException, AuthenticationException, DocumentAccessException, CheckoutFailedException Checkout a document.- Specified by:
- checkoutDocumentin interface- DocumentService
- Parameters:
- id- Document id
- Throws:
- DocumentAccessException
- SystemException- System exception
- AuthenticationException- Authentication exception
- CheckoutFailedException- thrown when the checkout-operation did not cause an exception but did not actually checkout the document. Happens on image-files.
- See Also:
- (com.saperion.ngc.model.document.DocumentId)
 
 - 
checkoutDocumentpublic void checkoutDocument(DocumentId id, boolean withShareBase, int[] shareBaseDocIds) throws SystemException, AuthenticationException, DocumentAccessException, CheckoutFailedException Checkout a document.- Specified by:
- checkoutDocumentin interface- DocumentService
- 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:
- DocumentAccessException
- SystemException- System exception
- AuthenticationException- Authentication exception
- CheckoutFailedException- thrown when the checkout-operation did not cause an exception but did not actually checkout the document. Happens on image-files.
- See Also:
- (com.saperion.ngc.model.document.DocumentId)
 
 - 
releaseDocumentpublic void releaseDocument(DocumentId id, java.lang.String comment) throws SystemException, AuthenticationException, DocumentAccessException Release a document.- Specified by:
- releaseDocumentin interface- DocumentService
- Parameters:
- id- Document id
- comment- the revision comment
- Throws:
- DocumentAccessException
- SystemException- System exception
- AuthenticationException- Authentication exception
- See Also:
- (com.saperion.ngc.model.document.DocumentId)
 
 - 
getReleaseHdocpublic java.lang.String getReleaseHdoc(java.lang.String hDoc) throws AuthenticationException, SystemExceptionGets the last released hdoc.- Specified by:
- getReleaseHdocin interface- DocumentService
- Parameters:
- hDoc- the h doc
- Returns:
- the release hdoc
- Throws:
- AuthenticationException- the authentication exception
- SystemException- the system exception
- See Also:
- DocumentService.getReleaseHdoc(java.lang.String)
 
 - 
discardCheckoutpublic void discardCheckout(DocumentId id) throws SystemException, AuthenticationException, DocumentAccessException Discards checkout of a document.- Specified by:
- discardCheckoutin interface- DocumentService
- Parameters:
- id- Document id
- Throws:
- DocumentAccessException
- SystemException- System exception
- AuthenticationException- Authentication exception
- See Also:
- DocumentService.discardCheckout(com.saperion.ngc.model.document.DocumentId)
 
 - 
getRevisionInfopublic ResultProperties getRevisionInfo(DocumentId id) throws DatabaseException, AuthenticationException, SystemException, DocumentIdentificationException Reads the properties of the specified revision.- Specified by:
- getRevisionInfoin interface- DocumentService
- Parameters:
- id- id identifying the revision (revision-id must be set!)
- Returns:
- revision properties
- Throws:
- DatabaseException- database exception
- AuthenticationException- authentication exception
- SystemException- system exception
- DocumentIdentificationException- if the id does not contain the revision id
- See Also:
- (com.saperion.ngc.model.document.DocumentId)
 
 - 
getDocumentInfopublic ResultProperties getDocumentInfo(DocumentId id) throws SystemException, AuthenticationException Reads the document properties.- Specified by:
- getDocumentInfoin interface- DocumentService
- Parameters:
- id- Document id
- Returns:
- Document properties
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
- See Also:
- DocumentService.getDocumentInfo(com.saperion.ngc.model.document.DocumentId)
 
 - 
getDocumentInfopublic ResultProperties getDocumentInfo(DocumentId id, boolean isDeleted) throws SystemException, AuthenticationException Reads the document properties.- Specified by:
- getDocumentInfoin interface- DocumentService
- Parameters:
- id- Document id
- isDeleted- pass true if the document is deleted (sysIndexState = 65002)
- Returns:
- Document properties
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
- See Also:
- DocumentService.getDocumentInfo(com.saperion.ngc.model.document.DocumentId)
 
 - 
getDocumentVersionIdspublic java.util.List<java.lang.String> getDocumentVersionIds(DocumentId id) throws SystemException, AuthenticationException Returns a list of all version IDs for the specified document.- Specified by:
- getDocumentVersionIdsin interface- DocumentService
- Parameters:
- id- document ID
- Returns:
- list of version IDs
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- (com.saperion.ngc.model.document.DocumentId)
 
 - 
getDocumentVersionpublic DocumentVersionInfo getDocumentVersion(java.lang.String versionId) throws DatabaseException, AuthenticationException, SystemException Returns the metadata of the specified version.- Specified by:
- getDocumentVersionin interface- DocumentService
- Parameters:
- versionId- ID of the version
- Returns:
- version information
- Throws:
- DatabaseException- database exception
- AuthenticationException- authentication exception
- SystemException- system exception
- See Also:
- DocumentService.getDocumentVersion(java.lang.String)
 
 - 
getDocumentVersionspublic java.util.List<DocumentVersionInfo> getDocumentVersions(DocumentId id) throws SystemException, AuthenticationException Retrieves information about a document's versions.- Specified by:
- getDocumentVersionsin interface- DocumentService
- Parameters:
- id- document id
- Returns:
- list with DocumentVersionInfo objects
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- (com.saperion.ngc.model.document.DocumentId)
 
 - 
getDocumentVersionspublic java.util.List<DocumentVersionInfo> getDocumentVersions(java.lang.String ddcName, java.lang.String objectId) throws SystemException, AuthenticationException Retrieves information about a document's versions. For use in servlets.- Specified by:
- getDocumentVersionsin interface- DocumentService
- Parameters:
- ddcName- ddc name
- objectId- object id of the document (SysRowId)
- Returns:
- list with DocumentVersionInfo objects
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.getDocumentVersions(java.lang.String, java.lang.String)
 
 - 
resolveLatestHdoc@Deprecated public java.lang.String resolveLatestHdoc(java.lang.String oldHdoc) throws com.saperion.exception.SaSystemException, com.saperion.exception.SaAuthenticationExceptionDeprecated.useresolveLatestRevision(String)insteadResolve latest hdoc(revision) for the given hdoc.- Specified by:
- resolveLatestHdocin interface- DocumentService
- 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
- See Also:
- DocumentService.resolveLatestHdoc(java.lang.String)
 
 - 
resolveLatestRevisionpublic java.lang.String resolveLatestRevision(java.lang.String oldHdoc) throws SystemException, AuthenticationExceptionResolve latest revision for the given hdoc.- Specified by:
- resolveLatestRevisionin interface- DocumentService
- Parameters:
- oldHdoc- the old hdoc to lookup
- Returns:
- the latest hdoc (revision) of the given hdoc
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.resolveLatestRevision(java.lang.String)
 
 - 
getThumbnailpublic java.awt.image.BufferedImage 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.- Specified by:
- getThumbnailin interface- DocumentService
- 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
- See Also:
- DocumentService.getThumbnail(com.saperion.ngc.model.document.DocumentId, int, int, boolean)
 
 - 
writeAuditEventpublic void writeAuditEvent(java.lang.String hdoc, DocumentService.AuditEvent event, java.lang.String remark) throws SystemException, AuthenticationExceptionWrite audit event.- Specified by:
- writeAuditEventin interface- DocumentService
- Parameters:
- hdoc- Document HDOC
- event- Event type
- remark- Remark
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.writeAuditEvent(java.lang.String, com.saperion.ngc.model.document.DocumentService.AuditEvent, java.lang.String)
 
 - 
getSessionLockspublic java.util.Set<DocumentId> getSessionLocks() Returns a set of document IDs that are locked by this session.- Specified by:
- getSessionLocksin interface- DocumentService
- Returns:
- set of document IDs
- See Also:
- DocumentService.getSessionLocks()
 
 - 
getNextCounterValue@Deprecated public int getNextCounterValue(java.lang.String ddcName, java.lang.String fieldName, java.lang.String dbFieldName) throws SystemException, AuthenticationExceptionDeprecated.Counter fields cannot be set by API any more. This method is contained for backwards-compatibility 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.- Specified by:
- getNextCounterValuein interface- DocumentService
- 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
- See Also:
- DocumentService.getNextCounterValue(java.lang.String, java.lang.String, java.lang.String)
 
 - 
getImageInfopublic DocumentImageInfo getImageInfo(DocumentId id) throws SystemException, AuthenticationException Reads the document image informations from backend.- Specified by:
- getImageInfoin interface- DocumentService
- Parameters:
- id- Document Id
- Returns:
- Image info
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.getImageInfo(com.saperion.ngc.model.document.DocumentId)
 
 - 
getActualImagepublic org.zkoss.image.Image getActualImage(DocumentId id) throws SystemException, AuthenticationException Reads the actual document image from backend.- Specified by:
- getActualImagein interface- DocumentService
- Parameters:
- id- Document Id
- Returns:
- Image
- Throws:
- SystemException- system exception
- AuthenticationException- authentication exception
- See Also:
- DocumentService.getActualImage(com.saperion.ngc.model.document.DocumentId)
 
 - 
getPageListStreampublic java.io.InputStream getPageListStream(DocumentId documentId, java.util.List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> documentElements) - Specified by:
- getPageListStreamin interface- DocumentService
- Parameters:
- documentId- ID of the document
- documentElements- list of the document's elements
- Returns:
- stream containing the page-list
 
 - 
hasVariablepublic boolean hasVariable(java.util.Properties variables, java.lang.String key)Checks, if the variable with the given case insensitive name exists.- Specified by:
- hasVariablein interface- DocumentService
- Parameters:
- variables- Variables
- key- Key name
- Returns:
- True, if exists
- See Also:
- DocumentService.hasVariable(java.util.Properties, java.lang.String)
 
 - 
getVariablepublic java.lang.String getVariable(java.util.Properties variables, java.lang.String key)Reads the variable with the given case insensitive name.- Specified by:
- getVariablein interface- DocumentService
- Parameters:
- variables- Variables
- key- Key name
- Returns:
- Variable value or null, if variable don't exists
- See Also:
- DocumentService.getVariable(java.util.Properties, java.lang.String)
 
 - 
getNotesContentpublic java.lang.String getNotesContent(java.lang.String hDoc) throws SystemException, AuthenticationExceptionReads notes element.- Specified by:
- getNotesContentin interface- DocumentService
- Parameters:
- hDoc- Document id
- Returns:
- Element content
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
- See Also:
- DocumentService.getNotesContent(java.lang.String)
 
 - 
setNotesContentpublic void setNotesContent(java.lang.String hDoc, java.lang.String ddc, java.lang.String content) throws SystemException, AuthenticationExceptionWrites the notes element.- Specified by:
- setNotesContentin interface- DocumentService
- Parameters:
- hDoc- Document id
- ddc- DDC name
- content- element content
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
- See Also:
- DocumentService.setNotesContent(java.lang.String,java.lang.String, java.lang.String)
 
 - 
resolveSapURLpublic com.saperion.bean.SapDocInfo resolveSapURL(java.lang.String url) throws SystemException, SapViewerUrlException, AuthenticationExceptionResolves the given SAP URL and returns the SapDocInfo.- Specified by:
- resolveSapURLin interface- DocumentService
- Parameters:
- url- URL
- Returns:
- SAP Document info
- Throws:
- SystemException- System exception
- SapViewerUrlException- resolving the url failed
- AuthenticationException- Authentication exception
- See Also:
- DocumentService.resolveSapURL(java.lang.String)
 
 - 
getElementSizespublic java.util.Map<java.lang.Integer,java.lang.Long> getElementSizes(java.lang.String hDoc, java.util.List<java.lang.Integer> elementsWithoutSize) throws SystemException, AuthenticationExceptionRetrieves a map with the sizes (in bytes) of elements for a given hDoc.- Specified by:
- getElementSizesin interface- DocumentService
- 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
- See Also:
- DocumentService.getElementSizes(java.lang.String, java.util.List)
 
 - 
getElementSizepublic long getElementSize(java.lang.String hDoc, int element) throws SystemException, AuthenticationExceptionRetrieves the size of the specified element (in bytes).- Specified by:
- getElementSizein interface- DocumentService
- Parameters:
- hDoc- hDoc of the document
- element- number of the element
- Returns:
- size in bytes
- Throws:
- SystemException- System exception
- AuthenticationException- Authentication exception
- See Also:
- DocumentService.getElementSize(java.lang.String, int)
 
 - 
getArchiveMetaInfopublic DocumentArchiveMetaInfo getArchiveMetaInfo(DocumentId documentId, boolean currentRevision) throws AuthenticationException, SystemException Retrieves the meta information of a document that is stored on the archive.- Specified by:
- getArchiveMetaInfoin interface- DocumentService
- 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
- SystemException
- See Also:
- DocumentService.getArchiveMetaInfo(DocumentId, boolean)
 
 - 
getArchiveMetaInfopublic DocumentArchiveMetaInfo getArchiveMetaInfo(DocumentId documentId, boolean currentRevision, boolean previewMode) throws AuthenticationException, SystemException Retrieves the meta information of a document that is stored on the archive.- Specified by:
- getArchiveMetaInfoin interface- DocumentService
- 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
- SystemException
- See Also:
- DocumentService.getArchiveMetaInfo(DocumentId, boolean, boolean)
 
 - 
hasBlackmarkerspublic boolean hasBlackmarkers(DocumentId docId) throws AuthenticationException, SystemException Checks for blackmarkers.- Specified by:
- hasBlackmarkersin interface- DocumentService
- Parameters:
- docId- The id of the document in question
- Returns:
- Whether the document has blackmarker annotations
- Throws:
- AuthenticationException
- SystemException
- See Also:
- DocumentService.hasBlackmarkers(DocumentId)
 
 - 
getRenderedDocumentpublic java.util.List<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.- Specified by:
- getRenderedDocumentin interface- DocumentService
- 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
- See Also:
- (com.saperion.ngc.model.document.DocumentId, com.saperion.connector.formats.TargetFormat, boolean)
 
 - 
getDocumentMetadataFromArchivepublic com.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.- Specified by:
- getDocumentMetadataFromArchivein interface- DocumentService
- 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
 
 - 
setDocumentReadpublic void 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.- Specified by:
- setDocumentReadin interface- DocumentService
- Parameters:
- id- document's ID
- Throws:
- DocumentIdentificationException- missing information in ID
- SystemException- system error when setting state
- AuthenticationException- authentication error when setting state
- See Also:
- DocumentService.setDocumentRead(com.saperion.ngc.model.document.DocumentId)
 
 - 
setDocumentUnreadpublic void 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.- Specified by:
- setDocumentUnreadin interface- DocumentService
- Parameters:
- id- document's ID
- Throws:
- DocumentIdentificationException- missing information in ID
- SystemException- system error when setting state
- AuthenticationException- authentication error when setting state
- See Also:
- (com.saperion.ngc.model.document.DocumentId)
 
 - 
getFullTextFieldspublic java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> getFullTextFields(java.lang.String ddcName, java.util.List<java.lang.String> fullTextFields, java.lang.String hdoc) throws SystemException- Specified by:
- getFullTextFieldsin interface- DocumentService
- 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
 
 
- 
 
-