Class SaClassicConnectorImpl
- java.lang.Object
-
- com.saperion.connector.SaClassicConnectorImpl
-
- All Implemented Interfaces:
LegacyConnection,SaClassicConnector
public final class SaClassicConnectorImpl extends java.lang.Object implements SaClassicConnector
The Class SaClassicConnectorImpl.- See Also:
SaClassicConnector
-
-
Constructor Summary
Constructors Constructor Description SaClassicConnectorImpl()Constructs theSaClassicConnectorImplinstance which provides DMS functionality.SaClassicConnectorImpl(java.lang.String configPath)Constructs theSaClassicConnectorImplinstance which provides DMS functionality.SaClassicConnectorImpl(java.util.Properties configuration)Constructs theSaClassicConnectorImplinstance which provides DMS functionality.SaClassicConnectorImpl(java.util.Properties configuration, com.saperion.cache.CacheManager cacheManager)Constructs theSaClassicConnectorImplinstance which provides DMS functionality.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddComment(java.lang.String comment, java.lang.String taskUID, int level)Adds a comment to the task.voidaddHistory(java.lang.String description, java.lang.String taskUID)Adds a history entry to the task.voidaddListener(SaEventListener listener)Deprecated.voidaddListener(SaStatusEventListener listener)Deprecated.voidaddToFolder(java.lang.String folderTableDDC, java.lang.String documentId, java.lang.String documentDDC, java.lang.String folderId)Adds the document with given documentId to a given folder with given folderId.SaSaveInfocacheDocument(java.lang.String xhDoc, DocumentInfo document)Caches a new document in the backend system with the given metadata and content.SaSaveInfocacheDocument(java.lang.String xhDoc, java.lang.String ddcName, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment, java.lang.String strAcl)Caches a new document in the backend system with the given metadata and content.voidchangePassword(java.lang.String user, java.lang.String oldPassword, java.lang.String tenant, java.lang.String newPassword)Changes the password of an existing user.voidcheckoutDocument(java.lang.String hDoc)Checks out a document for the given document id (hdoc).SapDocInfocheckSapUrl(java.lang.String url)Checks the given SAP URL on the R/Link server and returns, if successfull, the HDOC and the DDC.booleancloseSession(com.saperion.connector.authentication.Session session)Close the givenSessionof logged in userjava.lang.StringcopyFolder(java.lang.String folderTableDDC, java.lang.String folderId, java.lang.String destinationId, java.lang.String beforeChild, boolean withDocuments)Copies the given folder and all it's children to the destination.SaSaveInfocreateDocument(DocumentInfo document)Creates a new document on the backend system with the givenDocumentInfo.SaSaveInfocreateDocument(java.lang.String ddcName, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment)Deprecated.SaSaveInfocreateDocument(java.lang.String ddcName, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment, java.lang.String acls)Deprecated.java.lang.StringcreateFolder(SaFolderSaveInfo info, java.util.Properties namevaluePairs)Creates a new folder below a given folder.java.lang.StringcreateFolder(java.lang.String folderTableDDC, java.lang.String parentId, java.lang.String beforeChild, java.lang.String folderName, SaFolderConstants.FOLDER_TYPE folderType, java.util.Properties namevaluePairs)Deprecated.SaSaveInfocreateLink(LinkInfo link)Creates a link to a document for givenLinkInfo.voiddeleteDocument(java.lang.String documentHDOC, int deleteType)Deletes a document from the backend system with the given delete type strategy.voiddeleteFolder(java.lang.String folderTableDDC, java.lang.String folderId)Deletes an existing folder.booleandeleteSetting(java.lang.String name, java.lang.String section, boolean isLong)This method deletes a setting in the database.voiddiscardCheckout(java.lang.String hDoc)Discards a checkout of a document which was performed via the methodSaClassicConnector.checkoutDocument(String).java.lang.StringexecuteCommand(ContextInfo contextInfo)Performs the given command.java.lang.StringgetACLNames(java.lang.String documentHDOC)This method returns the names of the Access Control Lists that are assigned to this document.SaACLRightsgetACLRights(java.lang.String[] acls)This method returns the access rights the current user has when in the context of the Access Controll Lists given by name.java.util.List<SaAcl>getAcls()This method returns all Access Control Lists in the current tenant.java.util.List<java.lang.String>getAllACLs()Deprecated.java.lang.StringgetAnnotations(java.lang.String hDoc, int indexOfContentElement)Deprecated.java.lang.StringgetAnnotations(java.lang.String hDoc, int indexOfContentElement, boolean currentRevision)Reads the annotations of the document with the specified ID.intgetArchivedSize(java.lang.String hDoc)Returns the total document size in the archive in bytes.java.util.List<UsersRights>getAuthorizedUsers(java.lang.String hDoc, java.lang.String rights, MatchKind match)This method returns the users that have specific rights on a document.java.lang.LonggetBoxCount(int boxId)Reads the count (number of workflow item) of the inbox identified by the given id.java.util.List<BoxDefinition>getBoxDefinitions()Reads the box definitions.SaRMIClientCommandgetClientConnector()java.util.Collection<CommandInfo>getCommandInfos(java.lang.String docUID)Reads all possible transitions for this task.java.util.Collection<CommandInfo>getCommandInfos(java.lang.String docUID, boolean transitionsOnly)Reads all possible transitions and optional other possible commands for this task.java.util.List<CommentInfo>getCommentInfos(java.lang.String taskId)Reads the comments for the given task.java.util.List<java.util.List<HistoryInfo>>getCompleteHistoryInfos(java.lang.String docId)Reads the history and comments for the given document.java.util.PropertiesgetConfiguration(java.lang.String section)This method reads the application configuration properties from the backend system.SaUserInfogetCurrentUserInfo()This method returns detailed info about the current user.java.lang.StringgetCurrentUserName()This method returns the name of teh user currently logged in.com.lexmark.saperion.administration.RoleTypegetCurrentUserRole()SaFieldDescription[]getDBDefinition(java.lang.String name)This method reads the field definitions of the database definition (DDC) with the given name.DDCgetDDC(java.lang.String ddcName)This method returns a document definition given by its name.java.lang.String[]getDefinitions()This method returns the names of all DDCs registered in the Saperion system.SaDocAccessDatagetDocumentAccessData(java.lang.String documentHDOC)This method reads the access rights the current user has on a given document.longgetDocumentFolderCount(java.lang.String folderTableDDC, java.lang.String documentDDC, java.lang.String sysRowId)Returns the total count over all folders from all users in which the specified document is contained in.java.util.List<SaDocumentInfo>getDocumentFolders(java.lang.String folderTableDDC, java.lang.String documentDDC, java.lang.String sysRowId)Returns a list of folder properties which contains all folders the document is contained in.SaDocInfogetDocumentInfo(java.lang.String hDoc, boolean currentRevision, boolean resolveLinks)Reads information like the document-structure and variables for the given document.SaDocInfogetDocumentInfo(java.lang.String hDoc, boolean currentRevision, boolean resolveLinks, boolean forceSizeDetermination)Reads information like the document-structure and variables for the given document.booleangetEventsEnabled()This method returns whether events (e.g.SaFeaturegetFeatures()This method returns the features enabled in the Saperion system.SaDocumentInfogetFolderByPath(java.lang.String folderTableDDC, java.lang.String startFolderId, java.lang.String folderPath)Returns the folder which matches to the given path.java.util.List<SaDocumentInfo>getFolderChildren(java.lang.String folderTableDDC, java.lang.String folderId, int depth, SaQueryInfo filter, int allowedMaxNrOfChildFolders)Returns a list with the children of the given node.SaFolderClassgetFolderClass(java.lang.String className)Reads the folder class with the given name.java.lang.String[]getFolderDefinitions()Reads the registered folder DDC names from the repository.java.util.List<SaDocumentInfo>getFolderFromPath(java.lang.String folderTableDDC, java.lang.String startNodeId, java.lang.String folderPath)Returns the folders which match to the given path.SaDocumentInfogetFolderInfo(java.lang.String folderTableDDC, java.lang.String folderId)Deprecated.SaDocumentInfogetFolderInfo(java.lang.String folderTableDDC, java.lang.String folderId, boolean forceLoadVariables)Returns the folder information object for the given folder.SaDocumentInfogetFolderParent(java.lang.String folderTableDDC, java.lang.String folderId)Returns the parent of the given folder.SaDocAccessDatagetFolderRights(java.lang.String folderTableDDC, java.lang.String folderId)Returns the rights mask for the given folder and user.java.util.Set<FolderUpdateInfo>getFolderUpdateInfo(java.util.Map<java.lang.String,java.lang.Long> folderIds)Deprecated.java.lang.StringgetFulltext(java.lang.String ddcName, java.lang.String sysRowId)Deprecated.java.lang.StringgetFulltext(java.lang.String ddcName, java.lang.String hdoc, java.lang.String fieldName, long length)Reads the fulltext information for the given document with the given HDOC in the given DDC from the specified field.java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>>getFullTextFields(java.lang.String ddcName, java.util.List<java.lang.String> fullTextFields, java.lang.String hdoc)java.util.List<HistoryInfo>getHistoryInfos(java.lang.String taskId)Reads the history for the given task.java.util.List<java.lang.String>getInvolvedUsers(java.lang.String documentHDOC)Lists the names of all users that are contained in all Access Control Lists set on the given document.intgetLicenseCount(int type)This method returns the overall count of Licenses of the given type in the system.SaLockInfogetLockInfo(java.lang.String sysRowId)This method returns the locking information for a given document.WorkflowMembergetMember(WorkflowMember member, int depth, java.lang.String filter)Returns the workflow members by the given parameters.
This method is considered as a search-method.WorkflowMembergetMembers()Reads the workflow members in a full structured tree.booleangetOutOfOffice()Get the substitute for the logged on user.TaskInfogetParentTask(java.lang.String taskID)Reads the parent task info for the given ID.java.lang.StringgetReleaseAclName()Gets the release ACL name, configured in the program.ini in section [Release].java.lang.StringgetReleasedHdoc(java.lang.String oldHdoc)Gets the released hdoc for given hdoc if release feature is on and release tag is set, otherwise returns the given hDoc.java.util.List<com.saperion.connector.renditions.Rendition>getRendition(Element element, com.saperion.connector.options.Options options)Returns the rendition object from a rendered document.java.util.List<SaRMIServerInfo>getServerInfos()ServerSideClientConfigurationgetServerSideClientConfiguration()This method returns the configuration concerning the classic connector that is set on the server side.com.saperion.connector.authentication.SessiongetSession()Returns the session of the logged in user.SettinggetSetting(java.lang.String name, java.lang.String section, boolean isLong)This method retrieves aSettingidentified by it's key and section from the database.java.lang.StringgetSubstitute()Get the substitute for the logged on user.java.util.Set<com.saperion.connector.formats.SourceFormat>getSupportedRenderSourceFormats()Gets the supported source formats from the render engine.java.util.Set<com.saperion.connector.formats.TargetFormat>getSupportedRenderTargetFormats()Gets the supported target formats from the render engine.java.util.List<java.lang.String>getSystemFiles(SystemFileKind kind, java.lang.String filter)This method returns the names of all system files of a specific kind.SaSystemInfogetSystemInfo()This method returns general information about the connected system.SaSystemSettinggetSystemSetting(java.lang.String accessKey)Retrieves a system setting object.TaskInfogetTask(java.lang.String taskID)Reads the task info for the given ID.java.util.List<TaskAuditInfo>getTaskAuditList(int[] ids, java.lang.String filter, java.util.Map<java.lang.String,java.lang.Object> parameter)Reads the task audits for this user.java.util.List<TaskInfo>getTaskList(int[] ids, java.lang.String filter, java.util.Map<java.lang.String,java.lang.Object> parameter)Reads the tasks for this user.byte[]getThumbnail(java.lang.String hDoc, int widthX, int widthY, boolean color)Reads the thumbnail of the given document.intgetToken()java.util.List<java.lang.String>getUsers(java.lang.String filter)Reads a list of filtered users.SaUserSettinggetUserSetting(java.lang.String accessKey)Retrieves a user-specific setting object.java.util.List<java.lang.String>getVersionIDs(java.lang.String ddcName, java.lang.String sysrowID)Reads the version IDs of the given document.SaWFConnectorgetWorkflowConnector()Returns a workflow connector based on this classic connector.java.lang.StringgetWorkflowDdcName()Gets the workflow ddc name.java.util.List<java.lang.String>getWorkflowDefinitions()Reads all available workflow definitions.java.util.List<ProcessDefinitionDescriptor>getWorkflowDefinitions(java.lang.String ddcName)Returns the workflow definitions that are allowed to be used for documents contained in the specified DDC.inthashCode()booleanhasRenderEngine()Checks wether this classic connector has a render engine.<T extends java.io.Serializable>
Tinvoke(LegacyOperation<T> operation)Invokes the givenOperationon the server side.booleanisActive()Checks, if the connector is logged on.booleanisAlive()Tests the lifetime of this connector.booleanisReleaseActive()Checks if is release feature in the program.ini in section [Release] is active.java.util.List<com.saperion.connector.authentication.Session>listActiveSessions()List active sessions of the logged in userjava.util.Map<java.lang.String,java.lang.String>loadLocalize(java.lang.String language)Load localize.java.io.InputStreamloadSystemFile(SystemFileKind kind, java.lang.String name)This method loads a system file of a specific kind.booleanlockDocument(java.lang.String sysRowId, java.lang.String ddcName)Locks a document.voidlogClientEvent(java.lang.String hdoc, SaConstants.ProtoEvents event, java.lang.String remark)Adds an audit log event.booleanlogoff()This method logs the current user off from the system.intlogon(byte[] token, int type, java.lang.String client)Deprecated.com.saperion.connector.authentication.Sessionlogon(com.lexmark.saperion.remote.common.authentication.Credentials credentials)This method authenticates the givenCredentialsand returns the information about the open session.com.saperion.connector.authentication.Sessionlogon(com.lexmark.saperion.remote.common.authentication.Credentials credentials, com.saperion.connector.authentication.SessionInfo sessionInfo)This method authenticates the givenCredentials, associate the givenSessionInfoand returns the information about the open session.intlogon(java.lang.String username, java.lang.String password, int type, java.lang.String client)This method authenticates the given user and returns the token of the newly created session.intlogon(jcifs.smb.NtlmPasswordAuthentication auth, int type, java.lang.String client)Deprecated.voidmoveFolder(java.lang.String folderTableDDC, java.lang.String folderId, java.lang.String destinationId, java.lang.String beforeChild)Moves the given folder to a new destination.voidmoveToFolder(java.lang.String folderTableDDC, java.lang.String documentId, java.lang.String documentDDC, java.lang.String folderId, java.lang.String destinationId)Removes the document from the source folder and adds it to the source folder.java.io.InputStreamreadDocument(java.lang.String docHdoc, boolean currentRevision, int elementNumber)Loads a document's content from the backend system.java.io.InputStreamreadDocument(java.lang.String docHdoc, boolean currentRevision, int elementNumber, boolean withAnnotations)Loads a document's content from the backend system.java.lang.StringreadDocumentFilename(java.lang.String docHdoc, boolean currentRevision, int elementNumber)Reads the filenames of the application data of the document with the given ID.SaPropertyValue[]readDocumentMetadata(java.lang.String documentSysRowID, java.lang.String ddcName, java.lang.String[] fields)Reads the metadata of the document with the given ID.java.io.InputStreamreadReleasedDocument(java.lang.String docHdoc, boolean currentRevision, int elementNumber)Read released document if the release feature is active.java.io.InputStreamreadVersionDocument(java.lang.String docHdoc, int elementNumber)Loads a document version from the backend system.java.lang.StringreadVersionDocumentFilename(java.lang.String docHdoc, int elementNumber)Reads the filenames of the application data of the document with the given ID.SaVersionDatareadVersionMetadata(java.lang.String versionID)Reads the version metadata of the document with the given ID.SaVersionDatareadVersionMetadata(java.lang.String versionID, boolean resolveLinks)Reads the version metadata of the document with the given ID.voidreleaseDocument(java.lang.String ddcName, java.lang.String hDoc, java.lang.String versionComment)Release the given document.booleanremoveEvent(SaEvent event)Deprecated.voidremoveFromFolder(java.lang.String folderTableDDC, java.lang.String documentSysRowId, java.lang.String documentDDC, java.lang.String folderId)Removes the document from the given folder.voidremoveListener(SaEventListener listener)Deprecated.voidremoveListener(SaStatusEventListener listener)Deprecated.java.lang.StringresolveLatestHDoc(java.lang.String oldHdoc)Resolves and returns the XHDOC of the latest version of the document identified by the given HDOC.SaSaveInforestoreVersion(java.lang.String versionID)Restores the version with the given HDOC.java.util.List<SaPropertyValue[]>search(java.lang.String hqlQuery)Deprecated.java.util.Set<SaFolderClass>searchFolderClass(SaFolderClassSearchInfo searchInfo)Searches for folder classes that match the specified propertied.java.util.List<SaDocumentInfo>searchFolderDocuments(java.lang.String folderTableDDC, java.lang.String folderId, SaQueryInfo hqlFilter)HQL search extended with additional folder informations and depth.java.util.List<SaDocumentInfo>searchHQL(SaQueryInfo hqlQuery)Performs a search with the given hql query (hibernate query language).SettingSearchResultsearchSettings(SettingSearchInfo searchInfo)This method searches settings in the database.voidsendBarcode(java.lang.String indexMask, java.lang.String docUid, java.lang.String contentRep, java.lang.String sid, java.lang.String docType, java.lang.String value, int mandant)Sends the Document UID with the barcode to SAP R/3.SaSaveInfosetACLName(java.lang.String ddcname, java.lang.String documentHDOC, java.lang.String acl, java.lang.String versionComment)This method specifies the Access Control Lists that secure the document given by its id.voidsetAnnotations(java.lang.String hDoc, int indexOfContentElement, java.lang.String annotations)Sets the given annotations to the document.voidsetCurrentUserPresent(boolean present)Sets whether the current user is present.voidsetEventsEnabled(boolean enabled)This method sets whether events (e.g.voidsetFolderAcl(java.lang.String folderTableDDC, java.lang.String folderId, java.lang.String aclName)Sets an ACL for the given folder.voidsetLocale(java.util.Locale locale)This methods sets the localization information for the current user.voidsetOutOfOffice(boolean isOutOfOffice)set the out of office status for the logged on user.voidsetSetting(Setting setting)This method stores aSettingin the database.voidsetSubstitute(java.lang.String name)Set the substitute for the logged on user.booleansetUsedLicense(int type, int count)Set the count of used licenses.voidsetUserSetting(SaUserSetting setting)Persists a user-specific setting object.voidstopServer()Deprecated.voidstoreSystemFile(SystemFileKind kind, java.lang.String name, java.io.InputStream data)This method stores a system file of a specific kind.java.lang.StringtoString()booleanunlockDocument(java.lang.String sysRowId, java.lang.String ddcName)Unlocks a document.voidupdateCurrentUserInformation(MutableUserInformation user)Changes information about the current user.SaSaveInfoupdateDocument(UpdateDocumentInfo updateInfo)Updates a document in the backend system with the given metadata, acls and content.SaSaveInfoupdateDocument(java.lang.String ddcName, java.lang.String documentHDOC, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment)Deprecated.SaSaveInfoupdateDocument(java.lang.String ddcName, java.lang.String documentHDOC, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment, java.lang.String acls)Deprecated.SaSaveInfoupdateDocument(java.lang.String ddcName, java.lang.String documentHDOC, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment, java.lang.String acls, boolean resolveLinks)Deprecated.SaSaveInfoupdateDocument(java.lang.String ddcName, java.lang.String documentHDOC, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment, java.lang.String acls, boolean resolveLinks, boolean checkin)Deprecated.voidupdateFolder(java.lang.String folderTableDDC, java.lang.String folderId, java.util.Properties namevaluePairs)Updates an existing folder with the given properties.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.saperion.connector.SaClassicConnector
logon
-
-
-
-
Constructor Detail
-
SaClassicConnectorImpl
public SaClassicConnectorImpl()
Constructs theSaClassicConnectorImplinstance which provides DMS functionality.
-
SaClassicConnectorImpl
public SaClassicConnectorImpl(java.lang.String configPath)
Constructs theSaClassicConnectorImplinstance which provides DMS functionality.- Parameters:
configPath- Configuration path
-
SaClassicConnectorImpl
public SaClassicConnectorImpl(java.util.Properties configuration)
Constructs theSaClassicConnectorImplinstance which provides DMS functionality.- Parameters:
configuration- Configuration properties
-
SaClassicConnectorImpl
public SaClassicConnectorImpl(java.util.Properties configuration, com.saperion.cache.CacheManager cacheManager)Constructs theSaClassicConnectorImplinstance which provides DMS functionality.- Parameters:
configuration- Configuration propertiescacheManager- an instance ofCacheManager
-
-
Method Detail
-
getConfiguration
public java.util.Properties getConfiguration(java.lang.String section) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorThis method reads the application configuration properties from the backend system.- Specified by:
getConfigurationin interfaceSaClassicConnector- Parameters:
section- the name of the section in the archief.ini to load configuration properties from- Returns:
- Configuration properties as key-value pairs
- Throws:
SaSystemException- SaSystemExceptionSaAuthenticationException- SaAuthenticationException
-
stopServer
@Deprecated public void stopServer() throws SaSystemException, SaAuthenticationExceptionDeprecated.Description copied from interface:SaClassicConnectorStops the remote server.- Specified by:
stopServerin interfaceSaClassicConnector- Throws:
SaSystemException- SaSystemExceptionSaAuthenticationException- SaAuthenticationException
-
getDefinitions
public java.lang.String[] getDefinitions() throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorThis method returns the names of all DDCs registered in the Saperion system.- Specified by:
getDefinitionsin interfaceSaClassicConnector- Returns:
- Array of DDC names
- Throws:
SaSystemException- on general system failuresSaAuthenticationException- when the classic connector is not authenticated or the current user has not the required rights for the operation
-
getFolderDefinitions
public java.lang.String[] getFolderDefinitions() throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorReads the registered folder DDC names from the repository.- Specified by:
getFolderDefinitionsin interfaceSaClassicConnector- Returns:
- Array of folder DDC names
- Throws:
SaSystemException- SaSystemExceptionSaAuthenticationException- SaAuthenticationException
-
getDBDefinition
public SaFieldDescription[] getDBDefinition(java.lang.String name) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorThis method reads the field definitions of the database definition (DDC) with the given name.- Specified by:
getDBDefinitionin interfaceSaClassicConnector- Parameters:
name- the name of the database definition (DDC) to get the fields of- Returns:
- an array of all field definitions
SaFieldDescriptionin the definition - Throws:
SaSystemException- on general system failuresSaAuthenticationException- when the classic connector is not authenticated or the current user has not the required rights for the operation
-
logon
public int logon(java.lang.String username, java.lang.String password, int type, java.lang.String client) throws SaAuthenticationException, SaSystemExceptionDescription copied from interface:SaClassicConnectorThis method authenticates the given user and returns the token of the newly created session.- Specified by:
logonin interfaceSaClassicConnector- Parameters:
username- User's full namepassword- Passwordtype- User type that means client license type. There are possible the following integer values:- 1 = index
- 2 = query
- 3 = univeral administrator
- 4 = web query
- 7 = web index
- 12 = workflow
- 13 = scan
- 14 = highend scan
- 15 = API query
- 16 = API index
- 17 = API scan
- 20 = basic administrator
- 29 = web workflow
client- client/mandant name, used in multi-client systems- Returns:
- User token for the current session.
- Throws:
SaAuthenticationException- when the user is not logged in or has insufficient rightsSaSystemException- SaSystemException
-
logon
@Deprecated public int logon(jcifs.smb.NtlmPasswordAuthentication auth, int type, java.lang.String client) throws SaAuthenticationException, SaSystemExceptionDeprecated.Description copied from interface:SaClassicConnectorPerforms a logon with NTLM authentication.- Specified by:
logonin interfaceSaClassicConnector- Parameters:
auth- Ntlm authentication objecttype- User type that means client license type. There are possible the following integer values:- 1 = index
- 2 = query
- 3 = univeral administrator
- 4 = web query
- 7 = web index
- 12 = workflow
- 13 = scan
- 14 = highend scan
- 15 = API query
- 16 = API index
- 17 = API scan
- 20 = basic administrator
- 29 = web workflow
client- client/mandant name, used in multi-client systems- Returns:
- User token for the current session.
- Throws:
SaAuthenticationException- when the user is not logged in or has insufficient rightsSaSystemException- SaSystemException
-
logon
@Deprecated public int logon(byte[] token, int type, java.lang.String client) throws SaAuthenticationException, SaSystemExceptionDeprecated.- Specified by:
logonin interfaceSaClassicConnector- Throws:
SaSystemException- because it is not supported anymore.SaAuthenticationException
-
logon
public com.saperion.connector.authentication.Session logon(com.lexmark.saperion.remote.common.authentication.Credentials credentials) throws SaAuthenticationException, SaSystemExceptionThis method authenticates the givenCredentialsand returns the information about the open session.- Specified by:
logonin interfaceSaClassicConnector- Parameters:
credentials- credentials that authorize and authenticate the session returned- Returns:
- information about the created session
- Throws:
SaAuthenticationException- thrown if logon was not possible with the given credentialsSaSystemException- thrown if the system is not reachable- See Also:
SaClassicConnector.logon(Credentials)
-
logon
public com.saperion.connector.authentication.Session logon(com.lexmark.saperion.remote.common.authentication.Credentials credentials, com.saperion.connector.authentication.SessionInfo sessionInfo) throws SaAuthenticationException, SaSystemExceptionThis method authenticates the givenCredentials, associate the givenSessionInfoand returns the information about the open session.- Specified by:
logonin interfaceSaClassicConnector- Parameters:
credentials- credentials that authorize and authenticate the session returnedsessionInfo- The session information like user agent, remote address etc.- Returns:
- information about the created session
- Throws:
SaAuthenticationException- thrown if logon was not possible with the given credentialsSaSystemException- thrown if the system is not reachable- See Also:
SaClassicConnector.logon(Credentials, SessionInfo)
-
listActiveSessions
public java.util.List<com.saperion.connector.authentication.Session> listActiveSessions() throws SaAuthenticationException, SaSystemExceptionList active sessions of the logged in user- Specified by:
listActiveSessionsin interfaceSaClassicConnector- Returns:
- A list of
Session - Throws:
SaSystemExceptionSaAuthenticationException- See Also:
SaClassicConnector.listActiveSessions()
-
closeSession
public boolean closeSession(com.saperion.connector.authentication.Session session) throws SaAuthenticationException, SaSystemExceptionClose the givenSessionof logged in user- Specified by:
closeSessionin interfaceSaClassicConnector- Returns:
- true if successful, false otherwise
- Throws:
SaAuthenticationExceptionSaSystemException- See Also:
SaClassicConnector.closeSession(Session)
-
logoff
public boolean logoff() throws SaAuthenticationException, SaSystemExceptionDescription copied from interface:SaClassicConnectorThis method logs the current user off from the system. The connector can be reused by callingSaClassicConnector.logon(Credentials).- Specified by:
logoffin interfaceSaClassicConnector- Returns:
- whether the connector was authenticated before
- Throws:
SaAuthenticationException- user was not logged inSaSystemException- remote exception
-
readReleasedDocument
public java.io.InputStream readReleasedDocument(java.lang.String docHdoc, boolean currentRevision, int elementNumber) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorRead released document if the release feature is active.- Specified by:
readReleasedDocumentin interfaceSaClassicConnector- Parameters:
docHdoc- the doc hdoccurrentRevision- the current revisionelementNumber- the element number- Returns:
- the input stream
- Throws:
SaSystemException- the sa system exceptionSaAuthenticationException- when the user is not logged in or has insufficient rights
-
readDocument
public java.io.InputStream readDocument(java.lang.String docHdoc, boolean currentRevision, int elementNumber) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorLoads a document's content from the backend system.
This method creates a document'sInputStreaminstance from the appropriate document in the backend system. This document is specified by its UID (XHDOC).
The actual content of the document can be read by usingInputStream.read()- Specified by:
readDocumentin interfaceSaClassicConnector- Parameters:
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 documents- Returns:
InputStreamcontaining the document content- Throws:
SaSystemException- if a backend system error occursSaAuthenticationException- if the user is not logged in or has insufficient rights
-
readDocument
public java.io.InputStream readDocument(java.lang.String docHdoc, boolean currentRevision, int elementNumber, boolean withAnnotations) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorLoads a document's content from the backend system.
This method creates a document'sInputStreaminstance from the appropriate document in the backend system. This document is specified by its UID (XHDOC).
The actual content of the document can be read by usingInputStream.read()- Specified by:
readDocumentin interfaceSaClassicConnector- Parameters:
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 stream- Returns:
- Input stream containing the document content
- Throws:
SaSystemException- if a backend system error occursSaAuthenticationException- if the user is not logged in or has insufficient rights
-
readDocumentMetadata
public SaPropertyValue[] readDocumentMetadata(java.lang.String documentSysRowID, java.lang.String ddcName, java.lang.String[] fields) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorReads the metadata of the document with the given ID.The returned metadata fields depend on the corresponding document definition table (DDC).
- Specified by:
readDocumentMetadatain interfaceSaClassicConnector- Parameters:
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.- Returns:
- The Metadata of the document represented as an array of
SaPropertyValueinstances. - Throws:
SaSystemException- if a backend system error occurs during the document creationSaAuthenticationException- if the user is not logged in or has insufficient rights
-
getFulltext
@Deprecated public java.lang.String getFulltext(java.lang.String ddcName, java.lang.String sysRowId) throws SaSystemException, SaAuthenticationExceptionDeprecated.Description copied from interface:SaClassicConnectorReads the fulltext information for the given document with the given SYSROWID in the given DDC.- Specified by:
getFulltextin interfaceSaClassicConnector- Parameters:
ddcName- DDC name of the documentsysRowId- SYSROWID of the document- Returns:
- Content of the fulltext for this document
- Throws:
SaSystemException- if a backend system error occurs during the fulltext get operationSaAuthenticationException- if the user is not logged in or has insufficient rights
-
getFulltext
public java.lang.String getFulltext(java.lang.String ddcName, java.lang.String hdoc, java.lang.String fieldName, long length) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorReads the fulltext information for the given document with the given HDOC in the given DDC from the specified field.- Specified by:
getFulltextin interfaceSaClassicConnector- Parameters:
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.- Returns:
- Content of the fulltext for this document as string.
- Throws:
SaSystemException- if a backend system error occurs during the fulltext get operationSaAuthenticationException- if the user is not logged in or has insufficient rights
-
getThumbnail
public byte[] getThumbnail(java.lang.String hDoc, int widthX, int widthY, boolean color) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorReads the thumbnail of the given document. It is possible to set either widthX or widthY to -1 to auto-calculate the value. An empty array is returned, when no thumbnail is available.- Specified by:
getThumbnailin interfaceSaClassicConnector- Parameters:
hDoc- HDoc for the document.widthX- Width X or -1 to auto-calculatewidthY- Width Y or -1 to auto-calculatecolor- True for colored- Returns:
- Thumbnail BMP as byte array
- Throws:
SaSystemException- System exceptionSaAuthenticationException- when the user is not logged in or has insufficient rights
-
createDocument
@Deprecated public SaSaveInfo createDocument(java.lang.String ddcName, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment) throws SaSystemException, SaAuthenticationException, SaDDCException
Deprecated.Description copied from interface:SaClassicConnectorCreates a new document on the backend system with the given metadata and content.- Specified by:
createDocumentin interfaceSaClassicConnector- Parameters:
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 ofInputStreaminstances)versionComment- The comment for the version- Returns:
SaSaveInfoobject describing the document- Throws:
SaSystemException- SaSystemExceptionSaAuthenticationException- if the user is not logged in or has insufficient rightsSaDDCException- if a DDC related error occurs
-
createDocument
@Deprecated public SaSaveInfo createDocument(java.lang.String ddcName, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment, java.lang.String acls) throws SaSystemException, SaAuthenticationException, SaDDCException
Deprecated.Description copied from interface:SaClassicConnectorCreates a new document on the backend system with the given metadata, acl's and content.- Specified by:
createDocumentin interfaceSaClassicConnector- Parameters:
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 ofInputStreaminstances)versionComment- The comment for the versionacls- ACL name string (semicolon separated)- Returns:
- SaSaveInfo SaSaveInfo object describing the new created document
- Throws:
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
-
createDocument
public SaSaveInfo createDocument(DocumentInfo document) throws SaSystemException, SaAuthenticationException, SaDDCException
Description copied from interface:SaClassicConnectorCreates a new document on the backend system with the givenDocumentInfo.The document with indexes, contents, variables etc. given in the
DocumentInfowill be stored in the backend repository.- Specified by:
createDocumentin interfaceSaClassicConnector- Parameters:
document- theDocumentInfoobject containing the document data to create- Returns:
- SaSaveInfo
SaSaveInfoobject describing the new created document - Throws:
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
-
createLink
public SaSaveInfo createLink(LinkInfo link) throws SaSystemException, SaAuthenticationException, SaDDCException
Description copied from interface:SaClassicConnectorCreates a link to a document for givenLinkInfo.
A link represents a reference to another document.- Specified by:
createLinkin interfaceSaClassicConnector- Parameters:
link- infoLinkInfoto create a link- Returns:
SaSaveInfoof new created link- Throws:
SaSystemException- 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
-
updateDocument
@Deprecated public SaSaveInfo updateDocument(java.lang.String ddcName, java.lang.String documentHDOC, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment) throws SaSystemException, SaAuthenticationException, SaDDCException
Deprecated.Description copied from interface:SaClassicConnectorUpdates a document in the backend system with the given metadata and content. Only the attached metadata and elements are changed. If the document was checked out, it will be automatically checked in.- Specified by:
updateDocumentin interfaceSaClassicConnector- Parameters:
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 version- Returns:
- SaSaveInfo SaSaveInfo object describing the document
- Throws:
SaSystemException- if a backend system error occursSaAuthenticationException- if the user is not logged in or has insufficient rightsSaDDCException- if a DDC related error occurs
-
lockDocument
public boolean lockDocument(java.lang.String sysRowId, java.lang.String ddcName) throws SaSystemException, SaAuthenticationException, SaLockExceptionDescription copied from interface:SaClassicConnectorLocks a document.To ensure that the user has exclusive access to the document, the methods
SaClassicConnector.lockDocument(String, String)andSaClassicConnector.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.
- Specified by:
lockDocumentin interfaceSaClassicConnector- Parameters:
sysRowId- SysRowId of document to lockddcName- DDC name- Returns:
- True, if document was locked succesfully, otherwise false
- Throws:
SaSystemException- if a backend system error occursSaAuthenticationException- if when the user is not logged in or has insufficient rightsSaLockException- if a lock operation related error occors
-
unlockDocument
public boolean unlockDocument(java.lang.String sysRowId, java.lang.String ddcName) throws SaSystemException, SaAuthenticationException, SaLockExceptionDescription copied from interface:SaClassicConnectorUnlocks a document.Releases the lock that was created by the
SaClassicConnector.lockDocument(String, String)method.- Specified by:
unlockDocumentin interfaceSaClassicConnector- Parameters:
sysRowId- SysRowId of document to unlockddcName- DDC name- Returns:
- True, if document was unlocked successlully, otherwise false
- Throws:
SaSystemException- if a backend system error occursSaAuthenticationException- if the user is not logged in or has insufficient rightsSaLockException- if a lock operation related error occors
-
getDocumentInfo
public SaDocInfo getDocumentInfo(java.lang.String hDoc, boolean currentRevision, boolean resolveLinks) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorReads information like the document-structure and variables for the given document. Metadata stored in the database is not contained. UseSaClassicConnector.readDocumentMetadata(String, String, String[])orSaClassicConnector.searchHQL(SaQueryInfo)to load metadata from the database.
The backend is not forced to determine the size of each element, so sizes might not be available. ATTENTION! This method is slow because of full load of the document.- Specified by:
getDocumentInfoin interfaceSaClassicConnector- Parameters:
hDoc- Document HDOCcurrentRevision- True for current revisionresolveLinks- True for resolve links- Returns:
SaDocInfoobject containing the requested document information- Throws:
SaSystemException- if a backend system error occurs during the get operationSaAuthenticationException- if the user is not logged in or has insufficient rights- See Also:
SaClassicConnector.getDocumentInfo(String, boolean, boolean, boolean)
-
getDocumentInfo
public SaDocInfo getDocumentInfo(java.lang.String hDoc, boolean currentRevision, boolean resolveLinks, boolean forceSizeDetermination) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorReads information like the document-structure and variables for the given document. Metadata stored in the database is not contained. UseSaClassicConnector.readDocumentMetadata(String, String, String[])orSaClassicConnector.searchHQL(SaQueryInfo)to load metadata from the database.- Specified by:
getDocumentInfoin interfaceSaClassicConnector- Parameters:
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.- Returns:
- Document information
- Throws:
SaSystemException- if a backend system error occurs during the discard operationSaAuthenticationException- if the user is not logged in or has insufficient rights
-
updateDocument
@Deprecated public SaSaveInfo updateDocument(java.lang.String ddcName, java.lang.String documentHDOC, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment, java.lang.String acls) throws SaSystemException, SaAuthenticationException, SaDDCException
Deprecated.Description copied from interface:SaClassicConnectorUpdates a document in the backend system with the given metadata, acls and content. Only the attached metadata and elements are changed. If the document was checked out, it will be automatically checked in. 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 usingSaClassicConnector.searchHQL(SaQueryInfo),SaDocumentInfo.isCheckedout()andSaDocumentInfo.isLocked().- Specified by:
updateDocumentin interfaceSaClassicConnector- Parameters:
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, ifnullit will be ignored, to delete existing ACLs set an empty string- Returns:
- SaSaveInfo SaSaveInfo object describing the document
- Throws:
SaSystemException- if a backend system error occursSaAuthenticationException- if the user is not logged in or has insufficient rightsSaDDCException- if a DDC related error occurs
-
updateDocument
@Deprecated public SaSaveInfo updateDocument(java.lang.String ddcName, java.lang.String documentHDOC, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment, java.lang.String acls, boolean resolveLinks) throws SaSystemException, SaAuthenticationException, SaDDCException
Deprecated.Description copied from interface:SaClassicConnectorUpdates a document in the backend system with the given metadata, acls and content. Only the attached metadata and elements are changed. If the document was checked out, it will be automatically checked in. 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 usingSaClassicConnector.searchHQL(SaQueryInfo),SaDocumentInfo.isCheckedout()andSaDocumentInfo.isLocked().- Specified by:
updateDocumentin interfaceSaClassicConnector- Parameters:
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, ifnullit will be ignored, to delete existing ACLs set an empty stringresolveLinks- Resolve links- Returns:
- SaSaveInfo SaSaveInfo object describing the document
- Throws:
SaSystemException- if a backend system error occursSaAuthenticationException- if the user is not logged in or has insufficient rightsSaDDCException- if a DDC related error occurs
-
updateDocument
@Deprecated public SaSaveInfo updateDocument(java.lang.String ddcName, java.lang.String documentHDOC, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment, java.lang.String acls, boolean resolveLinks, boolean checkin) throws SaSystemException, SaAuthenticationException, SaDDCException
Deprecated.Description copied from interface:SaClassicConnectorUpdates a document in the backend system with the given metadata, acls and content. Only the attached metadata and elements are changed. If the document was checked out, it will be automatically checked in. 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 usingSaClassicConnector.searchHQL(SaQueryInfo),SaDocumentInfo.isCheckedout()andSaDocumentInfo.isLocked().- Specified by:
updateDocumentin interfaceSaClassicConnector- Parameters:
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, ifnullit will be ignored, to delete existing ACLs set an empty stringresolveLinks- Resolve linkscheckin- Checkin document- Returns:
- SaSaveInfo SaSaveInfo object describing the document
- Throws:
SaSystemException- if a system error occuredSaAuthenticationException- if the user is not logged in or has insufficient rightsSaDDCException- if a database definition was invalid or not found
-
updateDocument
public SaSaveInfo updateDocument(UpdateDocumentInfo updateInfo) throws SaSystemException, SaAuthenticationException, SaDDCException
Description copied from interface:SaClassicConnectorUpdates a document in the backend system with the given metadata, acls and content. Only the attached metadata and elements are changed.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
UpdateDocumentInfoshould 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(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 usingSaClassicConnector.searchHQL(SaQueryInfo),SaDocumentInfo.isCheckedout()andSaDocumentInfo.isLocked().- Specified by:
updateDocumentin interfaceSaClassicConnector- Parameters:
updateInfo-UpdateDocumentInfoobject containing the data to change- Returns:
SaSaveInfoinformation about the saved document- Throws:
SaSystemException- if a system error occuredSaAuthenticationException- if the user is not logged in or has insufficient rightsSaDDCException- if a database definition was invalid or not found
-
checkoutDocument
public void checkoutDocument(java.lang.String hDoc) throws SaSystemException, SaAuthenticationException, SaGetNodeExceptionDescription copied from interface:SaClassicConnectorChecks out a document for the given document id (hdoc).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
SaClassicConnector.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 viaSaClassicConnector.discardCheckout(String)or persisted viaSaClassicConnector.updateDocument(UpdateDocumentInfo).- Specified by:
checkoutDocumentin interfaceSaClassicConnector- Parameters:
hDoc- id (HDOC) of document to checkout- Throws:
SaSystemException- 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 content
-
discardCheckout
public void discardCheckout(java.lang.String hDoc) throws SaSystemException, SaAuthenticationException, SaGetNodeExceptionDescription copied from interface:SaClassicConnectorDiscards a checkout of a document which was performed via the methodSaClassicConnector.checkoutDocument(String). After discarding the checkout, other users a able to modify the document again.- Specified by:
discardCheckoutin interfaceSaClassicConnector- Parameters:
hDoc- id (HDOC) of document to discard a checkout for- Throws:
SaSystemException- 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 content
-
releaseDocument
public void releaseDocument(java.lang.String ddcName, java.lang.String hDoc, java.lang.String versionComment) throws SaSystemException, SaAuthenticationException, SaGetNodeException, SaSetNodeException, SaDDCExceptionDescription copied from interface:SaClassicConnectorRelease the given document.- Specified by:
releaseDocumentin interfaceSaClassicConnector- Parameters:
ddcName- the ddc namehDoc- Document HDOCversionComment- the version comment- Throws:
SaSystemException- SaRMICommandExceptionSaAuthenticationException- when the user is not logged in or has insufficient rightsSaGetNodeException- SaGetNodeExceptionSaSetNodeException- the sa set node exceptionSaDDCException- the sa ddc exception
-
isReleaseActive
public boolean isReleaseActive() throws SaAuthenticationException, SaSystemExceptionDescription copied from interface:SaClassicConnectorChecks if is release feature in the program.ini in section [Release] is active.- Specified by:
isReleaseActivein interfaceSaClassicConnector- Returns:
- true, if is release active
- Throws:
SaAuthenticationException- when the user is not logged in or has insufficient rightsSaSystemException- the sa system exception
-
getReleasedHdoc
public java.lang.String getReleasedHdoc(java.lang.String oldHdoc) throws SaAuthenticationException, SaSystemExceptionDescription copied from interface:SaClassicConnectorGets the released hdoc for given hdoc if release feature is on and release tag is set, otherwise returns the given hDoc.- Specified by:
getReleasedHdocin interfaceSaClassicConnector- Parameters:
oldHdoc- the hdoc to lookup released hdoc- Returns:
- the released hdoc
- Throws:
SaAuthenticationException- if authentication failsSaSystemException- the sa system exception
-
getReleaseAclName
public java.lang.String getReleaseAclName() throws SaSystemException, SaAuthenticationExceptionGets the release ACL name, configured in the program.ini in section [Release].- Returns:
- the release ACL name which can see released documents.
- Throws:
SaSystemException- the sa system exceptionSaAuthenticationException- the sa authentication exception
-
restoreVersion
public SaSaveInfo restoreVersion(java.lang.String versionID) throws SaSystemException, SaAuthenticationException, SaDDCException
Description copied from interface:SaClassicConnectorRestores the version with the given HDOC.- Specified by:
restoreVersionin interfaceSaClassicConnector- Parameters:
versionID- Version HDOC- Returns:
- SaSaveInfo object describing the new document
- Throws:
SaSystemException- SaSystemExceptionSaAuthenticationException- when the user is not logged in or has insufficient rightsSaDDCException- SaDDCException
-
deleteDocument
public void deleteDocument(java.lang.String documentHDOC, int deleteType) throws SaSystemException, SaAuthenticationException, SaDDCExceptionDescription copied from interface:SaClassicConnectorDeletes a document from the backend system with the given delete type strategy.- Specified by:
deleteDocumentin interfaceSaClassicConnector- Parameters:
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 databaseSaConstants.JNI_DELETECONTENT_MODE_DBCOMPLETE(1): delete the document from the databaseSaConstants.JNI_DELETECONTENT_MODE_PURGEDOCUMENT(2): delete the document from the database and from the medium. Note: Some storage-systems do not support deletion.- Throws:
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 occurs
-
getVersionIDs
public java.util.List<java.lang.String> getVersionIDs(java.lang.String ddcName, java.lang.String sysrowID) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorReads the version IDs of the given document. The versions (XHDOCs) are sorted descending (the most current version is the first element in the list).- Specified by:
getVersionIDsin interfaceSaClassicConnector- Parameters:
ddcName- The name of the database definitionsysrowID- The ID of the document- Returns:
- Set of version IDs
- Throws:
SaSystemException- if a backend system error occursSaAuthenticationException- when the user is not logged in or has insufficient rights
-
readVersionDocument
public java.io.InputStream readVersionDocument(java.lang.String docHdoc, int elementNumber) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorLoads a document version from the backend system.- Specified by:
readVersionDocumentin interfaceSaClassicConnector- Parameters:
docHdoc- Version ID (XHDOC is the revision number of the document)elementNumber- Element number- Returns:
- Input stream with the document content
- Throws:
SaSystemException- if a backend system error occurs during the document creationSaAuthenticationException- when the user of this session is not logged in (anymore) or has insufficient rights
-
readVersionMetadata
public SaVersionData readVersionMetadata(java.lang.String versionID) throws SaSystemException, SaAuthenticationException, SaDDCException
Description copied from interface:SaClassicConnectorReads the version metadata of the document with the given ID.- Specified by:
readVersionMetadatain interfaceSaClassicConnector- Parameters:
versionID- Version ID (XHDOC is the revision number of the document)- Returns:
- Metadata of the document
- Throws:
SaSystemException- if a backend system error occurs during the read operationSaAuthenticationException- SaAuthenticationExceptionSaDDCException- SaDDCException
-
readVersionMetadata
public SaVersionData readVersionMetadata(java.lang.String versionID, boolean resolveLinks) throws SaSystemException, SaAuthenticationException, SaDDCException
Description copied from interface:SaClassicConnectorReads the version metadata of the document with the given ID.- Specified by:
readVersionMetadatain interfaceSaClassicConnector- Parameters:
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.- Returns:
- Metadata of the document
- Throws:
SaSystemException- if a backend system error occurs during the read operationSaAuthenticationException- SaAuthenticationExceptionSaDDCException- SaDDCException
-
readVersionDocumentFilename
public java.lang.String readVersionDocumentFilename(java.lang.String docHdoc, int elementNumber) throws SaSystemException, SaAuthenticationException, SaDDCExceptionDescription copied from interface:SaClassicConnectorReads the filenames of the application data of the document with the given ID.- Specified by:
readVersionDocumentFilenamein interfaceSaClassicConnector- Parameters:
docHdoc- The ID of the document (XHDOC)elementNumber- position in the document structure; 0 if the document is unstructured.- Returns:
- Filenames of the application data
- Throws:
SaSystemException- SaSystemExceptionSaAuthenticationException- SaAuthenticationExceptionSaDDCException- SaDDCException
-
search
@Deprecated public java.util.List<SaPropertyValue[]> search(java.lang.String hqlQuery) throws SaSystemException, SaAuthenticationException, SaDBException
Deprecated.Description copied from interface:SaClassicConnectorPerforms a search with the given hql query (hibernate query language).- Specified by:
searchin interfaceSaClassicConnector- Parameters:
hqlQuery- the Hibernate query - hql.- Returns:
- a result list of values which are returned by the Hibernate. Each returned value
represented as
SaPropertyValueobject. - Throws:
SaSystemException- SaSystemExceptionSaAuthenticationException- when the user is not logged in or has insufficient rightsSaDBException- exception thrown during query execution
-
searchHQL
public java.util.List<SaDocumentInfo> searchHQL(SaQueryInfo hqlQuery) throws SaSystemException, SaAuthenticationException, SaDBException
Description copied from interface:SaClassicConnectorPerforms a search with the given hql query (hibernate query language).- Specified by:
searchHQLin interfaceSaClassicConnector- Parameters:
hqlQuery- the Hibernate query info.- Returns:
- a result list of document information objects
- Throws:
SaSystemException- SaSystemExceptionSaAuthenticationException- when the user is not logged in or has insufficient rightsSaDBException- exception thrown during query execution
-
removeEvent
@Deprecated public boolean removeEvent(SaEvent event) throws SaSystemException
Deprecated.Description copied from interface:SaClassicConnectorDeletes the row from XEvents for the given event.- Specified by:
removeEventin interfaceSaClassicConnector- Parameters:
event- Event object- Returns:
- boolean true deleted
- Throws:
SaSystemException- if a backend system error occurs
-
addListener
@Deprecated public void addListener(SaEventListener listener) throws SaSystemException, SaAuthenticationException
Deprecated.Description copied from interface:SaClassicConnectorAdds a new listener to the handler.- Specified by:
addListenerin interfaceSaClassicConnector- Parameters:
listener- Event listener- Throws:
SaSystemException- SaSystemExceptionSaAuthenticationException- SaAuthenticationException
-
removeListener
@Deprecated public void removeListener(SaEventListener listener) throws SaSystemException
Deprecated.Description copied from interface:SaClassicConnectorRemoves a listener from the handler.- Specified by:
removeListenerin interfaceSaClassicConnector- Parameters:
listener- Event listener- Throws:
SaSystemException- SaSystemException
-
addListener
@Deprecated public void addListener(SaStatusEventListener listener) throws SaAuthenticationException, SaSystemException
Deprecated.Description copied from interface:SaClassicConnectorAdds a new listener to the handler.- Specified by:
addListenerin interfaceSaClassicConnector- Parameters:
listener- Event listener- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
removeListener
@Deprecated public void removeListener(SaStatusEventListener listener) throws SaSystemException
Deprecated.Description copied from interface:SaClassicConnectorRemoves a listener from the handler.- Specified by:
removeListenerin interfaceSaClassicConnector- Parameters:
listener- Event listener- Throws:
SaSystemException- SaSystemException
-
readDocumentFilename
public java.lang.String readDocumentFilename(java.lang.String docHdoc, boolean currentRevision, int elementNumber) throws SaSystemException, SaAuthenticationException, SaDDCExceptionDescription copied from interface:SaClassicConnectorReads the filenames of the application data of the document with the given ID.- Specified by:
readDocumentFilenamein interfaceSaClassicConnector- Parameters:
docHdoc- 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.- Returns:
- Filenames of the application data
- Throws:
SaSystemException- SaSystemExceptionSaAuthenticationException- SaAuthenticationExceptionSaDDCException- SaDDCException
-
getACLNames
public java.lang.String getACLNames(java.lang.String documentHDOC) throws SaSystemException, SaAuthenticationException, SaDDCExceptionDescription copied from interface:SaClassicConnectorThis method returns the names of the Access Control Lists that are assigned to this document. UseSaClassicConnector.getACLRights(String[])to evaluate the rights of the current user on the given ACLs.- Specified by:
getACLNamesin interfaceSaClassicConnector- Parameters:
documentHDOC- The ID of the document revision (XHDOC)- Returns:
- a ';'-separated list of names of the acls set on the given document
- Throws:
SaSystemException- on general system failuresSaAuthenticationException- when the classic connector is not authenticated or the current user has not the required rights for the operationSaDDCException- on functional failures concerning the given document
-
getAllACLs
@Deprecated public java.util.List<java.lang.String> getAllACLs() throws SaSystemException, SaAuthenticationExceptionDeprecated.Description copied from interface:SaClassicConnectorReads all existing ACL names.- Specified by:
getAllACLsin interfaceSaClassicConnector- Returns:
- List of ACL names
- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- SaAuthenticationException
-
getInvolvedUsers
public java.util.List<java.lang.String> getInvolvedUsers(java.lang.String documentHDOC) throws SaSystemException, SaAuthenticationException, SaDDCExceptionDescription copied from interface:SaClassicConnectorLists the names of all users that are contained in all Access Control Lists set on the given document. Groups contained in the acls are evaluated to the users contained in the group.- Specified by:
getInvolvedUsersin interfaceSaClassicConnector- Parameters:
documentHDOC- The ID of the document (XHDOC)- Returns:
- the names of all users that are contained in all Access Control Lists set on the given document
- Throws:
SaSystemException- on general system failuresSaAuthenticationException- when the classic connector is not authenticated or the current user has not the required rights for the operationSaDDCException
-
setACLName
public SaSaveInfo setACLName(java.lang.String ddcname, java.lang.String documentHDOC, java.lang.String acl, java.lang.String versionComment) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetACLException
Description copied from interface:SaClassicConnectorThis method specifies the Access Control Lists that secure the document given by its id. Note that this will create a new revision of the document.- Specified by:
setACLNamein interfaceSaClassicConnector- Parameters:
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.- Returns:
- the save information of the newly created revision
- Throws:
SaSystemException- on general system failuresSaAuthenticationException- when the classic connector is not authenticated or the current user has not the required rights for the operationSaDDCException- when the definition name given was invalidSaSetACLException- on functional failures concerning the given document or acls
-
getDocumentAccessData
public SaDocAccessData getDocumentAccessData(java.lang.String documentHDOC) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorThis method reads the access rights the current user has on a given document.- Specified by:
getDocumentAccessDatain interfaceSaClassicConnector- Parameters:
documentHDOC- The ID of the document (XHDOC)- Returns:
- the access rights the current user has on a given document
- Throws:
SaSystemException- on general system failuresSaAuthenticationException- when the classic connector is not authenticated or the current user has not the required rights for the operation
-
getLockInfo
public SaLockInfo getLockInfo(java.lang.String sysRowId) throws SaSystemException, SaAuthenticationException, SaLockException
Description copied from interface:SaClassicConnectorThis method returns the locking information for a given document.- Specified by:
getLockInfoin interfaceSaClassicConnector- Parameters:
sysRowId- Document SysRowId- Returns:
- the locking information for a given document
- Throws:
SaSystemException- on general system failuresSaAuthenticationException- when the classic connector is not authenticated or the current user has not the required rights for the operationSaLockException- Locking error
-
isActive
public boolean isActive()
Checks, if the connector is logged on.- Returns:
- True, if active
-
getCurrentUserName
public java.lang.String getCurrentUserName()
Description copied from interface:SaClassicConnectorThis method returns the name of teh user currently logged in.- Specified by:
getCurrentUserNamein interfaceSaClassicConnector- Returns:
- the name of the user currently logged in
-
getWorkflowConnector
public SaWFConnector getWorkflowConnector() throws SaAuthenticationException, SaSystemException
Description copied from interface:SaClassicConnectorReturns a workflow connector based on this classic connector.- Specified by:
getWorkflowConnectorin interfaceSaClassicConnector- Returns:
- Workflow connector
- Throws:
SaAuthenticationException- Authentification errorSaSystemException- Remote exception
-
getTaskList
public java.util.List<TaskInfo> getTaskList(int[] ids, java.lang.String filter, java.util.Map<java.lang.String,java.lang.Object> parameter) throws SaAuthenticationException, SaSystemException
Reads the tasks for this user.- Parameters:
ids- Box ID'sfilter- HQL filterparameter- Filter parameter- Returns:
- List of TaskInfo objects
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
getTaskAuditList
public java.util.List<TaskAuditInfo> getTaskAuditList(int[] ids, java.lang.String filter, java.util.Map<java.lang.String,java.lang.Object> parameter) throws SaAuthenticationException, SaSystemException
Reads the task audits for this user.- Parameters:
ids- Box ID'sfilter- HQL filterparameter- Filter parameter- Returns:
- List of TaskInfo objects
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
getTask
public TaskInfo getTask(java.lang.String taskID) throws SaAuthenticationException, SaSystemException
Reads the task info for the given ID.- Parameters:
taskID- Task ID- Returns:
- Task info
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
getParentTask
public TaskInfo getParentTask(java.lang.String taskID) throws SaAuthenticationException, SaSystemException
Reads the parent task info for the given ID.- Parameters:
taskID- Task ID- Returns:
- Task info
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
getCommandInfos
public java.util.Collection<CommandInfo> getCommandInfos(java.lang.String docUID) throws SaAuthenticationException, SaSystemException
Reads all possible transitions for this task.- Parameters:
docUID- Document UID of task- Returns:
- Command list
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
getCommandInfos
public java.util.Collection<CommandInfo> getCommandInfos(java.lang.String docUID, boolean transitionsOnly) throws SaAuthenticationException, SaSystemException
Reads all possible transitions and optional other possible commands for this task.- Parameters:
docUID- Document UID of tasktransitionsOnly- if true, only transition commands will be returned- Returns:
- Command list
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
getBoxDefinitions
public java.util.List<BoxDefinition> getBoxDefinitions() throws SaAuthenticationException, SaSystemException
Reads the box definitions.- Returns:
- Box definitions
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
getBoxCount
public java.lang.Long getBoxCount(int boxId) throws SaAuthenticationException, SaSystemExceptionReads the count (number of workflow item) of the inbox identified by the given id.- Parameters:
boxId- the workflow box id- Returns:
- the count of the inbox as Long.
- Throws:
SaAuthenticationException- if an error occurs.SaSystemException- if an error occurs.
-
executeCommand
public java.lang.String executeCommand(ContextInfo contextInfo) throws SaAuthenticationException, SaSystemException, SaWorkflowException
Performs the given command. The parameters must fit to the given parameter. Unneeded parameters can be set to null.- Parameters:
contextInfo- Context info- Returns:
- New TaskID
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemExceptionSaWorkflowException- Workflow exception
-
getCommentInfos
public java.util.List<CommentInfo> getCommentInfos(java.lang.String taskId) throws SaAuthenticationException, SaSystemException, SaWorkflowException
Reads the comments for the given task.- Parameters:
taskId- Task ID- Returns:
- List of comments
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemExceptionSaWorkflowException- Workflow exception
-
getHistoryInfos
public java.util.List<HistoryInfo> getHistoryInfos(java.lang.String taskId) throws SaAuthenticationException, SaSystemException, SaWorkflowException
Reads the history for the given task.- Parameters:
taskId- Task ID- Returns:
- History list
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemExceptionSaWorkflowException- Workflow exception
-
getCompleteHistoryInfos
public java.util.List<java.util.List<HistoryInfo>> getCompleteHistoryInfos(java.lang.String docId) throws SaAuthenticationException, SaSystemException, SaWorkflowException
Reads the history and comments for the given document.- Parameters:
docId- Document ID- Returns:
- CompleteHistoryInfo
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemExceptionSaWorkflowException- Workflow exception
-
getWorkflowDefinitions
public java.util.List<java.lang.String> getWorkflowDefinitions() throws SaAuthenticationException, SaSystemException, SaWorkflowExceptionReads all available workflow definitions.- Returns:
- Workflowdefinition list
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemExceptionSaWorkflowException- Workflow exception
-
getWorkflowDefinitions
public java.util.List<ProcessDefinitionDescriptor> getWorkflowDefinitions(java.lang.String ddcName) throws SaAuthenticationException, SaSystemException, SaWorkflowException
Returns the workflow definitions that are allowed to be used for documents contained in the specified DDC. If no restrictions are configured, all workflow definitions will be returned.- Parameters:
ddcName- name of the DDC- Returns:
- Workflowdefinition list
- Throws:
SaAuthenticationException- authentication error when loading definitionsSaSystemException- system error when loading definitionsSaWorkflowException- workflow error when loading definitions
-
getWorkflowDdcName
public java.lang.String getWorkflowDdcName() throws SaSystemExceptionGets the workflow ddc name.- Returns:
- the name of the workflow ddc
- Throws:
SaSystemException- SaSystemException
-
addComment
public void addComment(java.lang.String comment, java.lang.String taskUID, int level) throws SaAuthenticationException, SaSystemException, SaWorkflowExceptionAdds a comment to the task.- Parameters:
comment- CommenttaskUID- Task UIDlevel- Level- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemExceptionSaWorkflowException- Workflow exception
-
addHistory
public void addHistory(java.lang.String description, java.lang.String taskUID) throws SaAuthenticationException, SaSystemException, SaWorkflowExceptionAdds a history entry to the task.- Parameters:
description- CommenttaskUID- Task UID- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemExceptionSaWorkflowException- Workflow exception
-
getOutOfOffice
public boolean getOutOfOffice() throws SaAuthenticationException, SaSystemExceptionGet the substitute for the logged on user.- Returns:
- Substitute name
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
getSubstitute
public java.lang.String getSubstitute() throws SaAuthenticationException, SaSystemExceptionGet the substitute for the logged on user.- Returns:
- Substitute name
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
setOutOfOffice
public void setOutOfOffice(boolean isOutOfOffice) throws SaAuthenticationException, SaSystemExceptionset the out of office status for the logged on user.- Parameters:
isOutOfOffice- is OutOfOffice- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
setSubstitute
public void setSubstitute(java.lang.String name) throws SaAuthenticationException, SaSystemExceptionSet the substitute for the logged on user.- Parameters:
name- Substitute name- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
getMembers
public WorkflowMember getMembers() throws SaAuthenticationException, SaSystemException
Reads the workflow members in a full structured tree.- Returns:
- Member
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
getMember
public WorkflowMember getMember(WorkflowMember member, int depth, java.lang.String filter) throws SaAuthenticationException, SaSystemException
Returns the workflow members by the given parameters.
This method is considered as a search-method. Thus, the result is a flat list of search results. The real SAPERION group, org unit, roles and user structure is not returned. The depth parameter of the given options has a special meaning: depth = 1 will return the same result as depth = 0. A negative depth will result in a full-depth search. A positive depth parameter will cause the search to be performed on the structure tree until the given tree-depth.
The resulting members always include the user specific workflow favorites. An empty User marks the border between favorites and real search results.- Parameters:
member- Starting memberdepth- Depth to readfilter- filter string- Returns:
- Member Filled starting member
- Throws:
SaAuthenticationException- SaAuthenticationExceptionSaSystemException- SaSystemException
-
isAlive
public boolean isAlive() throws SaSystemExceptionDescription copied from interface:SaClassicConnectorTests the lifetime of this connector. If the connector is alive the expiration timeout will be reset (the connection will be kept alive until the next timeout).- Specified by:
isAlivein interfaceSaClassicConnector- Returns:
- true if alive
- Throws:
SaSystemException- System exception
-
getUsers
public java.util.List<java.lang.String> getUsers(java.lang.String filter) throws SaSystemException, SaAuthenticationExceptionReads a list of filtered users.- Parameters:
filter- Filter- Returns:
- List of users
- Throws:
SaSystemException- SaSystemExceptionSaAuthenticationException- SaAuthenticationException
-
getAnnotations
@Deprecated public java.lang.String getAnnotations(java.lang.String hDoc, int indexOfContentElement) throws SaAuthenticationException, SaSystemExceptionDeprecated.Description copied from interface:SaClassicConnectorReads the annotations from the given document.- Specified by:
getAnnotationsin interfaceSaClassicConnector- Parameters:
hDoc- Document HDOCindexOfContentElement- the index of the chosen context element- Returns:
- Annotation string
- Throws:
SaAuthenticationException- if the user is not logged in or has insufficient rightsSaSystemException- if a backend system error occurs
-
getAnnotations
public java.lang.String getAnnotations(java.lang.String hDoc, int indexOfContentElement, boolean currentRevision) throws SaAuthenticationException, SaSystemExceptionDescription copied from interface:SaClassicConnectorReads the annotations of the document with the specified ID.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:
- [ARROW]
- [BLACKMARKER]
- [CUSTOM]
- [TEXT]
- [HIGHLIGHT]
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 = 10
A 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.- Specified by:
getAnnotationsin interfaceSaClassicConnector- Parameters:
hDoc- Document HDOCindexOfContentElement- the index of the chosen context elementcurrentRevision- true to get current revision- Returns:
- Annotation string as describe above
- Throws:
SaAuthenticationException- if the user is not logged in or has insufficient rightsSaSystemException- if a backend system error occurs
-
setAnnotations
public void setAnnotations(java.lang.String hDoc, int indexOfContentElement, java.lang.String annotations) throws SaAuthenticationException, SaSystemExceptionDescription copied from interface:SaClassicConnectorSets the given annotations to the document. This method creates a new revision.For the annotation string definition to set, please take a look into the
SaClassicConnector.getAnnotations(String, int, boolean)documentation and the online documentation for more information about the custom-section.- Specified by:
setAnnotationsin interfaceSaClassicConnector- Parameters:
hDoc- Document HDOCindexOfContentElement- the index of the chosen context elementannotations- Annotation string, definition described hereSaClassicConnector.getAnnotations(String, int, boolean)- Throws:
SaAuthenticationException- Authentication errorSaSystemException- Remote exception
-
getSystemSetting
public SaSystemSetting getSystemSetting(java.lang.String accessKey) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorRetrieves a system setting object.- Specified by:
getSystemSettingin interfaceSaClassicConnector- Parameters:
accessKey- key to get associated system setting- Returns:
SaSystemSetting- Throws:
SaSystemException- System exceptionSaAuthenticationException- when the user is not logged in or has insufficient rights
-
getSystemInfo
public SaSystemInfo getSystemInfo() throws SaSystemException
Description copied from interface:SaClassicConnectorThis method returns general information about the connected system.- Specified by:
getSystemInfoin interfaceSaClassicConnector- Returns:
- general information about the connected system
- Throws:
SaSystemException- on general system failures
-
getFeatures
public SaFeature getFeatures() throws SaSystemException
Description copied from interface:SaClassicConnectorThis method returns the features enabled in the Saperion system.- Specified by:
getFeaturesin interfaceSaClassicConnector- Returns:
- the features enabled in the Saperion system
- Throws:
SaSystemException- on general system failures
-
getUserSetting
public SaUserSetting getUserSetting(java.lang.String accessKey) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorRetrieves a user-specific setting object. User-specific settings are stored in the system's ini-files.- Specified by:
getUserSettingin interfaceSaClassicConnector- Parameters:
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 '|'.
Example: How to read a section from Saperion's ini-files:
PROPERTIES|TheNameOfTheSection
If the section's name contains a tenant-specific hex-id, you can use the placeholders$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.- Returns:
SaUserSetting- Throws:
SaSystemException- System exceptionSaAuthenticationException- when the user is not logged in or has insufficient rights
-
setUserSetting
public void setUserSetting(SaUserSetting setting) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorPersists a user-specific setting object. User-specific settings are stored in the system's ini-files.- Specified by:
setUserSettingin interfaceSaClassicConnector- Parameters:
setting- theSaUserSettingobject to be stored- Throws:
SaSystemException- System exceptionSaAuthenticationException- when the user is not logged in or has insufficient rights
-
getSetting
public Setting getSetting(java.lang.String name, java.lang.String section, boolean isLong) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorThis method retrieves aSettingidentified by it's key and section from the database.- Specified by:
getSettingin interfaceSaClassicConnector- Parameters:
name- the setting's namesection- the setting's sectionisLong- whether this is a setting with a long (>2KB) value or not- Returns:
- the setting or null if no setting with the specified key and section was found
- Throws:
SaSystemException- system error when retrieving the settingSaAuthenticationException- authentication error when retrieving the setting
-
searchSettings
public SettingSearchResult searchSettings(SettingSearchInfo searchInfo) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorThis method searches settings in the database.- Specified by:
searchSettingsin interfaceSaClassicConnector- Parameters:
searchInfo-SettingSearchInfocontaining information about what to search- Returns:
- a
SettingSearchResult - Throws:
SaSystemException- system error when searchingSaAuthenticationException- authentication error
-
setSetting
public void setSetting(Setting setting) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorThis method stores aSettingin the database.- Specified by:
setSettingin interfaceSaClassicConnector- Parameters:
setting- the setting to store- Throws:
SaSystemException- system error when storing the settingSaAuthenticationException- authentication error when storing the setting
-
deleteSetting
public boolean deleteSetting(java.lang.String name, java.lang.String section, boolean isLong) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorThis method deletes a setting in the database.- Specified by:
deleteSettingin interfaceSaClassicConnector- Parameters:
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 not- Returns:
- true if the setting was deleted, false if there was no such setting
- Throws:
SaSystemException- system exception when deleting the settingSaAuthenticationException- when the user is not logged in or has insufficient rights when deleting the setting
-
loadLocalize
public java.util.Map<java.lang.String,java.lang.String> loadLocalize(java.lang.String language) throws SaWorkflowExceptionLoad localize.- Parameters:
language- Langage- Returns:
- Localisation map
- Throws:
SaWorkflowException- Workflow exception
-
setLocale
public void setLocale(java.util.Locale locale) throws SaAuthenticationException, SaSystemExceptionDescription copied from interface:SaClassicConnectorThis methods sets the localization information for the current user.- Specified by:
setLocalein interfaceSaClassicConnector- Parameters:
locale- Localization information- Throws:
SaAuthenticationException- when the user is not logged in or has insufficient rightsSaSystemException- SaSystemException
-
addToFolder
public void addToFolder(java.lang.String folderTableDDC, java.lang.String documentId, java.lang.String documentDDC, java.lang.String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetNodeExceptionDescription copied from interface:SaClassicConnectorAdds the document with given documentId to a given folder with given folderId.A document can be filed in multiple folders, but each filing operation must be called separately. - Specified by:
addToFolderin interfaceSaClassicConnector- Parameters:
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 ID- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDDCException- Database exceptionSaSetNodeException- DDC not fileable
-
copyFolder
public java.lang.String copyFolder(java.lang.String folderTableDDC, java.lang.String folderId, java.lang.String destinationId, java.lang.String beforeChild, boolean withDocuments) throws SaSystemException, SaAuthenticationException, SaDDCExceptionDescription copied from interface:SaClassicConnectorCopies the given folder and all it's children to the destination. Note that only real children are copied, so links are not followed. Document filings can optionally be copied, too. However this is an expensive operation, as each document has to be updated.- Specified by:
copyFolderin interfaceSaClassicConnector- Parameters:
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 copied- Returns:
- new folder id
- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDDCException- Database exception
-
createFolder
@Deprecated public java.lang.String createFolder(java.lang.String folderTableDDC, java.lang.String parentId, java.lang.String beforeChild, java.lang.String folderName, SaFolderConstants.FOLDER_TYPE folderType, java.util.Properties namevaluePairs) throws SaSystemException, SaAuthenticationException, SaDDCException, SaFolderNameExceptionDeprecated.Description copied from interface:SaClassicConnectorCreates a new folder below a given folder. The parent folder can be the root node (empty id).- Specified by:
createFolderin interfaceSaClassicConnector- Parameters:
folderTableDDC- 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 properties- Returns:
- Folder ID (SysRowId)
- Throws:
SaSystemException- Remote exceptionSaFolderNameException- when the folder name contained an invalid characterSaAuthenticationException- Authentication errorSaDDCException- Database exception
-
createFolder
public java.lang.String createFolder(SaFolderSaveInfo info, java.util.Properties namevaluePairs) throws SaSystemException, SaAuthenticationException, SaDDCException, SaFolderNameException
Description copied from interface:SaClassicConnectorCreates a new folder below a given folder. The parent folder can be the root node (empty id).- Specified by:
createFolderin interfaceSaClassicConnector- Parameters:
info-SaFolderSaveInfoof folder to createnamevaluePairs- Folder properties (Attention: These properties will replace the property values in theSaFolderSaveInfoinfo above!)- Returns:
- Folder ID (SysRowId)
- Throws:
SaSystemException- Remote exceptionSaFolderNameException- when the folder name contained an invalid characterSaAuthenticationException- Authentication errorSaDDCException- Database exception
-
deleteFolder
public void deleteFolder(java.lang.String folderTableDDC, java.lang.String folderId) throws SaSystemException, SaAuthenticationException, SaDDCExceptionDescription copied from interface:SaClassicConnectorDeletes an existing folder. It must not have children or filed documents, i.e. the user must delete/remove all these before deleting the node.- Specified by:
deleteFolderin interfaceSaClassicConnector- Parameters:
folderTableDDC- Folder tablefolderId- Folder ID to delete- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDDCException- Database exception
-
getDocumentFolders
public java.util.List<SaDocumentInfo> getDocumentFolders(java.lang.String folderTableDDC, java.lang.String documentDDC, java.lang.String sysRowId) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetNodeException
Description copied from interface:SaClassicConnectorReturns a list of folder properties which contains all folders the document is contained in. The list is returned only for one folder table, so if the document is filed in multiple folder tables, this must be queried separately.- Specified by:
getDocumentFoldersin interfaceSaClassicConnector- Parameters:
folderTableDDC- Folder tabledocumentDDC- Document DDCsysRowId- Document SysRowId- Returns:
- List of folder properties
- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDDCException- Database exceptionSaSetNodeException- DDC not fileable
-
getDocumentFolderCount
public long getDocumentFolderCount(java.lang.String folderTableDDC, java.lang.String documentDDC, java.lang.String sysRowId) throws SaAuthenticationException, SaSetNodeException, SaSystemException, SaDDCExceptionDescription copied from interface:SaClassicConnectorReturns the total count over all folders from all users in which the specified document is contained in.- Specified by:
getDocumentFolderCountin interfaceSaClassicConnector- Parameters:
folderTableDDC- Folder tabledocumentDDC- Document DDCsysRowId- Document SysRowId- Returns:
- folder count
- Throws:
SaAuthenticationException- Authentication errorSaSetNodeException- DDC not fileableSaSystemException- Remote exceptionSaDDCException- Database exception
-
getFolderChildren
public java.util.List<SaDocumentInfo> getFolderChildren(java.lang.String folderTableDDC, java.lang.String folderId, int depth, SaQueryInfo filter, int allowedMaxNrOfChildFolders) throws SaSystemException, SaAuthenticationException, SaDBException, SaFolderException
Description copied from interface:SaClassicConnectorReturns a list with the children of the given node. The function accepts a depth parameter. In case of a depth greater than one, the returned nodes are ordered in a depth-first order, and the caller must detect parent-child relationship with the appropriate fields (SysParentID, SysRowID). Note that searching with a depth greater than one is not a fast operation. It is recommended to use depth = 1 and only load further levels on demand if required. The allowedMaxNrOfChildFolders parameter is used to restrict the absolute number of hits loaded from the database. It is intended to be used to protect the system from overload problems caused by very large query-results. The depth-filtering is done after the query has returned from the database. So keep in mind that children found on deeper levels than specified in the depth-parameter are relevant for the total number of children found.
The default value for allowedMaxNrOfChildFolders can be configured with the setting rmi.getfolderchildren.maxresults in saperion.properties of JavaCoreServer. When this setting is set to a value > 0, it is not possible to search for an unlimited number of child nodes by passing a value of -1 for this parameter.- Specified by:
getFolderChildrenin interfaceSaClassicConnector- Parameters:
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 limit- Returns:
- List of folder information
- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDBException- Database exceptionSaFolderException- Folder exception
-
getFolderInfo
@Deprecated public SaDocumentInfo getFolderInfo(java.lang.String folderTableDDC, java.lang.String folderId) throws SaSystemException, SaAuthenticationException, SaDBException, SaFolderException
Deprecated.Description copied from interface:SaClassicConnectorReturns the folder information object for the given folder.- Specified by:
getFolderInfoin interfaceSaClassicConnector- Parameters:
folderTableDDC- Folder tablefolderId- Folder ID- Returns:
- Folder information
- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDBException- Database exceptionSaFolderException- Folder exception
-
getFolderInfo
public SaDocumentInfo getFolderInfo(java.lang.String folderTableDDC, java.lang.String folderId, boolean forceLoadVariables) throws SaSystemException, SaAuthenticationException, SaDBException, SaFolderException
Description copied from interface:SaClassicConnectorReturns the folder information object for the given folder.- Specified by:
getFolderInfoin interfaceSaClassicConnector- Parameters:
folderTableDDC- Folder tablefolderId- Folder IDforceLoadVariables- if true, variables will be loaded from medium if the DDC does not contain the SYSPROPERTIES field.- Returns:
- Folder information
- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDBException- Database exceptionSaFolderException- Folder exception
-
getFolderFromPath
public java.util.List<SaDocumentInfo> getFolderFromPath(java.lang.String folderTableDDC, java.lang.String startNodeId, java.lang.String folderPath) throws SaSystemException, SaAuthenticationException, SaDBException
Description copied from interface:SaClassicConnectorReturns the folders which match to the given path. Path names are built using the SysFolderName field of each folder. Either the slash ('/') or the backslash ('\') can be used as path separator. A path can be searched relative to a given folder, to allow for searching within Personal folders and the like. The folderPath can contain wildcards (%). Searching with wildcards can be slow depending on the number of entries in the folder-table and the database in use. UseSaClassicConnector.getFolderByPath(String, String, String)to retrieve a single folder.- Specified by:
getFolderFromPathin interfaceSaClassicConnector- Parameters:
folderTableDDC- Folder tablestartNodeId- ID of folder to start with or null/empty if no relative search is requiredfolderPath- Search path- Returns:
- Folder list
- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDBException- Database exception
-
getFolderByPath
public SaDocumentInfo getFolderByPath(java.lang.String folderTableDDC, java.lang.String startFolderId, java.lang.String folderPath) throws SaSystemException, SaAuthenticationException, SaDBException
Description copied from interface:SaClassicConnectorReturns the folder which matches to the given path. Path names are built using the SysFolderName field of each folder. Either the slash ('/') or the backslash ('\') can be used as path separator. A path can be searched relative to a given folder, to allow for searching within Personal folders and the like. If no folder with the specified path is found, null is returned.- Specified by:
getFolderByPathin interfaceSaClassicConnector- Parameters:
folderTableDDC- Folder tablestartFolderId- ID of folder to start with or null/empty if no relative search is requiredfolderPath- Search path- Returns:
- Folder list
- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDBException- Database exception
-
getFolderParent
public SaDocumentInfo getFolderParent(java.lang.String folderTableDDC, java.lang.String folderId) throws SaSystemException, SaAuthenticationException, SaDBException
Description copied from interface:SaClassicConnectorReturns the parent of the given folder. Please note that in case of a folder to which another folder links, the real parent is returned, not the parent of the link.- Specified by:
getFolderParentin interfaceSaClassicConnector- Parameters:
folderTableDDC- Folder tablefolderId- Folder ID- Returns:
- Properties of the folder or null, if not found
- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDBException- Database exception
-
getFolderRights
public SaDocAccessData getFolderRights(java.lang.String folderTableDDC, java.lang.String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException
Description copied from interface:SaClassicConnectorReturns the rights mask for the given folder and user. The effective rights are calculated by using ACL inheritance.- Specified by:
getFolderRightsin interfaceSaClassicConnector- Parameters:
folderTableDDC- Folder tablefolderId- Folder ID- Returns:
- Folder access data
- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDDCException- Database exception
-
moveFolder
public void moveFolder(java.lang.String folderTableDDC, java.lang.String folderId, java.lang.String destinationId, java.lang.String beforeChild) throws SaSystemException, SaAuthenticationException, SaDDCExceptionDescription copied from interface:SaClassicConnectorMoves the given folder to a new destination. Document filings are always moved with the folder. This is not a quick operation, as path and security information must be updated.- Specified by:
moveFolderin interfaceSaClassicConnector- Parameters:
folderTableDDC- Folder tablefolderId- Folder IDdestinationId- Destination folder IDbeforeChild- Child ID or empty for append- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDDCException- Database exception
-
moveToFolder
public void moveToFolder(java.lang.String folderTableDDC, java.lang.String documentId, java.lang.String documentDDC, java.lang.String folderId, java.lang.String destinationId) throws SaSystemException, SaAuthenticationException, SaDDCExceptionDescription copied from interface:SaClassicConnectorRemoves the document from the source folder and adds it to the source folder. Both source- and destination folder have to exist.- Specified by:
moveToFolderin interfaceSaClassicConnector- Parameters:
folderTableDDC- Folder tabledocumentId- Document SysRowIddocumentDDC- Document DDC namefolderId- Source folder IDdestinationId- Destination folder ID- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDDCException- Database exception
-
removeFromFolder
public void removeFromFolder(java.lang.String folderTableDDC, java.lang.String documentSysRowId, java.lang.String documentDDC, java.lang.String folderId) throws SaSystemException, SaAuthenticationException, SaDDCExceptionDescription copied from interface:SaClassicConnectorRemoves the document from the given folder.- Specified by:
removeFromFolderin interfaceSaClassicConnector- Parameters:
folderTableDDC- Folder tabledocumentSysRowId- Document SysRowIddocumentDDC- Document DDC namefolderId- Folder ID- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDDCException- Database exception
-
searchFolderDocuments
public java.util.List<SaDocumentInfo> searchFolderDocuments(java.lang.String folderTableDDC, java.lang.String folderId, SaQueryInfo hqlFilter) throws SaSystemException, SaAuthenticationException, SaDDCException
Description copied from interface:SaClassicConnectorHQL search extended with additional folder informations and depth.- Specified by:
searchFolderDocumentsin interfaceSaClassicConnector- Parameters:
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".- Returns:
- List of documents from each involved DDC's
- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDDCException- Database exception
-
setFolderAcl
public void setFolderAcl(java.lang.String folderTableDDC, java.lang.String folderId, java.lang.String aclName) throws SaSystemException, SaAuthenticationException, SaDDCExceptionDescription copied from interface:SaClassicConnectorSets an ACL for the given folder. The folder’s SysACLUserList is recalculated, and if the folder has children, the same is true for all the folder’s children.- Specified by:
setFolderAclin interfaceSaClassicConnector- Parameters:
folderTableDDC- Folder tablefolderId- Folder IDaclName- ACL name- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- Authentication errorSaDDCException- Database exception
-
updateFolder
public void updateFolder(java.lang.String folderTableDDC, java.lang.String folderId, java.util.Properties namevaluePairs) throws SaSystemException, SaAuthenticationException, SaDDCException, SaFolderNameExceptionDescription copied from interface:SaClassicConnectorUpdates an existing folder with the given properties. Be sure to set the node-type property in the folder's properties to enable special handling for certain types like registers.- Specified by:
updateFolderin interfaceSaClassicConnector- Parameters:
folderTableDDC- name of folder table (DDC)folderId- id of folder to updatenamevaluePairs- Folder properties to update- Throws:
SaSystemException- Remote exceptionSaFolderNameException- when the folder name contained an invalid characterSaAuthenticationException- Authentication errorSaDDCException- Database exception- See Also:
SaFolderConstants.FIELD_SYSNODETYPE,SaFolderConstants.FOLDER_TYPE
-
getFolderClass
public SaFolderClass getFolderClass(java.lang.String className) throws SaSystemException, SaAuthenticationException, SaDDCException
Description copied from interface:SaClassicConnectorReads the folder class with the given name.- Specified by:
getFolderClassin interfaceSaClassicConnector- Parameters:
className- Class name in dotted notation- Returns:
- Folder class
- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- authentication errorSaDDCException- Database exception
-
searchFolderClass
public java.util.Set<SaFolderClass> searchFolderClass(SaFolderClassSearchInfo searchInfo) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorSearches for folder classes that match the specified propertied.- Specified by:
searchFolderClassin interfaceSaClassicConnector- Parameters:
searchInfo- bean that contains the properties to search for- Returns:
- set of folder classes that match the properties or an empty set, if no class was found
- Throws:
SaSystemException- Remote exceptionSaAuthenticationException- authentication error
-
getSystemFiles
public java.util.List<java.lang.String> getSystemFiles(SystemFileKind kind, java.lang.String filter) throws SaAuthenticationException, SaSystemException
Description copied from interface:SaClassicConnectorThis method returns the names of all system files of a specific kind.- Specified by:
getSystemFilesin interfaceSaClassicConnector- Parameters:
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.- Returns:
- The system files of a specific kind.
- Throws:
SaAuthenticationException- error on the authentification / insufficient rightsSaSystemException- general error
-
logClientEvent
public void logClientEvent(java.lang.String hdoc, SaConstants.ProtoEvents event, java.lang.String remark) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorAdds an audit log event.- Specified by:
logClientEventin interfaceSaClassicConnector- Parameters:
hdoc- Document HDOCevent- Event typeremark- Remark- Throws:
SaSystemException- general errorSaAuthenticationException- error on the authentification / insufficient rights
-
getAcls
public java.util.List<SaAcl> getAcls() throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorThis method returns all Access Control Lists in the current tenant.- Specified by:
getAclsin interfaceSaClassicConnector- Returns:
- all Access Control Lists in the current tenant
- Throws:
SaSystemException- on general system failuresSaAuthenticationException- when the classic connector is not authenticated or the current user has not the required rights for the operation
-
getACLRights
public SaACLRights getACLRights(java.lang.String[] acls) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorThis method returns the access rights the current user has when in the context of the Access Controll Lists given by name.- Specified by:
getACLRightsin interfaceSaClassicConnector- Parameters:
acls- an array of names referencing the ACLs to evaluate- Returns:
- the rights the current user has in the context of the given ACLs
- Throws:
SaSystemException- on general system failuresSaAuthenticationException- when the classic connector is not authenticated or the current user has not the required rights for the operation
-
changePassword
public void changePassword(java.lang.String user, java.lang.String oldPassword, java.lang.String tenant, java.lang.String newPassword) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorChanges the password of an existing user.- Specified by:
changePasswordin interfaceSaClassicConnector- Parameters:
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 password- Throws:
SaSystemException- when a system error occurredSaAuthenticationException- when the user is not logged in or has insufficient rightsSaClassicConnector.logon(String, String, int, String)was successfully invoked.
-
getAuthorizedUsers
public java.util.List<UsersRights> getAuthorizedUsers(java.lang.String hDoc, java.lang.String rights, MatchKind match) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorThis method returns the users that have specific rights on a document.- Specified by:
getAuthorizedUsersin interfaceSaClassicConnector- Parameters:
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 rights- Returns:
- The users, that have specific rights on the document or null if the document has no acl set. In this case everyone has every right on the document.
- Throws:
SaSystemException- on general system failuresSaAuthenticationException- when the classic connector is not authenticated or the current user has not the required rights for the operation
-
getArchivedSize
public int getArchivedSize(java.lang.String hDoc) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorReturns the total document size in the archive in bytes.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.
- Specified by:
getArchivedSizein interfaceSaClassicConnector- Parameters:
hDoc- The document id whichs size is wanted.- Returns:
- The total document size in archive in bytes.
- Throws:
SaSystemException- if a system error occuredSaAuthenticationException- if the user is not logged in or has insufficient rights
-
storeSystemFile
public void storeSystemFile(SystemFileKind kind, java.lang.String name, java.io.InputStream data) throws SaAuthenticationException, SaSystemException
Description copied from interface:SaClassicConnectorThis method stores a system file of a specific kind.- Specified by:
storeSystemFilein interfaceSaClassicConnector- Parameters:
kind- The kind of systemfile to store.name- The name of the file.data- The content of the file to save.- Throws:
SaAuthenticationException- error on the authentification / insufficient rightsSaSystemException- general error
-
loadSystemFile
public java.io.InputStream loadSystemFile(SystemFileKind kind, java.lang.String name) throws SaAuthenticationException, SaSystemException
Description copied from interface:SaClassicConnectorThis method loads a system file of a specific kind.- Specified by:
loadSystemFilein interfaceSaClassicConnector- Parameters:
kind- The kind of system file to loadname- The name of the file to load.- Returns:
- an InputStream that holds the content of the file.
- Throws:
SaAuthenticationException- error on the authentification / insufficient rightsSaSystemException- general error
-
getFolderUpdateInfo
@Deprecated public java.util.Set<FolderUpdateInfo> getFolderUpdateInfo(java.util.Map<java.lang.String,java.lang.Long> folderIds) throws SaAuthenticationException, SaSystemException
Deprecated.Description copied from interface:SaClassicConnectorGenerates 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.- Specified by:
getFolderUpdateInfoin interfaceSaClassicConnector- Parameters:
folderIds- Map of folderIds (simple, workflow, ..) with the time stamps of the last refresh to build the cut set of.- Returns:
- List of FolderUpdateInfo objects that are changed during the last x minutes.
- Throws:
SaAuthenticationException- when the user is not logged in or has insufficient rightsSaSystemException- when a system error occured
-
checkSapUrl
public SapDocInfo checkSapUrl(java.lang.String url) throws SaSystemException, SaSapUrlException, SaAuthenticationException
Description copied from interface:SaClassicConnectorChecks the given SAP URL on the R/Link server and returns, if successfull, the HDOC and the DDC. If not, null will be returned.- Specified by:
checkSapUrlin interfaceSaClassicConnector- Parameters:
url- the SAP URL to check- Returns:
SaSaveInfoobject with hdoc und ddc name describing the found document- Throws:
SaSystemException- if a system error occuredSaAuthenticationException- if the user is not logged in or has insufficient rightsSaSapUrlException
-
cacheDocument
public SaSaveInfo cacheDocument(java.lang.String xhDoc, DocumentInfo document) throws SaSystemException, SaAuthenticationException, SaDDCException
Description copied from interface:SaClassicConnectorCaches a new document in the backend system with the given metadata and content.The document will not be persisted to a storage or medium.
To persist a document in the backend system please use the methodSaClassicConnector.createDocument(DocumentInfo).
The given xhdoc should already exist on the named DDC. This method should only used by cosolidation services like the IXOS connetor.- Specified by:
cacheDocumentin interfaceSaClassicConnector- Parameters:
xhDoc- The xhdoc of the Document to cachedocument- theDocumentInfoabout the document to cache- Returns:
- the
SaSaveInfoof the cached document - Throws:
SaSystemException- 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 occurs
-
resolveLatestHDoc
public java.lang.String resolveLatestHDoc(java.lang.String oldHdoc) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorResolves and returns the XHDOC of the latest version of the document identified by the given HDOC.- Specified by:
resolveLatestHDocin interfaceSaClassicConnector- Parameters:
oldHdoc- the HDOC to identify the document- Returns:
- The XHDOC of the latest version of the document identified by the given HDOC.
- Throws:
SaSystemException- if a backend system error occursSaAuthenticationException- SaAuthenticationException
-
cacheDocument
public SaSaveInfo cacheDocument(java.lang.String xhDoc, java.lang.String ddcName, java.util.Properties namevaluePairs, java.io.InputStream[] content, java.lang.String versionComment, java.lang.String strAcl) throws SaSystemException, SaAuthenticationException, SaDDCException
Description copied from interface:SaClassicConnectorCaches a new document in the backend system with the given metadata and content.The document will not be persisted to a storage or medium.
To persist a document in the backend system please use the methodSaClassicConnector.createDocument(DocumentInfo).
The given xhdoc should already exist on the named DDC. This method should only used by cosolidation services like the IXOS connetor.- Specified by:
cacheDocumentin interfaceSaClassicConnector- Parameters:
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 ofInputStreaminstances)versionComment- The comment for the versionstrAcl- the names of acls (comma sessparated list)- Returns:
SaSaveInfoobject describing the cached document- Throws:
SaSystemException- 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 orrurs
-
getCurrentUserInfo
public SaUserInfo getCurrentUserInfo() throws SaAuthenticationException, SaSystemException
Description copied from interface:SaClassicConnectorThis method returns detailed info about the current user.- Specified by:
getCurrentUserInfoin interfaceSaClassicConnector- Returns:
- detailed info about the current user.
- Throws:
SaAuthenticationException- when the classic connector is not authenticated or the current user has not the required rights for the operationSaSystemException- on general system failures
-
setCurrentUserPresent
public void setCurrentUserPresent(boolean present) throws SaAuthenticationException, SaSystemExceptionDescription copied from interface:SaClassicConnectorSets whether the current user is present.- Specified by:
setCurrentUserPresentin interfaceSaClassicConnector- Parameters:
present- whether the current user is present- Throws:
SaAuthenticationException- authentication errorSaSystemException- system error
-
updateCurrentUserInformation
public void updateCurrentUserInformation(MutableUserInformation user) throws SaAuthenticationException, SaSystemException
Description copied from interface:SaClassicConnectorChanges information about the current user. Since not every information about a user is possible to change it takes aMutableUserInformationinstance instead of an SaUserInfo instance as parameter.- Specified by:
updateCurrentUserInformationin interfaceSaClassicConnector- Parameters:
user- - the information to change- Throws:
SaAuthenticationException- when the classic connector is not authenticated or the current user has not the required rights for the operationSaSystemException- on general system failures
-
invoke
public <T extends java.io.Serializable> T invoke(LegacyOperation<T> operation) throws SaAuthenticationException, SaSystemException
Description copied from interface:LegacyConnectionInvokes the givenOperationon the server side.- Specified by:
invokein interfaceLegacyConnection- Type Parameters:
T- The return type of the given operation- Parameters:
operation- The operation to invoke. After invocation calling operation.getResult() will yield the same as the return of this call.- Returns:
- The result of the server side call of Operation.invoke()
- Throws:
SaAuthenticationException- When the user is not correctly logged on, this may result from a session time outSaSystemException- When an error occurred in the operation.
-
getRendition
public java.util.List<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, java.util.concurrent.TimeoutException, com.saperion.connector.renditions.exceptions.RenderingException, SaAuthenticationException, SaSystemException
Description copied from interface:SaClassicConnectorReturns the rendition object from a rendered document.- Specified by:
getRenditionin interfaceSaClassicConnector- Parameters:
element- anElementobject that represents an object in the archived document.options- anOptionsobject that defines the options required to generate the rendition- Returns:
- list of
Renditioninstances. - Throws:
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 missingjava.util.concurrent.TimeoutException- 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
-
sendBarcode
public void sendBarcode(java.lang.String indexMask, java.lang.String docUid, java.lang.String contentRep, java.lang.String sid, java.lang.String docType, java.lang.String value, int mandant) throws SaBarcodeExceptionDescription copied from interface:SaClassicConnectorSends the Document UID with the barcode to SAP R/3. This method call can be used for the subsequent transfer of documents that are already present in SAPERION.- Specified by:
sendBarcodein interfaceSaClassicConnector- Parameters:
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 name- Throws:
SaBarcodeException- BarcodeException
-
getToken
public int getToken()
- Returns:
- the token used to identify this connector instance in the backend
-
getSession
public com.saperion.connector.authentication.Session getSession() throws SaAuthenticationExceptionReturns the session of the logged in user. In other case aSaAuthenticationExceptionwill be thrown;- Returns:
- a session if connector was successfully logged in.
- Throws:
SaAuthenticationException- if no successful login was done
-
getServerInfos
public java.util.List<SaRMIServerInfo> getServerInfos() throws SaAuthenticationException, SaSystemException
- Returns:
- list of SaRMIServerInfo instances describing the servers configured in saperion.properties
- Throws:
SaAuthenticationException- user is not logged inSaSystemException- system exception
-
getLicenseCount
public int getLicenseCount(int type) throws SaSystemExceptionDescription copied from interface:SaClassicConnectorThis method returns the overall count of Licenses of the given type in the system.- Specified by:
getLicenseCountin interfaceSaClassicConnector- Parameters:
type- the license type seeLicenseTypefor values- Returns:
- the overall count of Licenses of the given type in the system
- Throws:
SaSystemException- Error on the saperion system
-
setUsedLicense
public boolean setUsedLicense(int type, int count) throws SaSystemExceptionDescription copied from interface:SaClassicConnectorSet the count of used licenses.- Specified by:
setUsedLicensein interfaceSaClassicConnector- Parameters:
type- Client typecount- Number of licenses- Returns:
- True, if success
- Throws:
SaSystemException- Error on the saperion system
-
hasRenderEngine
public boolean hasRenderEngine()
Description copied from interface:SaClassicConnectorChecks wether this classic connector has a render engine.- Specified by:
hasRenderEnginein interfaceSaClassicConnector- Returns:
- if there is a render engine
true, otherwisefalse
-
getSupportedRenderSourceFormats
public java.util.Set<com.saperion.connector.formats.SourceFormat> getSupportedRenderSourceFormats()
Description copied from interface:SaClassicConnectorGets the supported source formats from the render engine.- Specified by:
getSupportedRenderSourceFormatsin interfaceSaClassicConnector- Returns:
- set of supported source formats (empty if there is no render engine)
-
getSupportedRenderTargetFormats
public java.util.Set<com.saperion.connector.formats.TargetFormat> getSupportedRenderTargetFormats()
Description copied from interface:SaClassicConnectorGets the supported target formats from the render engine.- Specified by:
getSupportedRenderTargetFormatsin interfaceSaClassicConnector- Returns:
- set of supported target formats (empty if there is no render engine)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
setEventsEnabled
public void setEventsEnabled(boolean enabled) throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorThis method sets whether events (e.g. for the Integration Server) should be enabled for the current session.- Specified by:
setEventsEnabledin interfaceSaClassicConnector- Parameters:
enabled- true, to enable events, otherwise false.- Throws:
SaSystemException- system errorSaAuthenticationException- authentication error
-
getEventsEnabled
public boolean getEventsEnabled() throws SaSystemException, SaAuthenticationExceptionDescription copied from interface:SaClassicConnectorThis method returns whether events (e.g. for the Integration Server) are enabled for the current session.- Specified by:
getEventsEnabledin interfaceSaClassicConnector- Returns:
- true, if events are enabled for the current session, otherwise false.
- Throws:
SaSystemException- on general system failuresSaAuthenticationException- when the classic connector is not authenticated or the current user has not the required rights for the operation
-
getDDC
public DDC getDDC(java.lang.String ddcName) throws SaSystemException, SaAuthenticationException
Description copied from interface:SaClassicConnectorThis method returns a document definition given by its name.- Specified by:
getDDCin interfaceSaClassicConnector- Parameters:
ddcName- name of the DDC- Returns:
- information about the requested DDC. See
DDC. - Throws:
SaSystemException- system error when retrieving information about the DDCSaAuthenticationException- not logged in
-
getClientConnector
public SaRMIClientCommand getClientConnector()
-
getServerSideClientConfiguration
public ServerSideClientConfiguration getServerSideClientConfiguration()
Description copied from interface:SaClassicConnectorThis method returns the configuration concerning the classic connector that is set on the server side. It is only valid after a login.- Specified by:
getServerSideClientConfigurationin interfaceSaClassicConnector- Returns:
- the configuration concerning the classic connector that is set on the server side
-
getFullTextFields
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> getFullTextFields(java.lang.String ddcName, java.util.List<java.lang.String> fullTextFields, java.lang.String hdoc) throws SaSystemException- Specified by:
getFullTextFieldsin interfaceSaClassicConnector- Parameters:
ddcName- name of the DDCfullTextFields- List of Fields which are of Text retrieval type. Make sure to prefixSaConstants.FULL_TEXT_COLUMN_PREFIXhdoc- hdoc of the document- Returns:
- Set of entries containing full text coulmn and corresponding value
- Throws:
SaSystemException
-
getCurrentUserRole
public com.lexmark.saperion.administration.RoleType getCurrentUserRole() throws SaSystemException, SaAuthenticationException- Specified by:
getCurrentUserRolein interfaceSaClassicConnector- Returns:
- the effective role (combined rights of all roles / profiles) of the current logged-in user
- Throws:
SaSystemExceptionSaAuthenticationException- See Also:
SaClassicConnector.getCurrentUserRole()
-
-