public interface SaClassicConnector extends LegacyConnection
Modifier and Type | Method and Description |
---|---|
void |
addListener(SaEventListener listener)
Deprecated.
will be removed with version 8.1
|
void |
addListener(SaStatusEventListener listener)
Deprecated.
will be removed with version 8.1
|
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 a new document in the backend system with the given metadata and content.
|
SaSaveInfo |
cacheDocument(String xhDoc,
String ddcName,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String strAcl)
Caches a new document in the backend system with the given metadata and content.
|
void |
changePassword(String user,
String oldPassword,
String tenant,
String newPassword)
Changes the password of an existing user.
|
void |
checkoutDocument(String hDoc)
Checks out 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.
|
boolean |
closeSession(com.saperion.connector.authentication.Session session)
Close the given
Session of logged in user |
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.1, use
createDocument(DocumentInfo) instead. |
SaSaveInfo |
createDocument(String ddcName,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String acls)
Deprecated.
will be removed with version 8.1, 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.1 |
SaSaveInfo |
createLink(LinkInfo link)
Creates a link to a document for given
LinkInfo . |
void |
deleteDocument(String documentHDOC,
int deleteType)
Deletes a document from the backend system with the given delete type strategy.
|
void |
deleteFolder(String folderTableDDC,
String folderId)
Deletes an existing folder.
|
boolean |
deleteSetting(String name,
String section,
boolean isLong)
This method deletes a setting in the database.
|
void |
discardCheckout(String hDoc)
Discards a checkout of a document which was performed via the method
checkoutDocument(String) . |
String |
getACLNames(String documentHDOC)
This method returns the names of the Access Control Lists that are assigned to this document.
|
SaACLRights |
getACLRights(String[] acls)
This method returns the access rights the current user has when in the context of the Access Controll Lists
given by name.
|
List<SaAcl> |
getAcls()
This method returns all Access Control Lists in the current tenant.
|
List<String> |
getAllACLs()
Deprecated.
use
getAcls() instead. Will be removed with version 8.1 |
String |
getAnnotations(String hDoc,
int indexOfContentElement)
Deprecated.
use
getAnnotations(String, int, boolean) instead. Will be removed with version 8.1 |
String |
getAnnotations(String hDoc,
int indexOfContentElement,
boolean currentRevision)
Reads the annotations of the document with the specified ID.
|
int |
getArchivedSize(String hDoc)
Returns the total document size in the archive in bytes.
|
List<UsersRights> |
getAuthorizedUsers(String hDoc,
String rights,
MatchKind match)
This method returns the users that have specific rights on a document.
|
Properties |
getConfiguration(String section)
This method reads the application configuration properties from the backend system.
|
SaUserInfo |
getCurrentUserInfo()
This method returns detailed info about the current user.
|
String |
getCurrentUserName()
This method returns the name of teh user currently logged in.
|
SaFieldDescription[] |
getDBDefinition(String name)
Deprecated.
use
getDDC(String) instead. Will be removed in version 8.1 |
DDC |
getDDC(String ddcName)
This method returns a document definition given by its name.
|
String[] |
getDefinitions()
This method returns the names of all DDCs registered in the Saperion system.
|
SaDocAccessData |
getDocumentAccessData(String documentHDOC)
This method reads the access rights the current user has on a 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 information like the document-structure and variables for the given document.
|
SaDocInfo |
getDocumentInfo(String hDoc,
boolean currentRevision,
boolean resolveLinks,
boolean forceSizeDetermination)
Reads information like the document-structure and variables for the given document.
|
boolean |
getEventsEnabled()
This method returns whether events (e.g.
|
SaFeature |
getFeatures()
This method returns the features enabled in the Saperion system.
|
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. Will be removed in version 8.1. |
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)
Deprecated.
No longer supported. Will be removed in 8.1.
|
String |
getFulltext(String ddcName,
String sysRowId)
Deprecated.
Will be removed in 8.1. 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.
|
default Set<Map.Entry<String,String>> |
getFullTextFields(String ddcName,
List<String> fullTextFields,
String hdoc)
Fetches values of Full text columns
|
List<String> |
getInvolvedUsers(String documentHDOC)
Deprecated.
use
getAuthorizedUsers(String, String, MatchKind) instead. Will be removed in version 8.1. |
int |
getLicenseCount(int type)
This method returns the overall count of Licenses of the given type in the system.
|
SaLockInfo |
getLockInfo(String sysRowId)
This method returns the locking information 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<com.saperion.connector.renditions.Rendition> |
getRendition(Element element,
com.saperion.connector.options.Options options)
Returns the rendition object from a rendered document.
|
ServerSideClientConfiguration |
getServerSideClientConfiguration()
This method returns the configuration concerning the classic connector that is set on the server side.
|
Setting |
getSetting(String name,
String section,
boolean isLong)
This method retrieves a
Setting identified by it's key and section from the database. |
Set<com.saperion.connector.formats.SourceFormat> |
getSupportedRenderSourceFormats()
Gets the supported source formats from the render engine.
|
Set<com.saperion.connector.formats.TargetFormat> |
getSupportedRenderTargetFormats()
Gets the supported target formats from the render engine.
|
List<String> |
getSystemFiles(SystemFileKind kind,
String filter)
This method returns the names of all system files of a specific kind.
|
SaSystemInfo |
getSystemInfo()
This method returns general information about the connected system.
|
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.
|
boolean |
isAlive()
Tests the lifetime of this connector.
|
boolean |
isReleaseActive()
Checks if is release feature in the program.ini in section [Release] is active.
|
List<com.saperion.connector.authentication.Session> |
listActiveSessions()
List active sessions of the logged in user
|
InputStream |
loadSystemFile(SystemFileKind kind,
String name)
This method 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()
This method logs the current user off from the system.
|
int |
logon(byte[] token,
int type,
String client)
Deprecated.
will be removed with version 8.1
|
com.saperion.connector.authentication.Session |
logon(com.lexmark.saperion.remote.common.authentication.Credentials credentials)
This method authenticates the given
Credentials and returns the information about the open
session. |
com.saperion.connector.authentication.Session |
logon(com.lexmark.saperion.remote.common.authentication.Credentials credentials,
com.saperion.connector.authentication.SessionInfo sessionInfo)
This method authenticates the given
Credentials , associate the given SessionInfo
and returns the information about the open session. |
default com.saperion.connector.authentication.Session |
logon(int rmiToken)
Deprecated.
|
int |
logon(jcifs.smb.NtlmPasswordAuthentication auth,
int type,
String client)
Deprecated.
will be removed with version 8.1
|
int |
logon(String username,
String password,
int type,
String client)
Deprecated.
use
logon(Credentials) with
UsernamePasswordKey instead. Will be removed in version 8.1. |
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.
|
InputStream |
readDocument(String docHdoc,
boolean currentRevision,
int elementNumber,
boolean withAnnotations)
Loads a document's content from the backend system.
|
String |
readDocumentFilename(String documentHDOC,
boolean currentRevision,
int elementNumber)
Deprecated.
will be removed with version 8.1
|
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.1
|
SaVersionData |
readVersionMetadata(String versionID)
Reads the version metadata of the document with the given ID.
|
SaVersionData |
readVersionMetadata(String versionID,
boolean resolveLinks)
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.1
|
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.1
|
void |
removeListener(SaStatusEventListener listener)
Deprecated.
will be removed with version 8.1
|
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.1
|
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)
This method searches settings in the database.
|
void |
sendBarcode(String indexMask,
String docUid,
String contentRep,
String sid,
String docType,
String value,
int mandant)
Sends the Document UID with the barcode to SAP R/3.
|
SaSaveInfo |
setACLName(String ddcname,
String documentHDOC,
String acl,
String versionComment)
This method specifies the Access Control Lists that secure the document given by its id.
|
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.1. |
void |
setEventsEnabled(boolean enabled)
This method sets whether events (e.g.
|
void |
setFolderAcl(String folderTableDDC,
String folderId,
String aclName)
Sets an ACL for the given folder.
|
void |
setLocale(Locale locale)
This methods sets the localization information for the current user.
|
void |
setSetting(Setting setting)
This method 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.1.
|
void |
storeSystemFile(SystemFileKind kind,
String name,
InputStream data)
This method 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.1, use
updateDocument(UpdateDocumentInfo) instead. |
SaSaveInfo |
updateDocument(String ddcName,
String documentHDOC,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String acls)
Deprecated.
will be removed with version 8.1
|
SaSaveInfo |
updateDocument(String ddcName,
String documentHDOC,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String acls,
boolean resolveLinks)
Deprecated.
will be removed with version 8.1
|
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.1
|
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.
|
invoke
Properties getConfiguration(String section) throws SaSystemException, SaAuthenticationException
section
- the name of the section in the archief.ini to load configuration properties fromSaSystemException
- 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
SaAuthenticationException
- when the classic connector is not authenticated or the current user has not the required rights for
the operationSaSystemException
- on general system failuresString[] getFolderDefinitions() throws SaSystemException, SaAuthenticationException
SaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationException@Deprecated SaFieldDescription[] getDBDefinition(String name) throws SaSystemException, SaAuthenticationException
getDDC(String)
instead. Will be removed in version 8.1name
- the name of the database definition (DDC) to get the fields ofSaFieldDescription
in the definitionSaAuthenticationException
- when the classic connector is not authenticated or the current user has not the required rights for
the operationSaSystemException
- on general system failuresSaSystemSetting getSystemSetting(String accessKey) throws SaSystemException, SaAuthenticationException
accessKey
- key to get associated system settingSaSystemSetting
SaSystemException
- System exceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaSystemInfo getSystemInfo() throws SaSystemException
SaSystemException
- on general system failuresSaFeature getFeatures() throws SaSystemException
SaSystemException
- on general system failuresSaUserSetting 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.SaUserSetting
SaSystemException
- 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 searchSettingSearchResult
SaSystemException
- 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 setting@Deprecated int logon(String username, String password, int type, String client) throws SaAuthenticationException, SaSystemException
logon(Credentials)
with
UsernamePasswordKey
instead. Will be removed in version 8.1.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.SaAuthenticationException
com.saperion.connector.authentication.Session logon(com.lexmark.saperion.remote.common.authentication.Credentials credentials) throws SaAuthenticationException, SaSystemException
Credentials
and returns the information about the open
session.credentials
- credentials that authorize and authenticate the session returnedSaAuthenticationException
- thrown if logon was not possible with the given credentialsSaSystemException
- thrown if the system is not reachableCredentials}, {@link com.saperion.connector.authentication.keys.UsernamePasswordKey},
{@link com.saperion.connector.authentication.keys.IncarnationCredentials},
{@link com.saperion.connector.authentication.keys.WaffleKey}
com.saperion.connector.authentication.Session logon(com.lexmark.saperion.remote.common.authentication.Credentials credentials, com.saperion.connector.authentication.SessionInfo sessionInfo) throws SaAuthenticationException, SaSystemException
Credentials
, associate the given SessionInfo
and returns the information about the open session.credentials
- credentials that authorize and authenticate the session returnedsessionInfo
- The session information like user agent, remote address etc.SaAuthenticationException
- thrown if logon was not possible with the given credentialsSaSystemException
- thrown if the system is not reachableCredentials}, {@link com.saperion.connector.authentication.keys.UsernamePasswordKey},
{@link com.saperion.connector.authentication.keys.IncarnationCredentials},
{@link com.saperion.connector.authentication.keys.WaffleKey}
,
SessionInfo}
List<com.saperion.connector.authentication.Session> listActiveSessions() throws SaAuthenticationException, SaSystemException
Session
SaSystemException
SaAuthenticationException
boolean closeSession(com.saperion.connector.authentication.Session session) throws SaAuthenticationException, SaSystemException
Session
of logged in usersession
- SaAuthenticationException
SaSystemException
@Deprecated default com.saperion.connector.authentication.Session logon(int rmiToken) throws SaSystemException
rmiToken
- The rmi token associated with already created sessionSaSystemException
- thrown if the system is not reachableboolean logoff() throws SaAuthenticationException, SaSystemException
logon(Credentials)
.SaAuthenticationException
- user was not logged inSaSystemException
- remote exceptionint getLicenseCount(int type) throws SaSystemException
type
- the license type see LicenseType
for valuesSaSystemException
- 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 documentsInputStream
containing the document contentSaSystemException
- if a backend system error occursSaAuthenticationException
- if the user is not logged in or has insufficient rightsInputStream readDocument(String docHdoc, boolean currentRevision, int elementNumber, boolean withAnnotations) throws SaSystemException, SaAuthenticationException
InputStream
instance from the appropriate
document in the backend system. This document is specified by its UID (XHDOC).InputStream.read()
docHdoc
- 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 documentswithAnnotations
- if true, annotations will be saved on the document streamSaSystemException
- if a backend system error occursSaAuthenticationException
- if the user is not logged in or has insufficient rightsInputStream 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
The returned metadata fields depend on the corresponding document definition table (DDC).
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
- if a backend system error occurs during the document creationSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaDDCException
- if a DDC related error occurs@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
- if a backend system error occurs during the fulltext get operationSaAuthenticationException
- if 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
- if a backend system error occurs during the fulltext get operationSaAuthenticationException
- if 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 versionSaSaveInfo
object describing the documentSaSystemException
- SaSystemExceptionSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaDDCException
- if a DDC related error occurs@Deprecated SaSaveInfo updateDocument(String ddcName, String documentHDOC, Properties namevaluePairs, InputStream[] content, String versionComment) throws SaSystemException, SaAuthenticationException, SaDDCException
updateDocument(UpdateDocumentInfo)
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
- if a backend system error occursSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaDDCException
- if a DDC related error occurs@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
- if a backend system error occurs during the document creationSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaDDCException
- if a DDC related error occursSaSaveInfo createDocument(DocumentInfo document) throws SaSystemException, SaAuthenticationException, SaDDCException
DocumentInfo
.
The document with indexes, contents, variables etc. given in the DocumentInfo
will be stored
in the backend repository.
document
- the DocumentInfo
object containing the document data to createSaSaveInfo
object describing the new created documentSaSystemException
- if a backend system error occurs during the document creationSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaDDCException
- if a DDC related error occursSaSaveInfo createLink(LinkInfo link) throws SaSystemException, SaAuthenticationException, SaDDCException
LinkInfo
.
link
- info LinkInfo
to create a linkSaSaveInfo
of new created linkSaSystemException
- if a backend system error occurs during the link creationSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaDDCException
- if a DDC related error occurs@Deprecated SaSaveInfo updateDocument(String ddcName, String documentHDOC, Properties namevaluePairs, InputStream[] content, String versionComment, String acls) throws SaSystemException, SaAuthenticationException, SaDDCException
searchHQL(SaQueryInfo)
, SaDocumentInfo.isCheckedout()
and SaDocumentInfo.isLocked()
.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
- if a backend system error occursSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaDDCException
- if a DDC related error occurs@Deprecated SaSaveInfo updateDocument(String ddcName, String documentHDOC, Properties namevaluePairs, InputStream[] content, String versionComment, String acls, boolean resolveLinks) throws SaSystemException, SaAuthenticationException, SaDDCException
searchHQL(SaQueryInfo)
, SaDocumentInfo.isCheckedout()
and SaDocumentInfo.isLocked()
.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
- if a backend system error occursSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaDDCException
- if a DDC related error occurs@Deprecated SaSaveInfo updateDocument(String ddcName, String documentHDOC, Properties namevaluePairs, InputStream[] content, String versionComment, String acls, boolean resolveLinks, boolean checkin) throws SaSystemException, SaAuthenticationException, SaDDCException
searchHQL(SaQueryInfo)
, SaDocumentInfo.isCheckedout()
and SaDocumentInfo.isLocked()
.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
- if a system error occuredSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaDDCException
- if a database definition was invalid or not foundSaSaveInfo updateDocument(UpdateDocumentInfo updateInfo) throws SaSystemException, SaAuthenticationException, SaDDCException
If the document was checked out, this method can be used to checkin the document. Set
UpdateDocumentInfo.setCheckin(Boolean)
to true to checkin the document when updating.
If only metadata should be modified, the ContentStream[] in the UpdateDocumentInfo
should be set to null when updating.
To control the update/remove behavior of the content streams during this update operation,
please take a look into the ContentStream.ContentStream(Integer)
documentation.
NOTE: With this method it is possible to update documents that are locked or checked out by other users. If
this behaviour is not desired one has to implement the according checks oneself using
searchHQL(SaQueryInfo)
, SaDocumentInfo.isCheckedout()
and SaDocumentInfo.isLocked()
.
updateInfo
- UpdateDocumentInfo
object containing the data to changeSaSaveInfo
information about the saved documentSaSystemException
- if a system error occuredSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaDDCException
- if a database definition was invalid or not foundvoid checkoutDocument(String hDoc) throws SaSystemException, SaAuthenticationException, SaGetNodeException
This call should be performed before a document is edited to protect the document from conflicting changes.
The checkin-operation is performed when the document is saved using updateDocument(UpdateDocumentInfo)
.
Note:
While the document is checked out, other users are able to access a read-only version of the latest revision,
but they are not able to modify the document until the check out is discarded via
discardCheckout(String)
or persisted via updateDocument(UpdateDocumentInfo)
.
hDoc
- id (HDOC) of document to checkoutSaSystemException
- if a backend system error occurs during the check out operationSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaGetNodeException
- if an error occurs while getting the document node or contentvoid discardCheckout(String hDoc) throws SaSystemException, SaAuthenticationException, SaGetNodeException
checkoutDocument(String)
.
After discarding the checkout, other users a able to modify the document again.hDoc
- id (HDOC) of document to discard a checkout forSaSystemException
- if a backend system error occurs during the discard operationSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaGetNodeException
- if an error occurs while getting the document node or contentvoid 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
To ensure that the user has exclusive access to the document, the methods lockDocument(String, String)
and
unlockDocument(String, String)
for the document object must be used.
All locked documents with a reference to the locking user are listed in the XLOCKS system table.
sysRowId
- SysRowId of document to lockddcName
- DDC nameSaSystemException
- if a backend system error occursSaAuthenticationException
- if when the user is not logged in or has insufficient rightsSaLockException
- if a lock operation related error occorsboolean unlockDocument(String sysRowId, String ddcName) throws SaSystemException, SaAuthenticationException, SaLockException
Releases the lock that was created by the lockDocument(String, String)
method.
sysRowId
- SysRowId of document to unlockddcName
- DDC nameSaSystemException
- if a backend system error occursSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaLockException
- if a lock operation related error occorsSaDocInfo getDocumentInfo(String hDoc, boolean currentRevision, boolean resolveLinks) throws SaSystemException, SaAuthenticationException
readDocumentMetadata(String, String, String[])
or
searchHQL(SaQueryInfo)
to load metadata from the database.
hDoc
- Document HDOCcurrentRevision
- True for current revisionresolveLinks
- True for resolve linksSaDocInfo
object containing the requested document informationSaSystemException
- if a backend system error occurs during the get operationSaAuthenticationException
- if the user is not logged in or has insufficient rightsgetDocumentInfo(String, boolean, boolean, boolean)
SaDocInfo getDocumentInfo(String hDoc, boolean currentRevision, boolean resolveLinks, boolean forceSizeDetermination) throws SaSystemException, SaAuthenticationException
readDocumentMetadata(String, String, String[])
or
searchHQL(SaQueryInfo)
to load metadata from the database.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
- if a backend system error occurs during the discard operationSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaSaveInfo 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. Possible values are:
SaConstants.JNI_DELETECONTENT_MODE_DBSIMPLE
(0):
mark the document as deleted on the database
SaConstants.JNI_DELETECONTENT_MODE_DBCOMPLETE
(1):
delete the document from the database
SaConstants.JNI_DELETECONTENT_MODE_PURGEDOCUMENT
(2):
delete the document from the database and from the medium. Note: Some storage-systems do not
support deletion.
SaSystemException
- if a backend system error occurs during the document deletionSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaDDCException
- if a DDC related error occursList<String> getVersionIDs(String ddcName, String sysrowID) throws SaSystemException, SaAuthenticationException
ddcName
- The name of the database definitionsysrowID
- The ID of the documentSaSystemException
- if a backend system error occursSaAuthenticationException
- 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
- if a backend system error occurs during the document creationSaAuthenticationException
- 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
- if a backend system error occurs during the read operationSaAuthenticationException
- SaAuthenticationExceptionSaDDCException
- SaDDCExceptionSaVersionData readVersionMetadata(String versionID, boolean resolveLinks) throws SaSystemException, SaAuthenticationException, SaDDCException
versionID
- Version ID (XHDOC is the revision number of the document)resolveLinks
- If false will not resolve the link and show the metadata associated with the link itself.SaSystemException
- if a backend system error occurs during the read operationSaAuthenticationException
- SaAuthenticationExceptionSaDDCException
- SaDDCExceptionString resolveLatestHDoc(String oldHdoc) throws SaSystemException, SaAuthenticationException
oldHdoc
- the HDOC to identify the documentSaSystemException
- if a backend system error occursSaAuthenticationException
- SaAuthenticationException@Deprecated boolean removeEvent(SaEvent event) throws SaSystemException
event
- Event objectSaSystemException
- if a backend system error occurs@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
getACLRights(String[])
to evaluate the rights of the current user on the given ACLs.documentHDOC
- The ID of the document revision (XHDOC)SaDDCException
- on functional failures concerning the given documentSaAuthenticationException
- when the classic connector is not authenticated or the current user has not the required rights for
the operationSaSystemException
- on general system failuresSaSaveInfo 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
- a ';' separated String of acl names that identify the Access Control Lists are requested to secure
the given documentversionComment
- since changing a documents security creates a new revision, a revision comment must be given.SaDDCException
- when the definition name given was invalidSaSetACLException
- on functional failures concerning the given document or aclsSaAuthenticationException
- when the classic connector is not authenticated or the current user has not the required rights for
the operationSaSystemException
- on general system failures@Deprecated List<String> getInvolvedUsers(String documentHDOC) throws SaSystemException, SaAuthenticationException, SaDDCException
getAuthorizedUsers(String, String, MatchKind)
instead. Will be removed in version 8.1.documentHDOC
- The ID of the document (XHDOC)SaAuthenticationException
- when the classic connector is not authenticated or the current user has not the required rights for
the operationSaSystemException
- on general system failuresSaDDCException
@Deprecated List<String> getAllACLs() throws SaSystemException, SaAuthenticationException
getAcls()
instead. Will be removed with version 8.1SaSystemException
- Remote exceptionSaAuthenticationException
- SaAuthenticationExceptionList<SaAcl> getAcls() throws SaSystemException, SaAuthenticationException
SaAuthenticationException
- when the classic connector is not authenticated or the current user has not the required rights for
the operationSaSystemException
- on general system failuresSaACLRights getACLRights(String[] acls) throws SaSystemException, SaAuthenticationException
acls
- an array of names referencing the ACLs to evaluateSaAuthenticationException
- when the classic connector is not authenticated or the current user has not the required rights for
the operationSaSystemException
- on general system failuresSaDocAccessData getDocumentAccessData(String documentHDOC) throws SaSystemException, SaAuthenticationException
documentHDOC
- The ID of the document (XHDOC)SaAuthenticationException
- when the classic connector is not authenticated or the current user has not the required rights for
the operationSaSystemException
- on general system failuresSaLockInfo getLockInfo(String sysRowId) throws SaSystemException, SaAuthenticationException, SaLockException
sysRowId
- Document SysRowIdSaLockException
- Locking errorSaAuthenticationException
- when the classic connector is not authenticated or the current user has not the required rights for
the operationSaSystemException
- on general system failuresSaWFConnector 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.1hDoc
- Document HDOCindexOfContentElement
- the index of the chosen context elementSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaSystemException
- if a backend system error occursString getAnnotations(String hDoc, int indexOfContentElement, boolean currentRevision) throws SaAuthenticationException, SaSystemException
The returned annotation string contains a list of annotation using an INI format. 5 diffrent annotations types are available. Each annotation starts with its type description and a list of properties describing the annotation format.
Annotation types:
Example for a text marker:
[HIGHLIGHT] X = <x> Y = <y> WIDTH = <width> HEIGHT = <height> LINEWIDTH = 0 FILLCOLOR = 255, 128, 0 TRANSPARENT = 1 PAGE =EDIT = 1 LABEL = Highlight1 BORDER = 1 SEMITRANSPARENT = 1
Example for a sticky node:
[TEXT] X = <x> Y = <y> WIDTH = <width> HEIGHT = <height> PAGE = <page> EDIT = 1 LABEL = text1 TEXT = <text> FONT_HEIGHT = 67 BORDER = 1 COLOR = 255, 0, 0 FILLCOLOR = 255, 255, 255 TRANSPARENT = 0 SEMITRANSPARENT = 0 FONT_NAME = Arial FONT_BOLD = 0 FONT_ITALIC = 0 FONT_UNDERLINE = 0 FONT_STRIKETHROUGH = 0 BORDER = 1 SEMITRANSPARENT = 1
Example for a black marker:
[BLACKMARKER] X = <x> Y = <y> WIDTH = <width> HEIGHT = <height> LINEWIDTH = 0 FILLCOLOR = 0, 0, 0 TRANSPARENT = 0 PAGE = <page> EDIT = 1 LABEL = Highlight1 BORDER = 1 SEMITRANSPARENT = 1
Example for a arrow annotation:
[ARROW] X1 = <x1> Y1 = <y1> X2 = <x2> Y2 = <y2> PAGE = <page> EDIT = 1 LABEL = Arrow1 COLOR = 255, 0, 0 LINEWIDTH = 10A custom-section is contained in the INI that contains information for the client about how to handle annotations. See online documentation for more information about the custom-section.
hDoc
- Document HDOCindexOfContentElement
- the index of the chosen context elementcurrentRevision
- true to get current revisionSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaSystemException
- if a backend system error occursvoid setAnnotations(String hDoc, int indexOfContentElement, String annotations) throws SaAuthenticationException, SaSystemException
For the annotation string definition to set,
please take a look into the getAnnotations(String, int, boolean)
documentation and the
online documentation
for more information about the custom-section.
hDoc
- Document HDOCindexOfContentElement
- the index of the chosen context elementannotations
- Annotation string, definition described here getAnnotations(String, int, boolean)
SaAuthenticationException
- 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)
instead. Will be removed in version 8.1.folderTableDDC
- 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.1folderTableDDC
- 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_TYPE
List<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 system files to read.filter
- A filter string. Only files will be returned, that match the filter. To get all
system files 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 tenant, String newPassword) throws SaSystemException, SaAuthenticationException
user
- The login name of the existing user.oldPassword
- The old password. This parameter is required, since the password should only be
changed by the user himself.tenant
- The tenant the user is defined innewPassword
- The new passwordSaSystemException
- when a system error occurredSaAuthenticationException
- 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 (XHDOC).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 rightsSaAuthenticationException
- when the classic connector is not authenticated or the current user has not the required rights for
the operationSaSystemException
- on general system failuresint getArchivedSize(String hDoc) throws SaSystemException, SaAuthenticationException
The actual size that the archived document takes up on the storage medium. It may be compressed, and include additional data such as fulltext and other metadata.
hDoc
- The document id whichs size is wanted.SaSystemException
- if a system error occuredSaAuthenticationException
- if the user is not logged in or has insufficient rightsString getCurrentUserName()
@Deprecated 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
- the SAP URL to checkSaSaveInfo
object with hdoc und ddc name describing the found documentSaSystemException
- if a system error occuredSaSystemException
- if checking the sap url by the RLINK server failedSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaSapUrlException
SaSaveInfo cacheDocument(String xhDoc, String ddcName, Properties namevaluePairs, InputStream[] content, String versionComment, String strAcl) throws SaSystemException, SaAuthenticationException, SaDDCException
The document will not be persisted to a storage or medium.
To persist a document in the backend system please use the method createDocument(DocumentInfo)
.
The given xhdoc should already exist on the named DDC.
This method should only used by cosolidation services like the IXOS connetor.
xhDoc
- The xhdoc of the document to cacheddcName
- The name of the database definition (DDC) to cache the documentnamevaluePairs
- 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)SaSaveInfo
object describing the cached documentSaSystemException
- if a backend system error occurrs during the cache operationSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaDDCException
- if a DDC related error orrursSaSaveInfo cacheDocument(String xhDoc, DocumentInfo document) throws SaSystemException, SaAuthenticationException, SaDDCException
The document will not be persisted to a storage or medium.
To persist a document in the backend system please use the method createDocument(DocumentInfo)
.
The given xhdoc should already exist on the named DDC.
This method should only used by cosolidation services like the IXOS connetor.
xhDoc
- The xhdoc of the Document to cachedocument
- the DocumentInfo
about the document to cacheSaSaveInfo
of the cached documentSaSystemException
- if a backend system error occurrs during the cache operationSaAuthenticationException
- if the user is not logged in or has insufficient rightsSaDDCException
- if a DDC related error occursSaUserInfo getCurrentUserInfo() throws SaAuthenticationException, SaSystemException
SaAuthenticationException
- when the classic connector is not authenticated or the current user has not the required rights for
the operationSaSystemException
- on general system failures@Deprecated void setCurrentUserPresent(boolean present) throws SaAuthenticationException, SaSystemException
updateCurrentUserInformation(MutableUserInformation)
instead.
Will be removed with version 8.1.present
- whether the current user is presentSaSystemException
- system errorSaAuthenticationException
- authentication errorvoid updateCurrentUserInformation(MutableUserInformation user) throws SaAuthenticationException, SaSystemException
MutableUserInformation
instance instead of an SaUserInfo
instance as parameter.user
- - the information to changeSaAuthenticationException
- when the classic connector is not authenticated or the current user has not the required rights for
the operationSaSystemException
- on general system failuresList<com.saperion.connector.renditions.Rendition> getRendition(Element element, com.saperion.connector.options.Options options) throws com.saperion.connector.renditions.exceptions.FormatNotSupportedException, com.saperion.connector.renditions.exceptions.PreconditionFailedException, TimeoutException, com.saperion.connector.renditions.exceptions.RenderingException, SaAuthenticationException, SaSystemException
element
- an Element
object that represents an object in the archived document.options
- an Options
object that defines the options required to generate the renditionRendition
instances.com.saperion.connector.renditions.exceptions.FormatNotSupportedException
- if the input or output format is not supportedcom.saperion.connector.renditions.exceptions.PreconditionFailedException
- if parts of the options are missingTimeoutException
- if a timeout was specified and it was reachedcom.saperion.connector.renditions.exceptions.RenderingException
- if engine is not available or internal initialization failuresSaAuthenticationException
- If not properly logged inSaSystemException
void sendBarcode(String indexMask, String docUid, String contentRep, String sid, String docType, String value, int mandant) throws SaBarcodeException
indexMask
- Index mask namedocUid
- SAPERION Document UIDcontentRep
- SAP Content repositorysid
- SAP ID
It is possible to set this value to 0, then SAPERION will generate a SAP ID.docType
- Document typevalue
- barcode as stringmandant
- Mandant nameSaBarcodeException
- BarcodeExceptionboolean hasRenderEngine()
true
, otherwise false
Set<com.saperion.connector.formats.SourceFormat> getSupportedRenderSourceFormats()
Set<com.saperion.connector.formats.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
SaAuthenticationException
- when the classic connector is not authenticated or the current user has not the required rights for
the operationSaSystemException
- on general system failuresDDC getDDC(String ddcName) throws SaSystemException, SaAuthenticationException
ddcName
- name of the DDCDDC
.SaSystemException
- system error when retrieving information about the DDCSaAuthenticationException
- not logged inServerSideClientConfiguration getServerSideClientConfiguration()
default Set<Map.Entry<String,String>> getFullTextFields(String ddcName, List<String> fullTextFields, String hdoc) throws SaSystemException
ddcName
- name of the DDCfullTextFields
- List of Fields which are of Text retrieval type.
Make sure to prefix SaConstants.FULL_TEXT_COLUMN_PREFIX
hdoc
- hdoc of the documentSaSystemException
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.