public class DocClassicConnectorService extends ClassicConnectorService implements DocumentService
DocumentService.AuditEvent
ddcCache
COMP_ID, COMP_TYPE, IXOS_ANNO, NEEDED_COMP_ID, NEEDED_COMP_TYPE, NOTES_NAME
Constructor and Description |
---|
DocClassicConnectorService()
Constructor.
|
DocClassicConnectorService(ConnectionProvider<com.saperion.connector.SaClassicConnector> connectionProvider)
Creates a new
DocClassicConnectorService . |
DocClassicConnectorService(javax.servlet.http.HttpSession session)
Creates a new DocClassicConnectorService.
|
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.
|
com.saperion.connector.service.RmiClientExtendedLookupEntryService |
createLookupEntryService(com.saperion.connector.SaClassicConnector connector) |
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 docId)
Deprecated.
use
getAclNames(DocumentId) instead. Will be removed in 8.1. |
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.
|
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.
|
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.
|
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 docId,
String acl,
String comment)
Deprecated.
use
setAclNames(DocumentId, List, String) instead. Will be removed in 8.1. |
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 |
writeAuditEvent(String hdoc,
DocumentService.AuditEvent event,
String remark)
Write audit event.
|
convertAuthenticationException, getCachedDDC, getConnectionProvider, getCurrentUserFromSession, getSession, getWfConnectionProvider, isActive
public DocClassicConnectorService()
public DocClassicConnectorService(javax.servlet.http.HttpSession session)
session
- HTTP sessionpublic DocClassicConnectorService(ConnectionProvider<com.saperion.connector.SaClassicConnector> connectionProvider)
DocClassicConnectorService
.connectionProvider
- connection providerpublic final 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.
getReleasedStream
in interface DocumentService
hDoc
- document HDOCelement
- sub documentcurrentRevision
- the current revisionBinaryUnavailableException
- when the binary content could not be accessed.AuthenticationException
- when the user is not authenticatedDocumentService.getReleasedStream(java.lang.String, int,
boolean)
public final InputStream getStream(String hDoc, int element, boolean currentRevision) throws BinaryUnavailableException, AuthenticationException
getStream
in interface DocumentService
hDoc
- document HDOCelement
- sub documentcurrentRevision
- currentRevisionBinaryUnavailableException
- when the binary content could not be accessed.AuthenticationException
- when the user is not authenticatedDocumentService.getStream(java.lang.String, int,
boolean)
public final InputStream getStream(String hDoc, int element) throws BinaryUnavailableException, AuthenticationException
getStream
in interface DocumentService
hDoc
- document HDOCelement
- sub documentBinaryUnavailableException
- when the binary content could not be accessed.AuthenticationException
- when the user is not authenticatedDocumentService.getStream(java.lang.String, int)
public InputStream getStream(String hDoc, int element, boolean currentRevision, long start, long size) throws BinaryUnavailableException, AuthenticationException
getStream
in interface DocumentService
hDoc
- document HDOCelement
- sub documentcurrentRevision
- currentRevisionstart
- Startbytesize
- StreamsizeBinaryUnavailableException
- when the binary content could not be accessed.AuthenticationException
- when the user is not authenticatedDocumentService.getStream(java.lang.String, int,
boolean, long, long)
public PageList getPageList(String hDoc, int element, boolean currentRevision) throws BinaryUnavailableException, AuthenticationException
getPageList
in interface DocumentService
hDoc
- document HDOCelement
- sub documentcurrentRevision
- currentRevisionBinaryUnavailableException
- when the binary content could not be accessed.AuthenticationException
- when the user is not authenticatedDocumentService.getPageList(java.lang.String, int, boolean)
@Deprecated public final String getAnnotations(String hDoc, int element) throws AuthenticationException, SystemException
getAnnotations(String, int, boolean)
insteadgetAnnotations
in interface DocumentService
hDoc
- document hDocelement
- document elementAuthenticationException
- if user identification failsSystemException
- in case of common system errorDocumentService.getAnnotations(java.lang.String, int)
public final String getAnnotations(String hDoc, int element, boolean currentRevision) throws AuthenticationException, SystemException
getAnnotations
in interface DocumentService
hDoc
- document hDocelement
- document elementcurrentRevision
- currentRevisionAuthenticationException
- if user identification failsSystemException
- in case of common system errorDocumentService.getAnnotations(java.lang.String,
int,boolean)
public final void setAnnotations(String hDoc, int element, String annotations) throws AuthenticationException, SystemException
setAnnotations
in interface DocumentService
hDoc
- document hDocelement
- document elementannotations
- annotations stringAuthenticationException
- if user identification failsSystemException
- in case of common system errorDocumentService.setAnnotations(java.lang.String, int,
java.lang.String)
public ResultAccessData getAccessData(DocumentId id) throws SystemException, AuthenticationException
getAccessData
in interface DocumentService
id
- document idSystemException
- System exceptionAuthenticationException
- Authentication exceptionDocumentService.getAccessData(com.saperion.ngc.model.document.DocumentId)
public ResultAccessData getAccessData(String revisionId) throws SystemException, AuthenticationException
getAccessData
in interface DocumentService
revisionId
- document's revision idSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.getAccessData(java.lang.String)
public ResultAccessData getLookupEntryAccessData(DocumentId id) throws SystemException, AuthenticationException
DocumentService
getLookupEntryAccessData
in interface DocumentService
id
- the id of the entrySystemException
- system error when getting access dataAuthenticationException
- authentication error when getting access datapublic com.saperion.connector.service.RmiClientExtendedLookupEntryService createLookupEntryService(com.saperion.connector.SaClassicConnector connector)
@Deprecated public String getAcl(DocumentId docId) throws SystemException, AuthenticationException
getAclNames(DocumentId)
instead. Will be removed in 8.1.getAcl
in interface DocumentService
docId
- document idSaConstants.ACL_DELIMITER
to get multiple ACLs)SystemException
- System exceptionAuthenticationException
- Authentication exceptionDocumentService.getAcl(com.saperion.ngc.model.document.DocumentId)
public List<String> getAclNames(DocumentId id) throws SystemException, AuthenticationException
DocumentService
getAclNames
in interface DocumentService
id
- document idSystemException
- System exceptionAuthenticationException
- Authentication exception@Deprecated public void setAcl(DocumentId docId, String acl, String comment) throws SystemException, AuthenticationException
setAclNames(DocumentId, List, String)
instead. Will be removed in 8.1.setAcl
in interface DocumentService
docId
- document idacl
- ACL string (separated by SaConstants.ACL_DELIMITER
to set multiple ACLs)comment
- revision commentSystemException
- System exceptionAuthenticationException
- Authentication exceptionDocumentService.setAcl(com.saperion.ngc.model.document.DocumentId,
java.lang.String, java.lang.String)
public void setAclNames(DocumentId id, List<String> acls, String comment) throws SystemException, AuthenticationException
DocumentService
setAclNames
in interface DocumentService
id
- document idacls
- a list of ACL names to set on the specified documentcomment
- revision commentSystemException
- System exceptionAuthenticationException
- Authentication exceptionpublic final boolean lockDocument(DocumentId id) throws SystemException, AuthenticationException, DocumentLockException
lockDocument
in interface DocumentService
id
- Document IDSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentLockException
- lock exceptionDocumentService.lockDocument(com.saperion.ngc.model.document.DocumentId)
public final boolean unlockDocument(DocumentId id) throws SystemException, AuthenticationException, DocumentLockException
unlockDocument
in interface DocumentService
id
- Document IDSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentLockException
- lock exceptionDocumentService.unlockDocument(com.saperion.ngc.model.document.DocumentId)
public final boolean deleteDocument(DocumentId id) throws DocumentAccessException, SystemException, AuthenticationException
deleteDocument
in interface DocumentService
id
- Document idDocumentAccessException
- document access exceptionSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.deleteDocument(com.saperion.ngc.model.document.DocumentId)
public boolean deleteDocument(DocumentId id, boolean finalDelete) throws SystemException, AuthenticationException, DocumentAccessException
deleteDocument
in interface DocumentService
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(com.saperion.ngc.model.document.DocumentId, boolean)
@Deprecated public final com.saperion.intf.SaSaveInfo updateDocument(Properties properties, com.saperion.bean.ContentStream[] content, String comment, DocumentId docId, boolean checkin, boolean lookup, int selectedImage) throws DocumentAccessException, SystemException, AuthenticationException
updateDocument(DocumentId, DataToUpdate, UpdateSettings)
insteadupdateDocument
in interface DocumentService
properties
- Propertiescontent
- Document contentcomment
- revision commentdocId
- Document IDcheckin
- True for checkinlookup
- True for lookup tableselectedImage
- Selected imageDocumentAccessException
- document access exceptionSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.updateDocument(java.util.Properties,
com.saperion.bean.ContentStream[], java.lang.String,
com.saperion.ngc.model.document.DocumentId, boolean, boolean, int)
public DocumentId updateDocument(DocumentId docId, DataToUpdate data, UpdateSettings settings) throws SystemException, AuthenticationException, DocumentAccessException
updateDocument
in interface DocumentService
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)(com.saperion.ngc.model.document.DocumentId, com.saperion.ngc.model.document.DataToUpdate,
com.saperion.ngc.model.document.UpdateSettings)
public String getIXOSAnnotation(String hdoc) throws AuthenticationException, SystemException
getIXOSAnnotation
in interface DocumentService
hdoc
- Document IDAuthenticationException
- AuthenticationExceptionSystemException
- SystemExceptionDocumentService.getIXOSAnnotation(java.lang.String)
public final void removeIXOSAnno(DocumentId docId) throws DocumentAccessException, SystemException, AuthenticationException
removeIXOSAnno
in interface DocumentService
docId
- Document IDDocumentAccessException
- document access exceptionSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.removeIXOSAnno(com.saperion.ngc.model.document.DocumentId)
@Deprecated public final com.saperion.intf.SaSaveInfo updateDocument(List<FieldResultBean> properties, com.saperion.bean.ContentStream[] content, String comment, DocumentId docId, boolean checkin, boolean lookup, int selectedImage) throws DocumentAccessException, SystemException, AuthenticationException
updateDocument(DocumentId, DataToUpdate, UpdateSettings)
insteadupdateDocument
in interface DocumentService
properties
- Propertiescontent
- Document contentcomment
- revision commentdocId
- Document IDcheckin
- True for checkinlookup
- True for lookup tableselectedImage
- Selected imageDocumentAccessException
- document access exceptionSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.updateDocument(java.util.List,
com.saperion.bean.ContentStream[], java.lang.String,
com.saperion.ngc.model.document.DocumentId, boolean, boolean, int)
public final DocumentId addDocument(List<FieldResultBean> properties, com.saperion.rmi.SaContentStream[] content, String comment, String ddcName, String acls) throws SystemException, AuthenticationException
addDocument
in interface DocumentService
properties
- meta datacontent
- contentcomment
- commentddcName
- name of the ddcacls
- semicolon separated string of ACL namesSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.addDocument(java.util.List,
com.saperion.rmi.SaContentStream[], java.lang.String, java.lang.String,
java.lang.String)
@Deprecated public final 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)
insteadaddDocument
in interface DocumentService
properties
- meta datacontent
- contentcomment
- commentddcName
- name of the ddcacls
- semicolon separated string of ACL namesSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.addDocument(java.util.Properties,
com.saperion.rmi.SaContentStream[], java.lang.String, java.lang.String,
java.lang.String)
public DocumentId addDocument(List<FieldResultBean> properties, com.saperion.rmi.SaContentStream[] content, String comment, String ddcName, String acls, Map<String,DocumentVariable> variables) throws SystemException, AuthenticationException
addDocument
in interface DocumentService
properties
- meta datacontent
- contentcomment
- commentddcName
- name of the ddcacls
- semicolon separated string of ACL namesvariables
- variables to add to the documentSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.addDocument(java.util.List,
com.saperion.rmi.SaContentStream[], java.lang.String, java.lang.String, java.lang.String, java.util.Map)
public DocumentId addDocument(Map<String,Object> properties, com.saperion.bean.ContentStream[] content, String comment, String ddcName, String acls, Map<String,DocumentVariable> variables) throws SystemException, AuthenticationException
addDocument
in interface DocumentService
properties
- meta datacontent
- contentcomment
- commentddcName
- name of the ddcacls
- semicolon separated string of ACL namesvariables
- variables to add to the documentSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.addDocument(java.util.Map,
com.saperion.bean.ContentStream[], java.lang.String, java.lang.String, java.lang.String, java.util.Map)
public final DocumentId createLookupItem(List<FieldResultBean> properties, String ddcName) throws SystemException, AuthenticationException
createLookupItem
in interface DocumentService
properties
- meta dataddcName
- name of the ddcSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.createLookupItem(java.util.List,
java.lang.String)
public void updateLookupItem(String sysRowId, List<FieldResultBean> properties, String ddcName) throws SystemException, AuthenticationException
updateLookupItem
in interface DocumentService
sysRowId
- SysRowId of the lookup entryproperties
- meta dataddcName
- name of the ddcSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.updateLookupItem(java.lang.String,
java.util.List, java.lang.String)
public ResultLockData getLockData(DocumentId id) throws SystemException, AuthenticationException
getLockData
in interface DocumentService
id
- document idSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.getLockData(com.saperion.ngc.model.document.DocumentId)
public void checkoutDocument(DocumentId id) throws SystemException, AuthenticationException, DocumentAccessException, CheckoutFailedException
checkoutDocument
in interface DocumentService
id
- Document idDocumentAccessException
SystemException
- System exceptionAuthenticationException
- Authentication exceptionCheckoutFailedException
- thrown when the checkout-operation did not cause an exception but did not
actually checkout the document. Happens on image-files.(com.saperion.ngc.model.document.DocumentId)
public void releaseDocument(DocumentId id, String comment) throws SystemException, AuthenticationException, DocumentAccessException
releaseDocument
in interface DocumentService
id
- Document idcomment
- the revision commentDocumentAccessException
SystemException
- System exceptionAuthenticationException
- Authentication exception(com.saperion.ngc.model.document.DocumentId)
public String getReleaseHdoc(String hDoc) throws AuthenticationException, SystemException
getReleaseHdoc
in interface DocumentService
hDoc
- the h docAuthenticationException
- the authentication exceptionSystemException
- the system exceptionDocumentService.getReleaseHdoc(java.lang.String)
public void discardCheckout(DocumentId id) throws SystemException, AuthenticationException, DocumentAccessException
discardCheckout
in interface DocumentService
id
- Document idDocumentAccessException
SystemException
- System exceptionAuthenticationException
- Authentication exceptionDocumentService.discardCheckout(com.saperion.ngc.model.document.DocumentId)
public ResultProperties getRevisionInfo(DocumentId id) throws DatabaseException, AuthenticationException, SystemException, DocumentIdentificationException
getRevisionInfo
in interface DocumentService
id
- id identifying the revision (revision-id must be set!)DatabaseException
- database exceptionAuthenticationException
- authentication exceptionSystemException
- system exceptionDocumentIdentificationException
- if the id does not contain the revision id(com.saperion.ngc.model.document.DocumentId)
public ResultProperties getDocumentInfo(DocumentId id) throws SystemException, AuthenticationException
getDocumentInfo
in interface DocumentService
id
- Document idSystemException
- System exceptionAuthenticationException
- Authentication exceptionDocumentService.getDocumentInfo(com.saperion.ngc.model.document.DocumentId)
public List<String> getDocumentVersionIds(DocumentId id) throws SystemException, AuthenticationException
getDocumentVersionIds
in interface DocumentService
id
- document IDSystemException
- system exceptionAuthenticationException
- authentication exception(com.saperion.ngc.model.document.DocumentId)
public DocumentVersionInfo getDocumentVersion(String versionId) throws DatabaseException, AuthenticationException, SystemException
getDocumentVersion
in interface DocumentService
versionId
- ID of the versionDatabaseException
- database exceptionAuthenticationException
- authentication exceptionSystemException
- system exceptionDocumentService.getDocumentVersion(java.lang.String)
public List<DocumentVersionInfo> getDocumentVersions(DocumentId id) throws SystemException, AuthenticationException
getDocumentVersions
in interface DocumentService
id
- document idSystemException
- system exceptionAuthenticationException
- authentication exception(com.saperion.ngc.model.document.DocumentId)
public List<DocumentVersionInfo> getDocumentVersions(String ddcName, String objectId) throws SystemException, AuthenticationException
getDocumentVersions
in interface DocumentService
ddcName
- ddc nameobjectId
- object id of the document (SysRowId)SystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.getDocumentVersions(java.lang.String,
java.lang.String)
@Deprecated public String resolveLatestHdoc(String oldHdoc) throws com.saperion.exception.SaSystemException, com.saperion.exception.SaAuthenticationException
resolveLatestRevision(String)
insteadresolveLatestHdoc
in interface DocumentService
oldHdoc
- the old hdoc to lookupcom.saperion.exception.SaSystemException
- system exceptioncom.saperion.exception.SaAuthenticationException
- authentication exceptionDocumentService.resolveLatestHdoc(java.lang.String)
public String resolveLatestRevision(String oldHdoc) throws SystemException, AuthenticationException
resolveLatestRevision
in interface DocumentService
oldHdoc
- the old hdoc to lookupSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.resolveLatestRevision(java.lang.String)
public BufferedImage getThumbnail(DocumentId id, int height, int width, boolean color) throws SystemException, AuthenticationException
getThumbnail
in interface DocumentService
id
- document idheight
- thumbnail heightwidth
- thumbnail widthcolor
- color optionSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.getThumbnail(com.saperion.ngc.model.document.DocumentId,
int, int, boolean)
public void writeAuditEvent(String hdoc, DocumentService.AuditEvent event, String remark) throws SystemException, AuthenticationException
writeAuditEvent
in interface DocumentService
hdoc
- Document HDOCevent
- Event typeremark
- RemarkSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.writeAuditEvent(java.lang.String,
com.saperion.ngc.model.document.DocumentService.AuditEvent, java.lang.String)
public Set<DocumentId> getSessionLocks()
getSessionLocks
in interface DocumentService
DocumentService.getSessionLocks()
public int getNextCounterValue(String ddcName, String fieldName, String dbFieldName) throws SystemException, AuthenticationException
getNextCounterValue
in interface DocumentService
ddcName
- name of the ddcfieldName
- name of the counter fielddbFieldName
- database name of the counter fieldSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.getNextCounterValue(java.lang.String,
java.lang.String, java.lang.String)
public DocumentImageInfo getImageInfo(DocumentId id) throws SystemException, AuthenticationException
getImageInfo
in interface DocumentService
id
- Document IdSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.getImageInfo(com.saperion.ngc.model.document.DocumentId)
public org.zkoss.image.Image getActualImage(DocumentId id) throws SystemException, AuthenticationException
getActualImage
in interface DocumentService
id
- Document IdSystemException
- system exceptionAuthenticationException
- authentication exceptionDocumentService.getActualImage(com.saperion.ngc.model.document.DocumentId)
public boolean hasVariable(Properties variables, String key)
hasVariable
in interface DocumentService
variables
- Variableskey
- Key nameDocumentService.hasVariable(java.util.Properties,
java.lang.String)
public String getVariable(Properties variables, String key)
getVariable
in interface DocumentService
variables
- Variableskey
- Key nameDocumentService.getVariable(java.util.Properties,
java.lang.String)
public String getNotesContent(String hDoc) throws SystemException, AuthenticationException
getNotesContent
in interface DocumentService
hDoc
- Document idSystemException
- System exceptionAuthenticationException
- Authentication exceptionDocumentService.getNotesContent(java.lang.String)
public void setNotesContent(String hDoc, String ddc, String content) throws SystemException, AuthenticationException
setNotesContent
in interface DocumentService
hDoc
- Document idddc
- DDC namecontent
- element contentSystemException
- System exceptionAuthenticationException
- Authentication exceptionDocumentService.setNotesContent(java.lang.String,java.lang.String,
java.lang.String)
public com.saperion.bean.SapDocInfo resolveSapURL(String url) throws SystemException, SapViewerUrlException, AuthenticationException
resolveSapURL
in interface DocumentService
url
- URLSystemException
- System exceptionSapViewerUrlException
- resolving the url failedAuthenticationException
- Authentication exceptionDocumentService.resolveSapURL(java.lang.String)
public Map<Integer,Long> getElementSizes(String hDoc, List<Integer> elementsWithoutSize) throws SystemException, AuthenticationException
getElementSizes
in interface DocumentService
hDoc
- hDoc of the documentelementsWithoutSize
- List of elementNumbers for elements without a file size.SystemException
- System exceptionAuthenticationException
- Authentication exceptionDocumentService.getElementSizes(java.lang.String,
java.util.List)
public long getElementSize(String hDoc, int element) throws SystemException, AuthenticationException
getElementSize
in interface DocumentService
hDoc
- hDoc of the documentelement
- number of the elementSystemException
- System exceptionAuthenticationException
- Authentication exceptionDocumentService.getElementSize(java.lang.String, int)
public DocumentArchiveMetaInfo getArchiveMetaInfo(DocumentId documentId, boolean currentRevision) throws AuthenticationException, SystemException
getArchiveMetaInfo
in interface DocumentService
documentId
- The id of the document the information is aboutcurrentRevision
- if true, the latest revision of the document will be retrievedAuthenticationException
SystemException
DocumentService.getArchiveMetaInfo(DocumentId, boolean)
public DocumentArchiveMetaInfo getArchiveMetaInfo(DocumentId documentId, boolean currentRevision, boolean previewMode) throws AuthenticationException, SystemException
getArchiveMetaInfo
in interface DocumentService
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
SystemException
DocumentService.getArchiveMetaInfo(DocumentId, boolean, boolean)
public boolean hasBlackmarkers(DocumentId docId) throws AuthenticationException, SystemException
hasBlackmarkers
in interface DocumentService
docId
- The id of the document in questionAuthenticationException
SystemException
DocumentService.hasBlackmarkers(DocumentId)
public List<com.saperion.connector.renditions.Rendition> getRenderedDocument(DocumentId documentId, com.saperion.connector.formats.TargetFormat format, boolean currentRevision) throws SystemException, AuthenticationException, RenderingFailedException
getRenderedDocument
in interface DocumentService
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 failed(com.saperion.ngc.model.document.DocumentId,
com.saperion.connector.formats.TargetFormat, boolean)
public com.saperion.intf.SaPropertyValue[] getDocumentMetadataFromArchive(DocumentId id, boolean currentRevision) throws DocumentIdentificationException, SystemException, AuthenticationException, DatabaseException
getDocumentMetadataFromArchive
in interface DocumentService
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 metadatagetDocumentMetadataFromArchive(com.saperion.ngc.model.document.DocumentId, boolean)
public void setDocumentRead(DocumentId id) throws DocumentIdentificationException, SystemException, AuthenticationException
setDocumentRead
in interface DocumentService
id
- document's IDDocumentIdentificationException
- missing information in IDSystemException
- system error when setting stateAuthenticationException
- authentication error when setting stateDocumentService.setDocumentRead(com.saperion.ngc.model.document.DocumentId)
public void setDocumentUnread(DocumentId id) throws DocumentIdentificationException, SystemException, AuthenticationException
setDocumentUnread
in interface DocumentService
id
- document's IDDocumentIdentificationException
- missing information in IDSystemException
- system error when setting stateAuthenticationException
- authentication error when setting state(com.saperion.ngc.model.document.DocumentId)
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.