public interface SaClassicConnector
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(SaEventListener listener)
Deprecated.
will be removed with version 8.0
|
void |
addListener(SaStatusEventListener listener)
Deprecated.
will be removed with version 8.0
|
void |
addToFolder(String folderTableDDC,
String documentId,
String documentDDC,
String folderId)
Adds the document with given documentId to a given folder with given folderId.
|
SaSaveInfo |
cacheDocument(String xhDoc,
DocumentInfo document)
Caches the given document on the backend system.
|
SaSaveInfo |
cacheDocument(String xhDoc,
String ddcName,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String strAcl)
Caches a new document on the backend system with the given metadata and content.
|
void |
changePassword(String user,
String oldPassword,
String client,
String newPassword)
Changes the password of an existing user.
|
void |
checkoutDocument(String hDoc)
Checkouts a document for the given document id (hdoc).
|
SapDocInfo |
checkSapUrl(String url)
Checks the given SAP URL on the R/Link server and returns, if successfull, the HDOC and the
DDC.
|
String |
copyFolder(String folderTableDDC,
String folderId,
String destinationId,
String beforeChild,
boolean withDocuments)
Copies the given folder and all it's children to the destination.
|
SaSaveInfo |
createDocument(DocumentInfo document)
Creates a new document on the backend system with the given
DocumentInfo. |
SaSaveInfo |
createDocument(String ddcName,
Properties namevaluePairs,
InputStream[] content,
String versionComment)
Deprecated.
will be removed with version 8.0, use
createDocument(DocumentInfo) instead. |
SaSaveInfo |
createDocument(String ddcName,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String acls)
Deprecated.
will be removed with version 8.0, use
createDocument(DocumentInfo) instead. |
String |
createFolder(SaFolderSaveInfo info,
Properties namevaluePairs)
Creates a new folder below a given folder.
|
String |
createFolder(String folderTableDDC,
String parentId,
String beforeChild,
String folderName,
SaFolderConstants.FOLDER_TYPE folderType,
Properties namevaluePairs)
Deprecated.
use
createFolder(SaFolderSaveInfo, Properties) instead. Will be removed with version 8.0 |
SaSaveInfo |
createLink(LinkInfo link)
Creates a link to a document for given
LinkInfo. |
String |
createLookupEntry(String ddc,
Properties props)
Deprecated.
This method does not handle system fields and might be removed in a future version.
Use
invoke(Operation) with a CreateLookupEntry operation instead. |
void |
deleteDocument(String documentHDOC,
int deleteType)
Deletes a document from the backend system with the given strategy.
|
void |
deleteFolder(String folderTableDDC,
String folderId)
Deletes an existing folder.
|
void |
deleteLookupEntry(String ddc,
String id)
Deprecated.
This method does not handle system fields and might be removed in a future version.
Use
invoke(Operation) with a DeleteLookupEntry operation instead. |
boolean |
deleteSetting(String name,
String section,
boolean isLong)
Deletes a setting in the database.
|
void |
discardCheckout(String hDoc)
Discards the checkout of the given document.
|
String |
getACLNames(String documentHDOC)
Reads the ACL's for the given document.
|
SaACLRights |
getACLRights(String[] acls)
Read the rights for the given ACL's.
|
List<SaAcl> |
getAcls()
Reads all existing ACLs.
|
List<String> |
getAllACLs()
Deprecated.
use
getAcls() instead. Will be removed with version 8.0 |
String |
getAnnotations(String hDoc,
int indexOfContentElement)
Deprecated.
use
getAnnotations(String, int, boolean) instead. Will be removed with version 8.0 |
String |
getAnnotations(String hDoc,
int indexOfContentElement,
boolean currentRevision)
Reads the annotations from the given document.
|
int |
getArchivedSize(String hDoc)
Returns the total document size in the archive.
|
List<UsersRights> |
getAuthorizedUsers(String hDoc,
String rights,
MatchKind match)
Returns the users, that have specific rights on a document.
|
Properties |
getConfiguration(String section)
Reads the application configuration properties from the backend system.
|
SaUserInfo |
getCurrentUserInfo()
Gets detailed info about the current user.
|
String |
getCurrentUserName()
Returns the name of the current user.
|
SaFieldDescription[] |
getDBDefinition(String name)
Reads the definitions of a database definition (DDC) for the given name.
|
DDC |
getDDC(String ddcName)
Returns information about the requested DDC.
|
String[] |
getDefinitions()
Reads the registered DDC names from the repository.
|
SaDocAccessData |
getDocumentAccessData(String documentHDOC)
Reads the access rights of the given document.
|
long |
getDocumentFolderCount(String folderTableDDC,
String documentDDC,
String sysRowId)
Returns the total count over all folders from all users in which the specified document is
contained in.
|
List<SaDocumentInfo> |
getDocumentFolders(String folderTableDDC,
String documentDDC,
String sysRowId)
Returns a list of folder properties which contains all folders the document is contained in.
|
SaDocInfo |
getDocumentInfo(String hDoc,
boolean currentRevision,
boolean resolveLinks)
Reads the document information for the given document.
|
SaDocInfo |
getDocumentInfo(String hDoc,
boolean currentRevision,
boolean resolveLinks,
boolean forceSizeDetermination)
Reads the document information for the given document.
|
boolean |
getEventsEnabled()
Returns whether events (e.g.
|
SaFeature |
getFeatures()
Reads the features.
|
SaDocumentInfo |
getFolderByPath(String folderTableDDC,
String startFolderId,
String folderPath)
Returns the folder which matches to the given path.
|
List<SaDocumentInfo> |
getFolderChildren(String folderTableDDC,
String folderId,
int depth,
SaQueryInfo filter,
int allowedMaxNrOfChildFolders)
Returns a list with the children of the given node.
|
SaFolderClass |
getFolderClass(String className)
Reads the folder class with the given name.
|
String[] |
getFolderDefinitions()
Reads the registered folder DDC names from the repository.
|
List<SaDocumentInfo> |
getFolderFromPath(String folderTableDDC,
String startFolderId,
String folderPath)
Returns the folders which match to the given path.
|
SaDocumentInfo |
getFolderInfo(String folderTableDDC,
String folderId)
Deprecated.
use
getFolderInfo(String, String, boolean) instead |
SaDocumentInfo |
getFolderInfo(String folderTableDDC,
String folderId,
boolean forceLoadVariables)
Returns the folder information object for the given folder.
|
SaDocumentInfo |
getFolderParent(String folderTableDDC,
String folderId)
Returns the parent of the given folder.
|
SaDocAccessData |
getFolderRights(String folderTableDDC,
String folderId)
Returns the rights mask for the given folder and user.
|
Set<FolderUpdateInfo> |
getFolderUpdateInfo(Map<String,Long> folderIds)
Generates the cut set of folders that are open on ngclient side and changed on rich client
side over a specified period of time like the last 10 minutes.
|
String |
getFulltext(String ddcName,
String sysRowId)
Deprecated.
Will be removed in 8.0. Use
getFulltext(String, String, String, long) instead. |
String |
getFulltext(String ddcName,
String hdoc,
String fieldName,
long length)
Reads the fulltext information for the given document with the given HDOC in the given
DDC from the specified field.
|
List<String> |
getInvolvedUsers(String documentHDOC)
Reads all users involved in the set of ACL's.
|
int |
getLicenseCount(int type)
Read the licence count for the given user.
|
SaLockInfo |
getLockInfo(String sysRowId)
Returns the locking informations for a given document.
|
String |
getReleasedHdoc(String oldHdoc)
Gets the released hdoc for given hdoc if release feature is on and release tag is set,
otherwise returns the given hDoc.
|
List<Rendition> |
getRendition(Element element,
Options options) |
Setting |
getSetting(String name,
String section,
boolean isLong)
Retrieves a
Setting identified by it's key and section from the database. |
Set<SourceFormat> |
getSupportedRenderSourceFormats()
Gets the supported source formats from the render engine.
|
Set<TargetFormat> |
getSupportedRenderTargetFormats()
Gets the supported target formats from the render engine.
|
List<String> |
getSystemFiles(SystemFileKind kind,
String filter)
Gets the system files of a specific kind.
|
SaSystemInfo |
getSystemInfo()
Reads the system informations.
|
SaSystemSetting |
getSystemSetting(String accessKey)
Retrieves a system setting object.
|
byte[] |
getThumbnail(String hDoc,
int widthX,
int widthY,
boolean color)
Reads the thumbnail of the given document.
|
SaUserSetting |
getUserSetting(String accessKey)
Retrieves a user-specific setting object.
|
List<String> |
getVersionIDs(String ddcName,
String sysrowID)
Reads the version IDs of the given document.
|
SaWFConnector |
getWorkflowConnector()
Returns a workflow connector based on this classic connector.
|
boolean |
hasRenderEngine()
Checks wether this classic connector has a render engine.
|
<T extends Serializable> |
invoke(Operation<T> operation)
Invokes the given
Operation on the server side. |
boolean |
isAlive()
Test the lifetime of this connector.
|
boolean |
isReleaseActive()
Checks if is release feature in the program.ini in section [Release] is active.
|
InputStream |
loadSystemFile(SystemFileKind kind,
String name)
Loads a system file of a specific kind.
|
boolean |
lockDocument(String sysRowId,
String ddcName)
Locks a document.
|
void |
logClientEvent(String hdoc,
SaConstants.ProtoEvents event,
String remark)
Adds an audit log event.
|
boolean |
logoff()
Log off from the system.
|
int |
logon(byte[] token,
int type,
String client)
Deprecated.
will be removed with version 8.0
|
com.saperion.connector.authentication.Session |
logon(com.saperion.connector.authentication.Credentials credentials)
Performs a logon with the given Credentials and returns the information about the open
session.
|
int |
logon(jcifs.smb.NtlmPasswordAuthentication auth,
int type,
String client)
Deprecated.
will be removed with version 8.0
|
int |
logon(String username,
String password,
int type,
String client)
performs logon to the backend system.
|
void |
moveFolder(String folderTableDDC,
String folderId,
String destinationId,
String beforeChild)
Moves the given folder to a new destination.
|
void |
moveToFolder(String folderTableDDC,
String documentId,
String documentDDC,
String folderId,
String destinationId)
Removes the document from the source folder and adds it to the source folder.
|
InputStream |
readDocument(String documentHDOC,
boolean currentRevision,
int elementNumber)
Loads a document's content from the backend system.
|
String |
readDocumentFilename(String documentHDOC,
boolean currentRevision,
int elementNumber)
Deprecated.
will be removed with version 8.0
|
SaPropertyValue[] |
readDocumentMetadata(String documentSysRowID,
String ddcName,
String[] fields)
Reads the metadata of the document with the given ID.
|
InputStream |
readReleasedDocument(String docHdoc,
boolean currentRevision,
int elementNumber)
Read released document if the release feature is
active.
|
InputStream |
readVersionDocument(String versionID,
int elementNumber)
Loads a document version from the backend system.
|
String |
readVersionDocumentFilename(String documentHDOC,
int elementNumber)
Deprecated.
use getDocumentInfo.getFullName() instead. Will be removed with version 8.0
|
SaVersionData |
readVersionMetadata(String versionID)
Reads the version metadata of the document with the given ID.
|
void |
releaseDocument(String ddcName,
String hDoc,
String versionComment)
Release the given document.
|
boolean |
removeEvent(SaEvent event)
Deprecated.
no longer supported. Will be removed with version 8.0
|
void |
removeFromFolder(String folderTableDDC,
String documentSysRowId,
String documentDDC,
String folderId)
Removes the document from the given folder.
|
void |
removeListener(SaEventListener listener)
Deprecated.
will be removed with version 8.0
|
void |
removeListener(SaStatusEventListener listener)
Deprecated.
will be removed with version 8.0
|
String |
resolveLatestHDoc(String oldHdoc)
Resolves and returns the XHDOC of the latest version of the document identified by the given
HDOC.
|
SaSaveInfo |
restoreVersion(String versionID)
Restores the version with the given HDOC.
|
List<SaPropertyValue[]> |
search(String hqlQuery)
Deprecated.
Use searchHQL() instead. Will be removed with version 8.0
|
Set<SaFolderClass> |
searchFolderClass(SaFolderClassSearchInfo searchInfo)
Searches for folder classes that match the specified propertied.
|
List<SaDocumentInfo> |
searchFolderDocuments(String folderTableDDC,
String folderId,
SaQueryInfo hqlFilter)
HQL search extended with additional folder informations and depth.
|
List<SaDocumentInfo> |
searchHQL(SaQueryInfo hqlQuery)
Performs a search with the given hql query (hibernate query language).
|
SettingSearchResult |
searchSettings(SettingSearchInfo searchInfo)
Searches for settings.
|
void |
sendBarcode(String indexMask,
String docUid,
String contentRep,
String sid,
String docType,
String value,
int mandant)
Send barcode to SAP.
|
SaSaveInfo |
setACLName(String ddcname,
String documentHDOC,
String acl,
String versionComment)
Adds the given ACL to the node.
|
void |
setAnnotations(String hDoc,
int indexOfContentElement,
String annotations)
Sets the given annotations to the document.
|
void |
setCurrentUserPresent(boolean present)
Deprecated.
Use
updateCurrentUserInformation(MutableUserInformation) instead.
Will be removed with version 8.0. |
void |
setEventsEnabled(boolean enabled)
Sets whether events (e.g.
|
void |
setFolderAcl(String folderTableDDC,
String folderId,
String aclName)
Sets an ACL for the given folder.
|
void |
setLocale(Locale locale)
Set the localization information for this user.
|
void |
setSetting(Setting setting)
Stores a
Setting in the database. |
boolean |
setUsedLicense(int type,
int count)
Set the count of used licenses.
|
void |
setUserSetting(SaUserSetting setting)
Persists a user-specific setting object.
|
void |
stopServer()
Deprecated.
Functionality removed because of security-concerns. Method contained for
compatibility only. Use windows service management tool or SAPERION MMC to stop
the server. Will be removed with version 8.0.
|
void |
storeSystemFile(SystemFileKind kind,
String name,
InputStream data)
Stores a system file of a specific kind.
|
boolean |
unlockDocument(String sysRowId,
String ddcName)
Unlocks a document.
|
void |
updateCurrentUserInformation(MutableUserInformation user)
Changes information about the current user.
|
SaSaveInfo |
updateDocument(String ddcName,
String documentHDOC,
Properties namevaluePairs,
InputStream[] content,
String versionComment)
Deprecated.
will be removed with version 8.0, use
#updateDocument(DocumentInfo) instead. |
SaSaveInfo |
updateDocument(String ddcName,
String documentHDOC,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String acls)
Deprecated.
will be removed with version 8.0
|
SaSaveInfo |
updateDocument(String ddcName,
String documentHDOC,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String acls,
boolean resolveLinks)
Deprecated.
will be removed with version 8.0
|
SaSaveInfo |
updateDocument(String ddcName,
String documentHDOC,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String acls,
boolean resolveLinks,
boolean checkin)
Deprecated.
will be removed with version 8.0
|
SaSaveInfo |
updateDocument(UpdateDocumentInfo updateInfo)
Updates a document in the backend system with the given metadata, acls and content.
|
void |
updateFolder(String folderTableDDC,
String folderId,
Properties namevaluePairs)
Updates an existing folder with the given properties.
|
void |
updateLookupEntry(String ddc,
String id,
Properties props)
Deprecated.
This method does not handle system fields and might be removed in a future version.
Use
invoke(Operation) with a UpdateLookupEntry operation instead. |
Properties getConfiguration(String section) throws SaSystemException, SaAuthenticationException
section - Section in archief.ini to load configuration propertiesSaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationException@Deprecated void stopServer() throws SaSystemException, SaAuthenticationException
SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationException@Deprecated void addListener(SaEventListener listener) throws SaAuthenticationException, SaSystemException
listener - Event listenerSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemException@Deprecated void removeListener(SaEventListener listener) throws SaSystemException
listener - Event listenerSaSystemException - SaSystemException@Deprecated void addListener(SaStatusEventListener listener) throws SaAuthenticationException, SaSystemException
listener - Event listenerSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemException@Deprecated void removeListener(SaStatusEventListener listener) throws SaSystemException
listener - Event listenerSaSystemException - SaSystemExceptionString[] getDefinitions() throws SaSystemException, SaAuthenticationException
SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionString[] getFolderDefinitions() throws SaSystemException, SaAuthenticationException
SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaFieldDescription[] getDBDefinition(String name) throws SaSystemException, SaAuthenticationException
name - name of the database definition (DDC) to getSaFieldDescription represented as an array of
SaJNIFieldDescription instances;SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaSystemSetting getSystemSetting(String accessKey) throws SaSystemException, SaAuthenticationException
accessKey - key to get associated system settingSaSystemSettingSaSystemException - System exceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaSystemInfo getSystemInfo() throws SaSystemException
SaSystemInfoSaSystemException - System exceptionSaFeature getFeatures() throws SaSystemException
SaSystemException - System exceptionSaUserSetting getUserSetting(String accessKey) throws SaSystemException, SaAuthenticationException
accessKey - The key to get associated user setting. The key consists of the type of the
setting and a key to identify the setting separated by '|'.PROPERTIES|TheNameOfTheSection$my_tenant$, which will be replaced by the current
tenant's ID and $all_tenants$, which will be replaced by the ID
representing all tenants.SaUserSettingSaSystemException - System exceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsvoid setUserSetting(SaUserSetting setting) throws SaSystemException, SaAuthenticationException
setting - the SaUserSetting object to be storedSaSystemException - System exceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSetting getSetting(String name, String section, boolean isLong) throws SaSystemException, SaAuthenticationException
Setting identified by it's key and section from the database.name - the setting's namesection - the setting's sectionisLong - whether this is a setting with a long (>2KB) value or notSaSystemException - system error when retrieving the settingSaAuthenticationException - authentication error when retrieving the settingSettingSearchResult searchSettings(SettingSearchInfo searchInfo) throws SaSystemException, SaAuthenticationException
searchInfo - SettingSearchInfo containing information about what to searchSettingSearchResultSaSystemException - system error when searchingSaAuthenticationException - authentication errorvoid setSetting(Setting setting) throws SaSystemException, SaAuthenticationException
Setting in the database.setting - the setting to storeSaSystemException - system error when storing the settingSaAuthenticationException - authentication error when storing the settingboolean deleteSetting(String name, String section, boolean isLong) throws SaSystemException, SaAuthenticationException
name - the name of the setting to deletesection - the section of the setting to deleteisLong - whether this is a setting with a long (>2KB) value or notSaSystemException - system exception when deleting the settingSaAuthenticationException - when the user is not logged in or has insufficient rights when deleting the settingint logon(String username, String password, int type, String client) throws SaAuthenticationException, SaSystemException
username - User's full namepassword - Passwordtype - User type that means client license type. There are possible the following integer
values:
client - client/mandant name, used in multi-client systemsSaAuthenticationException - when the user is not logged in or has insufficient rightsSaSystemException - SaSystemException@Deprecated int logon(jcifs.smb.NtlmPasswordAuthentication auth, int type, String client) throws SaAuthenticationException, SaSystemException
auth - Ntlm authentication objecttype - User type that means client license type. There are possible the following integer
values:
client - client/mandant name, used in multi-client systemsSaAuthenticationException - when the user is not logged in or has insufficient rightsSaSystemException - SaSystemException@Deprecated int logon(byte[] token, int type, String client) throws SaAuthenticationException, SaSystemException
SaSystemException - because it is not supported anymore.SaAuthenticationExceptioncom.saperion.connector.authentication.Session logon(com.saperion.connector.authentication.Credentials credentials) throws SaAuthenticationException, SaSystemException
credentials - SaAuthenticationException - thrown if logon was not possible through wrong password
or not existing userSaSystemException - thrown if the system is not reachableUsernamePasswordKeyboolean logoff()
throws SaAuthenticationException,
SaSystemException
SaAuthenticationException - user was not logged inSaSystemException - remote exceptionint getLicenseCount(int type)
throws SaSystemException
type - Client typeSaSystemException - Error on the saperion systemboolean setUsedLicense(int type,
int count)
throws SaSystemException
type - Client typecount - Number of licensesSaSystemException - Error on the saperion systemvoid setLocale(Locale locale) throws SaAuthenticationException, SaSystemException
locale - Localization informationSaAuthenticationException - when the user is not logged in or has insufficient rightsSaSystemException - SaSystemExceptionInputStream readDocument(String documentHDOC, boolean currentRevision, int elementNumber) throws SaSystemException, SaAuthenticationException
InputStream instance from the appropriate
document in the backend system. This document is specified by its UID (XHDOC).InputStream.read()
documentHDOC - The ID of the document (XHDOC)currentRevision - flag indicating that the current revision of the document should be retrieved by
resolving the XHDOC.elementNumber - position in the document structure; 0 if the document is unstructured, -1 returns
a single multi-page tif containing all content elements, but only for COLD and
multi-page tif documentsSaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationException InputStream.read(byte[]) or
InputStream.read(byte[], int, int) methods.InputStream readReleasedDocument(String docHdoc, boolean currentRevision, int elementNumber) throws SaSystemException, SaAuthenticationException
docHdoc - the doc hdoccurrentRevision - the current revisionelementNumber - the element numberSaSystemException - the sa system exceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaPropertyValue[] readDocumentMetadata(String documentSysRowID, String ddcName, String[] fields) throws SaSystemException, SaAuthenticationException, SaDDCException
documentSysRowID - The ID of the document (SYSROWID)ddcName - The name of the database definitionfields - Fieldnames to be read. If empty or null, all fields will be read.SaPropertyValue
instances.SaSystemException - SaSystemExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDDCException - SaDDCException@Deprecated String getFulltext(String ddcName, String sysRowId) throws SaSystemException, SaAuthenticationException
getFulltext(String, String, String, long) instead.ddcName - DDC name of the documentsysRowId - SYSROWID of the documentSaSystemException - SaSystemExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsString getFulltext(String ddcName, String hdoc, String fieldName, long length) throws SaSystemException, SaAuthenticationException
ddcName - DDC name of the documenthdoc - HDOC of the documentfieldName - name of the fulltext field to read fromlength - length of the content to return. If -1, the complete content will be returned.SaSystemException - SaSystemExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsbyte[] getThumbnail(String hDoc, int widthX, int widthY, boolean color) throws SaSystemException, SaAuthenticationException
hDoc - HDoc for the document.widthX - Width X or -1 to auto-calculatewidthY - Width Y or -1 to auto-calculatecolor - True for coloredSaSystemException - System exceptionSaAuthenticationException - when the user is not logged in or has insufficient rights@Deprecated SaSaveInfo createDocument(String ddcName, Properties namevaluePairs, InputStream[] content, String versionComment) throws SaSystemException, SaAuthenticationException, SaDDCException
createDocument(DocumentInfo) instead.ddcName - The name of the database definitionnamevaluePairs - A properties object containing the metadata of the document (e.g index fields and
their values)content - Multiple content data (an array of InputStream instances)versionComment - The comment for the versionSaSystemException - SaSystemExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDDCException - SaDDCException@Deprecated SaSaveInfo updateDocument(String ddcName, String documentHDOC, Properties namevaluePairs, InputStream[] content, String versionComment) throws SaSystemException, SaAuthenticationException, SaDDCException
#updateDocument(DocumentInfo) instead.ddcName - The name of the database definitiondocumentHDOC - The ID of the document (HDOC)namevaluePairs - A properties object containing the metadatacontent - Multiple content dataversionComment - The comment for the versionSaSystemException - SaSystemExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDDCException - SaDDCException@Deprecated SaSaveInfo createDocument(String ddcName, Properties namevaluePairs, InputStream[] content, String versionComment, String acls) throws SaSystemException, SaAuthenticationException, SaDDCException
createDocument(DocumentInfo) instead.ddcName - The name of the database definitionnamevaluePairs - A properties object containing the metadata of the document (e.g index fields and
their values)content - Multiple content data (an array of InputStream instances)versionComment - The comment for the versionacls - ACL name string (semicolon separated)SaSystemException - SaSystemExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDDCException - SaDDCExceptionSaSaveInfo createDocument(DocumentInfo document) throws SaSystemException, SaAuthenticationException, SaDDCException
DocumentInfo.document - the documentSaSaveInfo object describing the new created documentSaSystemException - the sa system exceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDDCException - the sa ddc exceptionSaSaveInfo createLink(LinkInfo link) throws SaSystemException, SaAuthenticationException, SaDDCException
LinkInfo.
link - info LinkInfo to create a linkSaSaveInfo of new created linkSaSystemException - the sa system exceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDDCException - the sa ddc exception@Deprecated SaSaveInfo updateDocument(String ddcName, String documentHDOC, Properties namevaluePairs, InputStream[] content, String versionComment, String acls) throws SaSystemException, SaAuthenticationException, SaDDCException
ddcName - The name of the database definitiondocumentHDOC - The ID of the document (HDOC)namevaluePairs - A properties object containing the metadatacontent - Multiple content dataversionComment - The comment for the versionacls - ACL name string, if null it will be ignored, to delete existing ACLs
set an empty stringSaSystemException - SaSystemExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDDCException - SaDDCException@Deprecated SaSaveInfo updateDocument(String ddcName, String documentHDOC, Properties namevaluePairs, InputStream[] content, String versionComment, String acls, boolean resolveLinks) throws SaSystemException, SaAuthenticationException, SaDDCException
ddcName - The name of the database definitiondocumentHDOC - The ID of the document (HDOC)namevaluePairs - A properties object containing the metadatacontent - Multiple content dataversionComment - The comment for the versionacls - ACL name string, if null it will be ignored, to delete existing ACLs
set an empty stringresolveLinks - Resolve linksSaSystemException - SaSystemExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDDCException - SaDDCException@Deprecated SaSaveInfo updateDocument(String ddcName, String documentHDOC, Properties namevaluePairs, InputStream[] content, String versionComment, String acls, boolean resolveLinks, boolean checkin) throws SaSystemException, SaAuthenticationException, SaDDCException
ddcName - The name of the database definitiondocumentHDOC - The ID of the document (HDOC)namevaluePairs - A properties object containing the metadatacontent - Multiple content dataversionComment - The comment for the versionacls - ACL name string, if null it will be ignored, to delete existing ACLs
set an empty stringresolveLinks - Resolve linkscheckin - Checkin documentSaSystemException - when a system error occuredSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDDCException - when a database definition was invalid or not foundSaSaveInfo updateDocument(UpdateDocumentInfo updateInfo) throws SaSystemException, SaAuthenticationException, SaDDCException
updateInfo - updateInfo beanSaSystemException - when a system error occuredSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDDCException - when a database definition was invalid or not foundvoid checkoutDocument(String hDoc) throws SaSystemException, SaAuthenticationException, SaGetNodeException
hDoc - id (HDOC) of document to checkoutSaSystemException - SaRMICommandExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaGetNodeException - SaGetNodeExceptionvoid discardCheckout(String hDoc) throws SaSystemException, SaAuthenticationException, SaGetNodeException
hDoc - Document HDOCSaSystemException - SaRMICommandExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaGetNodeException - SaGetNodeExceptionvoid releaseDocument(String ddcName, String hDoc, String versionComment) throws SaSystemException, SaAuthenticationException, SaGetNodeException, SaSetNodeException, SaDDCException
ddcName - the ddc namehDoc - Document HDOCversionComment - the version commentSaSystemException - SaRMICommandExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaGetNodeException - SaGetNodeExceptionSaSetNodeException - the sa set node exceptionSaDDCException - the sa ddc exceptionboolean isReleaseActive()
throws SaAuthenticationException,
SaSystemException
SaAuthenticationException - when the user is not logged in or has insufficient rightsSaSystemException - the sa system exceptionString getReleasedHdoc(String oldHdoc) throws SaAuthenticationException, SaSystemException
oldHdoc - the hdoc to lookup released hdocSaAuthenticationException - if authentication failsSaSystemException - the sa system exceptionboolean lockDocument(String sysRowId, String ddcName) throws SaSystemException, SaAuthenticationException, SaLockException
sysRowId - SysRowId of document to lockddcName - DDC nameSaSystemException - The SaSystemExceptionSaAuthenticationException - The when the user is not logged in or has insufficient rightsSaLockException - The SaLockExceptionboolean unlockDocument(String sysRowId, String ddcName) throws SaSystemException, SaAuthenticationException, SaLockException
sysRowId - SysRowId of document to unlockddcName - DDC nameSaSystemException - The SaSystemExceptionSaAuthenticationException - The when the user is not logged in or has insufficient rightsSaLockException - The SaLockExceptionSaDocInfo getDocumentInfo(String hDoc, boolean currentRevision, boolean resolveLinks) throws SaSystemException, SaAuthenticationException
hDoc - Document HDOCcurrentRevision - True for current revisionresolveLinks - True for resolve linksSaSystemException - The SaSystemExceptionSaAuthenticationException - Authenication failuregetDocumentInfo(String, boolean, boolean, boolean)SaDocInfo getDocumentInfo(String hDoc, boolean currentRevision, boolean resolveLinks, boolean forceSizeDetermination) throws SaSystemException, SaAuthenticationException
hDoc - Document HDOCcurrentRevision - True for current revisionresolveLinks - True for resolve linksforceSizeDetermination - Forces the backend to determine the size of each element, even if it is not
already available. Reqiures loading the document, so use only if really required.SaSystemException - The SaSystemExceptionSaAuthenticationException - Authenication failureSaSaveInfo restoreVersion(String versionID) throws SaSystemException, SaAuthenticationException, SaDDCException
versionID - Version HDOCSaSystemException - SaSystemExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDDCException - SaDDCException@Deprecated List<SaPropertyValue[]> search(String hqlQuery) throws SaSystemException, SaAuthenticationException, SaDBException
hqlQuery - the Hibernate query - hql.SaPropertyValue object.SaSystemException - SaSystemExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDBException - exception thrown during query executionList<SaDocumentInfo> searchHQL(SaQueryInfo hqlQuery) throws SaSystemException, SaAuthenticationException, SaDBException
hqlQuery - the Hibernate query info.SaSystemException - SaSystemExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDBException - exception thrown during query executionvoid deleteDocument(String documentHDOC, int deleteType) throws SaSystemException, SaAuthenticationException, SaDDCException
documentHDOC - The HDoc of the document to delete.deleteType - Deletion strategy which may be set on one of the following values:
SaSystemException - SaSystemExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDDCException - SaDDCExceptionList<String> getVersionIDs(String ddcName, String sysrowID) throws SaSystemException, SaAuthenticationException
ddcName - The name of the database definitionsysrowID - The ID of the documentSaSystemException - SaSystemExceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsInputStream readVersionDocument(String versionID, int elementNumber) throws SaSystemException, SaAuthenticationException
versionID - Version ID (XHDOC is the revision number of the document)elementNumber - Element numberSaSystemException - SaSystemExceptionSaAuthenticationException - when the user of this session is not logged in (anymore) or has insufficient rightsSaVersionData readVersionMetadata(String versionID) throws SaSystemException, SaAuthenticationException, SaDDCException
versionID - Version ID (XHDOC is the revision number of the document)SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionString resolveLatestHDoc(String oldHdoc) throws SaSystemException, SaAuthenticationException
oldHdoc - the HDOC to identify the documentSaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationException@Deprecated boolean removeEvent(SaEvent event) throws SaSystemException
event - Event objectSaSystemException - SaSystemException@Deprecated String readDocumentFilename(String documentHDOC, boolean currentRevision, int elementNumber) throws SaSystemException, SaAuthenticationException, SaDDCException
documentHDOC - The ID of the document (XHDOC)currentRevision - flag indicating that the current revision of the document should be retrieved by
resolving the HDoc.elementNumber - position in the document structure; 0 if the document is unstructured.SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCException@Deprecated String readVersionDocumentFilename(String documentHDOC, int elementNumber) throws SaSystemException, SaAuthenticationException, SaDDCException
documentHDOC - The ID of the document (XHDOC)elementNumber - position in the document structure; 0 if the document is unstructured.SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionString getACLNames(String documentHDOC) throws SaSystemException, SaAuthenticationException, SaDDCException
documentHDOC - The ID of the document (XHDOC)SaSystemException - RemoteExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionSaSaveInfo setACLName(String ddcname, String documentHDOC, String acl, String versionComment) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetACLException
ddcname - the name of the ddc in saperiondocumentHDOC - The ID of the document (XHDOC)acl - ACLversionComment - VersioncommentSaSystemException - RemoteExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionSaSetACLException - SaSetACLExceptionList<String> getInvolvedUsers(String documentHDOC) throws SaSystemException, SaAuthenticationException, SaDDCException
documentHDOC - The ID of the document (XHDOC)SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCException@Deprecated List<String> getAllACLs() throws SaSystemException, SaAuthenticationException
getAcls() instead. Will be removed with version 8.0SaSystemException - Remote exceptionSaAuthenticationException - SaAuthenticationExceptionList<SaAcl> getAcls() throws SaSystemException, SaAuthenticationException
SaSystemException - Remote exceptionSaAuthenticationException - SaAuthenticationExceptionSaACLRights getACLRights(String[] acls) throws SaSystemException, SaAuthenticationException
acls - array of ACL name to get rights forSaSystemException - Remote exceptionSaAuthenticationException - SaAuthenticationExceptionSaDocAccessData getDocumentAccessData(String documentHDOC) throws SaSystemException, SaAuthenticationException
documentHDOC - The ID of the document (XHDOC)SaSystemException - Remote exceptionSaAuthenticationException - SaAuthenticationExceptionSaLockInfo getLockInfo(String sysRowId) throws SaSystemException, SaAuthenticationException, SaLockException
sysRowId - Document SysRowIdSaSystemException - Remote exceptionSaAuthenticationException - Authentification errorSaLockException - Locking errorSaWFConnector getWorkflowConnector() throws SaAuthenticationException, SaSystemException
SaAuthenticationException - Authentification errorSaSystemException - Remote exceptionboolean isAlive()
throws SaSystemException
SaSystemException - System exception@Deprecated String getAnnotations(String hDoc, int indexOfContentElement) throws SaAuthenticationException, SaSystemException
getAnnotations(String, int, boolean) instead. Will be removed with version 8.0hDoc - Document HDOCindexOfContentElement - the index of the chosen context elementSaAuthenticationException - Authentication errorSaSystemException - Remote exceptionString getAnnotations(String hDoc, int indexOfContentElement, boolean currentRevision) throws SaAuthenticationException, SaSystemException
hDoc - Document HDOCindexOfContentElement - the index of the chosen context elementcurrentRevision - true to get current revisionSaAuthenticationException - Authentication errorSaSystemException - Remote exceptionvoid setAnnotations(String hDoc, int indexOfContentElement, String annotations) throws SaAuthenticationException, SaSystemException
hDoc - Document HDOCindexOfContentElement - the index of the chosen context elementannotations - Annotation stringSaAuthenticationException - Authentication errorSaSystemException - Remote exceptionList<SaDocumentInfo> getFolderChildren(String folderTableDDC, String folderId, int depth, SaQueryInfo filter, int allowedMaxNrOfChildFolders) throws SaSystemException, SaAuthenticationException, SaDBException, SaFolderException
folderTableDDC - Folder tablefolderId - Folder IDdepth - Depth to get children for. Needs to be gte 1.filter - Additional HQL filter criteriaallowedMaxNrOfChildFolders - allowed maximum number of child folders per level or -1 for no limitSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDBException - Database exceptionSaFolderException - Folder exception@Deprecated SaDocumentInfo getFolderInfo(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDBException, SaFolderException
getFolderInfo(String, String, boolean) insteadfolderTableDDC - Folder tablefolderId - Folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDBException - Database exceptionSaFolderException - Folder exceptionSaDocumentInfo getFolderInfo(String folderTableDDC, String folderId, boolean forceLoadVariables) throws SaSystemException, SaAuthenticationException, SaDBException, SaFolderException
folderTableDDC - Folder tablefolderId - Folder IDforceLoadVariables - if true, variables will be loaded from medium if the DDC does not contain the
SYSPROPERTIES field.SaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDBException - Database exceptionSaFolderException - Folder exceptionSaDocumentInfo getFolderParent(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDBException
folderTableDDC - Folder tablefolderId - Folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDBException - Database exceptionList<SaDocumentInfo> getFolderFromPath(String folderTableDDC, String startFolderId, String folderPath) throws SaSystemException, SaAuthenticationException, SaDBException
getFolderByPath(String, String, String)
to retrieve a single folder.folderTableDDC - Folder tablestartFolderId - ID of folder to start with or null/empty if no relative search is requiredfolderPath - Search pathSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDBException - Database exceptionSaDocumentInfo getFolderByPath(String folderTableDDC, String startFolderId, String folderPath) throws SaSystemException, SaAuthenticationException, SaDBException
folderTableDDC - Folder tablestartFolderId - ID of folder to start with or null/empty if no relative search is requiredfolderPath - Search pathSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDBException - Database exception@Deprecated String createFolder(String folderTableDDC, String parentId, String beforeChild, String folderName, SaFolderConstants.FOLDER_TYPE folderType, Properties namevaluePairs) throws SaSystemException, SaAuthenticationException, SaDDCException, SaFolderNameException
createFolder(SaFolderSaveInfo, Properties) instead. Will be removed with version 8.0folderTableDDC - Folder tableparentId - Parent folder ID or emptybeforeChild - ID of the child to add the new folder before or empty for appendfolderName - Folder namefolderType - Type of the foldernamevaluePairs - Folder propertiesSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaFolderNameException - when the folder name contained an invalid characterString createFolder(SaFolderSaveInfo info, Properties namevaluePairs) throws SaSystemException, SaAuthenticationException, SaDDCException, SaFolderNameException
info - SaFolderSaveInfo of folder to createnamevaluePairs - Folder properties (Attention: These properties will replace the property values in
the SaFolderSaveInfo info above!)SaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaFolderNameException - when the folder name contained an invalid charactervoid updateFolder(String folderTableDDC, String folderId, Properties namevaluePairs) throws SaSystemException, SaAuthenticationException, SaDDCException, SaFolderNameException
folderTableDDC - name of folder table (DDC)folderId - id of folder to updatenamevaluePairs - Folder properties to updateSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaFolderNameException - when the folder name contained an invalid characterSaFolderConstants.FIELD_SYSNODETYPE,
SaFolderConstants.FOLDER_TYPEList<SaDocumentInfo> searchFolderDocuments(String folderTableDDC, String folderId, SaQueryInfo hqlFilter) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDhqlFilter - HQL query for document tables. The query text must be only the "where" filter. The
main DDC is defined as "d".SaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionvoid deleteFolder(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder ID to deleteSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionString copyFolder(String folderTableDDC, String folderId, String destinationId, String beforeChild, boolean withDocuments) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - folder table namefolderId - tolder ID to copydestinationId - destination folder IDbeforeChild - ID of the child to insert the folder before or empty for appendwithDocuments - True, if documents should be copiedSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionvoid moveFolder(String folderTableDDC, String folderId, String destinationId, String beforeChild) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDdestinationId - Destination folder IDbeforeChild - Child ID or empty for appendSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionvoid addToFolder(String folderTableDDC, String documentId, String documentDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetNodeException
folderTableDDC - name of the folder table to add documentdocumentId - SysRowId of the document to add to folderdocumentDDC - DDC name of the document located infolderId - destination folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaSetNodeException - DDC not fileablevoid removeFromFolder(String folderTableDDC, String documentSysRowId, String documentDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tabledocumentSysRowId - Document SysRowIddocumentDDC - Document DDC namefolderId - Folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionvoid moveToFolder(String folderTableDDC, String documentId, String documentDDC, String folderId, String destinationId) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tabledocumentId - Document SysRowIddocumentDDC - Document DDC namefolderId - Source folder IDdestinationId - Destination folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionList<SaDocumentInfo> getDocumentFolders(String folderTableDDC, String documentDDC, String sysRowId) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetNodeException
folderTableDDC - Folder tabledocumentDDC - Document DDCsysRowId - Document SysRowIdSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaSetNodeException - DDC not fileablelong getDocumentFolderCount(String folderTableDDC, String documentDDC, String sysRowId) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetNodeException
folderTableDDC - Folder tabledocumentDDC - Document DDCsysRowId - Document SysRowIdSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaSetNodeException - DDC not fileablevoid setFolderAcl(String folderTableDDC, String folderId, String aclName) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDaclName - ACL nameSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaDocAccessData getFolderRights(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaFolderClass getFolderClass(String className) throws SaSystemException, SaAuthenticationException, SaDDCException
className - Class name in dotted notationSaSystemException - Remote exceptionSaAuthenticationException - authentication errorSaDDCException - Database exceptionSet<SaFolderClass> searchFolderClass(SaFolderClassSearchInfo searchInfo) throws SaSystemException, SaAuthenticationException
searchInfo - bean that contains the properties to search forSaSystemException - Remote exceptionSaAuthenticationException - authentication errorList<String> getSystemFiles(SystemFileKind kind, String filter) throws SaAuthenticationException, SaSystemException
kind - the kind of systemfiles to read.filter - A filter string. Only files will be returned, that match the filter. To get all
systemfiles of a kind set filter to the empty string.SaAuthenticationException - error on the authentification / insufficient rightsSaSystemException - general errorvoid storeSystemFile(SystemFileKind kind, String name, InputStream data) throws SaAuthenticationException, SaSystemException
kind - The kind of systemfile to store.name - The name of the file.data - The content of the file to save.SaAuthenticationException - error on the authentification / insufficient rightsSaSystemException - general errorInputStream loadSystemFile(SystemFileKind kind, String name) throws SaAuthenticationException, SaSystemException
kind - The kind of system file to loadname - The name of the file to load.SaAuthenticationException - error on the authentification / insufficient rightsSaSystemException - general errorvoid logClientEvent(String hdoc, SaConstants.ProtoEvents event, String remark) throws SaSystemException, SaAuthenticationException
hdoc - Document HDOCevent - Event typeremark - RemarkSaSystemException - general errorSaAuthenticationException - error on the authentification / insufficient rightsvoid changePassword(String user, String oldPassword, String client, String newPassword) throws SaSystemException, SaAuthenticationException
user - The name of the existing user.oldPassword - The old password. This parameter is required, since the password should only be
changed by the user himselfclient - The client of the actionsnewPassword - The new passwordSaSystemException - when a system error occuredSaAuthenticationException - when the user is not logged in or has insufficient rights
logon(String, String, int, String) was successfully
invoked.List<UsersRights> getAuthorizedUsers(String hDoc, String rights, MatchKind match) throws SaSystemException, SaAuthenticationException
hDoc - The id of the document.rights - The rights the requested users should have.match - How the rights are matched: MKONEOF - find all users that have one of the
specified rights MKEXACT - find all users that have exactly the specified rights
MKATLEAST - find all users that have at least the specified rightsSaSystemException - when a system error occuredSaAuthenticationException - when the user is not logged in or has insufficient rightsint getArchivedSize(String hDoc) throws SaSystemException, SaAuthenticationException
hDoc - The document id whichs size is wanted.SaSystemException - when a system error occuredSaAuthenticationException - when the user is not logged in or has insufficient rights@Deprecated String createLookupEntry(String ddc, Properties props) throws SaSystemException, SaAuthenticationException, SaDDCException
invoke(Operation) with a CreateLookupEntry operation instead.ddc - Lookup DDC nameprops - Properties for the new entrySaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exception@Deprecated void updateLookupEntry(String ddc, String id, Properties props) throws SaSystemException, SaAuthenticationException, SaDDCException
invoke(Operation) with a UpdateLookupEntry operation instead.ddc - Lookup DDC nameid - SYSROWID of the existing entryprops - Properties for the entrySaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exception@Deprecated void deleteLookupEntry(String ddc, String id) throws SaSystemException, SaAuthenticationException, SaDDCException
invoke(Operation) with a DeleteLookupEntry operation instead.ddc - Lookup DDC nameid - SYSROWID of the existing entrySaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionString getCurrentUserName()
Set<FolderUpdateInfo> getFolderUpdateInfo(Map<String,Long> folderIds) throws SaSystemException, SaAuthenticationException
folderIds - Map of folderIds (simple, workflow, ..) with the time stamps of the last refresh
to build the cut set of.SaSystemException - when a system error occuredSaAuthenticationException - when the user is not logged in or has insufficient rightsSapDocInfo checkSapUrl(String url) throws SaSystemException, SaSapUrlException, SaAuthenticationException
url - SAP URLSaSystemException - when a system error occuredSaSystemException - when checking the sap url by the RLINK server failedSaAuthenticationException - when the user is not logged in or has insufficient rightsSaSapUrlExceptionSaSaveInfo cacheDocument(String xhDoc, String ddcName, Properties namevaluePairs, InputStream[] content, String versionComment, String strAcl) throws SaSystemException, SaAuthenticationException, SaDDCException
xhDoc - The xhdoc of the Document to cacheddcName - The name of the database definition (DDC)namevaluePairs - A properties object containing the metadata of the document (e.g index fields and
their values)content - Multiple content data (an array of InputStream instances)versionComment - The comment for the versionstrAcl - the names of acls (comma sessparated list)SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionSaSaveInfo cacheDocument(String xhDoc, DocumentInfo document) throws SaSystemException, SaAuthenticationException, SaDDCException
xhDoc - The xhdoc of the Document to cachedocument - the DocumentInfo about the document to cacheSaSaveInfo of the cached documentSaSystemException - the sa system exceptionSaAuthenticationException - when the user is not logged in or has insufficient rightsSaDDCException - the sa ddc exceptionSaUserInfo getCurrentUserInfo() throws SaAuthenticationException, SaSystemException
SaAuthenticationException - If not properly logged inSaSystemException - SaSystemException@Deprecated void setCurrentUserPresent(boolean present) throws SaAuthenticationException, SaSystemException
updateCurrentUserInformation(MutableUserInformation) instead.
Will be removed with version 8.0.present - whether the current user is presentSaSystemException - system errorSaAuthenticationException - authentication errorvoid updateCurrentUserInformation(MutableUserInformation user) throws SaAuthenticationException, SaSystemException
user - - the information to changeSaSystemException - system errorSaAuthenticationException - authentication errorList<Rendition> getRendition(Element element, Options options) throws FormatNotSupportedException, PreconditionFailedException, TimeoutException, RenderingException, SaAuthenticationException, SaSystemException
element - an Element object that represents an object in the archived document.options - Rendition instances.FormatNotSupportedException - if the input or output format is not supportedPreconditionFailedException - if parts of the options are missingTimeoutException - if a timeout was specified and it was reachedRenderingException - if engine is not available or internal initialization failuresSaAuthenticationException - If not properly logged inSaSystemExceptionvoid sendBarcode(String indexMask, String docUid, String contentRep, String sid, String docType, String value, int mandant) throws SaBarcodeException
indexMask - Index mask namedocUid - Document UIDcontentRep - SAP Content repositorysid - SAP IDdocType - Document typevalue - Valuemandant - Mandant nameSaBarcodeException - BarcodeExceptionboolean hasRenderEngine()
true, otherwise falseSet<SourceFormat> getSupportedRenderSourceFormats()
Set<TargetFormat> getSupportedRenderTargetFormats()
void setEventsEnabled(boolean enabled)
throws SaSystemException,
SaAuthenticationException
enabled - true, to enable events, otherwise false.SaSystemException - system errorSaAuthenticationException - authentication errorboolean getEventsEnabled()
throws SaSystemException,
SaAuthenticationException
SaSystemException - system errorSaAuthenticationException - authentication error<T extends Serializable> T invoke(Operation<T> operation) throws SaAuthenticationException, SaSystemException
Operation on the server side.T - The return type of the given operationoperation - The operation to invoke. After invocation calling operation.getResult() will
yield the same as the return of this call.SaAuthenticationException - When the user is not correctly logged on, this may result from a session time outSaSystemException - When an error occurred in the operation.DDC getDDC(String ddcName) throws SaSystemException, SaAuthenticationException
ddcName - name of the DDCDDC.SaSystemException - system error when retrieving information about the DDCSaAuthenticationException - not logged inCopyright © 2016 SAPERION AG. All rights reserved.