public final class SaClassicConnectorImpl extends Object implements SaClassicConnector
SaClassicConnector
Constructor and Description |
---|
SaClassicConnectorImpl()
Constructs the
SaClassicConnectorImpl instance which provides DMS
functionality. |
SaClassicConnectorImpl(Properties configuration)
Constructs the
SaClassicConnectorImpl instance which provides DMS
functionality. |
SaClassicConnectorImpl(Properties configuration,
com.saperion.cache.CacheManager cacheManager)
Constructs the
SaClassicConnectorImpl instance which provides DMS
functionality. |
SaClassicConnectorImpl(String configPath)
Constructs the
SaClassicConnectorImpl instance which provides DMS
functionality. |
Modifier and Type | Method and Description |
---|---|
void |
addComment(String comment,
String taskUID,
int level)
Adds a comment to the task.
|
void |
addHistory(String description,
String taskUID)
Adds a history entry to the task.
|
void |
addListener(SaEventListener listener)
Deprecated.
event handling is deprecated
|
void |
addListener(SaStatusEventListener listener)
Deprecated.
event handling is deprecated
|
void |
addToFolder(String folderTableDDC,
String documentId,
String documentDDC,
String folderId)
Adds the document with given documentId to a given folder with given folderId.
|
SaSaveInfo |
cacheDocument(String xhDoc,
DocumentInfo document)
Caches the given document on the backend system.
|
SaSaveInfo |
cacheDocument(String xhDoc,
String ddcName,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String strAcl)
Caches a new document on the backend system with the given metadata and content.
|
void |
changePassword(String user,
String oldPassword,
String client,
String newPassword)
Changes the password of an existing user.
|
void |
checkoutDocument(String hDoc)
Checkouts a document for the given document id (hdoc).
|
SapDocInfo |
checkSapUrl(String url)
Checks the given SAP URL on the R/Link server and returns, if successfull, the HDOC and the
DDC.
|
String |
copyFolder(String folderTableDDC,
String folderId,
String destinationId,
String beforeChild,
boolean withDocuments)
Copies the given folder and all it's children to the destination.
|
SaSaveInfo |
createDocument(DocumentInfo document)
Creates a new document on the backend system with the given
DocumentInfo . |
SaSaveInfo |
createDocument(String ddcName,
Properties namevaluePairs,
InputStream[] content,
String versionComment)
Deprecated.
will be removed with version 8.0, use
createDocument(DocumentInfo) instead. |
SaSaveInfo |
createDocument(String ddcName,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String acls)
Deprecated.
|
String |
createFolder(SaFolderSaveInfo info,
Properties namevaluePairs)
Creates a new folder below a given folder.
|
String |
createFolder(String folderTableDDC,
String parentId,
String beforeChild,
String folderName,
SaFolderConstants.FOLDER_TYPE folderType,
Properties namevaluePairs)
Deprecated.
use
createFolder(SaFolderSaveInfo, Properties) instead |
SaSaveInfo |
createLink(LinkInfo link)
Creates a link to a document for given
LinkInfo . |
String |
createLookupEntry(String ddc,
Properties props)
Deprecated.
This method does not handle system fields and might be removed in a future version.
Use
invoke(Operation) with a CreateLookupEntry
operation instead. |
void |
deleteDocument(String documentHDOC,
int deleteType)
Deletes a document from the backend system with the given strategy.
|
void |
deleteFolder(String folderTableDDC,
String folderId)
Deletes an existing folder.
|
void |
deleteLookupEntry(String ddc,
String id)
Deprecated.
This method does not handle system fields and might be removed in a future version.
Use
invoke(Operation) with a DeleteLookupEntry
operation instead. |
boolean |
deleteSetting(String name,
String section,
boolean isLong)
Deletes a setting in the database.
|
void |
discardCheckout(String hDoc)
Discards the checkout of the given document.
|
String |
executeCommand(ContextInfo contextInfo)
Performs the given command.
|
String |
getACLNames(String documentHDOC)
Reads the ACL's for the given document.
|
SaACLRights |
getACLRights(String[] acls)
Read the rights for the given ACL's.
|
List<SaAcl> |
getAcls()
Reads all existing ACLs.
|
List<String> |
getAllACLs()
Deprecated.
use
getAcls() instead |
String |
getAnnotations(String hDoc,
int indexOfContentElement)
Deprecated.
use
getAnnotations(String, int, boolean) instead |
String |
getAnnotations(String hDoc,
int indexOfContentElement,
boolean currentRevision)
Reads the annotations from the given document.
|
int |
getArchivedSize(String hDoc)
Returns the total document size in the archive.
|
List<UsersRights> |
getAuthorizedUsers(String hDoc,
String rights,
MatchKind match)
Returns the users, that have specific rights on a document.
|
Long |
getBoxCount(int boxId)
Reads the count (number of workflow item) of the inbox identified by the given id.
|
List<BoxDefinition> |
getBoxDefinitions()
Reads the box definitions.
|
Collection<CommandInfo> |
getCommandInfos(String docUID)
Reads all possible transitions for this task.
|
Collection<CommandInfo> |
getCommandInfos(String docUID,
boolean transitionsOnly)
Reads all possible transitions and optional other possible commands for this task.
|
List<CommentInfo> |
getCommentInfos(String taskId)
Reads the comments for the given task.
|
List<List<HistoryInfo>> |
getCompleteHistoryInfos(String docId)
Reads the history and comments for the given document.
|
Properties |
getConfiguration(String section)
Reads the application configuration properties from the backend system.
|
SaUserInfo |
getCurrentUserInfo()
Gets detailed info about the current user.
|
String |
getCurrentUserName()
Returns the name of the current user.
|
SaFieldDescription[] |
getDBDefinition(String name)
Reads the definitions of a database definition (DDC) for the given name.
|
DDC |
getDDC(String ddcName)
Returns information about the requested DDC.
|
String[] |
getDefinitions()
Reads the registered DDC names from the repository.
|
SaDocAccessData |
getDocumentAccessData(String documentHDOC)
Reads the access rights of the given document.
|
long |
getDocumentFolderCount(String folderTableDDC,
String documentDDC,
String sysRowId)
Returns the total count over all folders from all users in which the specified document is
contained in.
|
List<SaDocumentInfo> |
getDocumentFolders(String folderTableDDC,
String documentDDC,
String sysRowId)
Returns a list of folder properties which contains all folders the document is contained in.
|
SaDocInfo |
getDocumentInfo(String hDoc,
boolean currentRevision,
boolean resolveLinks)
Reads the document information for the given document.
|
SaDocInfo |
getDocumentInfo(String hDoc,
boolean currentRevision,
boolean resolveLinks,
boolean forceSizeDetermination)
Reads the document information for the given document.
|
boolean |
getEventsEnabled()
Returns whether events (e.g.
|
SaFeature |
getFeatures()
Reads the features.
|
SaDocumentInfo |
getFolderByPath(String folderTableDDC,
String startFolderId,
String folderPath)
Returns the folder which matches to the given path.
|
List<SaDocumentInfo> |
getFolderChildren(String folderTableDDC,
String folderId,
int depth,
SaQueryInfo filter,
int allowedMaxNrOfChildFolders)
Returns a list with the children of the given node.
|
SaFolderClass |
getFolderClass(String className)
Reads the folder class with the given name.
|
String[] |
getFolderDefinitions()
Reads the registered folder DDC names from the repository.
|
List<SaDocumentInfo> |
getFolderFromPath(String folderTableDDC,
String startNodeId,
String folderPath)
Returns the folders which match to the given path.
|
SaDocumentInfo |
getFolderInfo(String folderTableDDC,
String folderId)
Deprecated.
use
getFolderInfo(String, String, boolean) instead |
SaDocumentInfo |
getFolderInfo(String folderTableDDC,
String folderId,
boolean forceLoadVariables)
Returns the folder information object for the given folder.
|
SaDocumentInfo |
getFolderParent(String folderTableDDC,
String folderId)
Returns the parent of the given folder.
|
SaDocAccessData |
getFolderRights(String folderTableDDC,
String folderId)
Returns the rights mask for the given folder and user.
|
Set<FolderUpdateInfo> |
getFolderUpdateInfo(Map<String,Long> folderIds)
Generates the cut set of folders that are open on ngclient side and changed on rich client
side over a specified period of time like the last 10 minutes.
|
String |
getFulltext(String ddcName,
String sysRowId)
Deprecated.
Will be removed in 8.0. Use
getFulltext(String, String, String, long) instead. |
String |
getFulltext(String ddcName,
String hdoc,
String fieldName,
long length)
Reads the fulltext information for the given document with the given HDOC in the given
DDC from the specified field.
|
List<HistoryInfo> |
getHistoryInfos(String taskId)
Reads the history for the given task.
|
List<String> |
getInvolvedUsers(String documentHDOC)
Reads all users involved in the set of ACL's.
|
int |
getLicenseCount(int type)
Read the licence count for the given user.
|
SaLockInfo |
getLockInfo(String sysRowId)
Returns the locking informations for a given document.
|
WorkflowMember |
getMember(WorkflowMember member,
int depth,
String filter)
Returns the workflow members by the given parameters.
This method is considered as a search-method. |
WorkflowMember |
getMembers()
Reads the workflow members in a full structured tree.
|
boolean |
getOutOfOffice()
Get the substitute for the logged on user.
|
TaskInfo |
getParentTask(String taskID)
Reads the parent task info for the given ID.
|
String |
getReleaseAclName()
Gets the release ACL name, configured in the program.ini in section [Release].
|
String |
getReleasedHdoc(String oldHdoc)
Gets the released hdoc for given hdoc if release feature is on and release tag is set,
otherwise returns the given hDoc.
|
List<Rendition> |
getRendition(Element element,
Options options) |
List<SaRMIServerInfo> |
getServerInfos() |
com.saperion.connector.authentication.Session |
getSession()
Returns the session of the logged in user.
|
Setting |
getSetting(String name,
String section,
boolean isLong)
Retrieves a
Setting identified by it's key and section from the database. |
String |
getSubstitute()
Get the substitute for the logged on user.
|
Set<SourceFormat> |
getSupportedRenderSourceFormats()
Gets the supported source formats from the render engine.
|
Set<TargetFormat> |
getSupportedRenderTargetFormats()
Gets the supported target formats from the render engine.
|
List<String> |
getSystemFiles(SystemFileKind kind,
String filter)
Gets the system files of a specific kind.
|
SaSystemInfo |
getSystemInfo()
Reads the system informations.
|
SaSystemSetting |
getSystemSetting(String accessKey)
Retrieves a system setting object.
|
TaskInfo |
getTask(String taskID)
Reads the task info for the given ID.
|
List<TaskAuditInfo> |
getTaskAuditList(int[] ids,
String filter,
Map<String,Object> parameter)
Reads the task audits for this user.
|
List<TaskInfo> |
getTaskList(int[] ids,
String filter,
Map<String,Object> parameter)
Reads the tasks for this user.
|
byte[] |
getThumbnail(String hDoc,
int widthX,
int widthY,
boolean color)
Reads the thumbnail of the given document.
|
int |
getToken() |
List<String> |
getUsers(String filter)
Reads a list of filtered users.
|
SaUserSetting |
getUserSetting(String accessKey)
Retrieves a user-specific setting object.
|
List<String> |
getVersionIDs(String ddcName,
String sysrowID)
Reads the version IDs of the given document.
|
SaWFConnector |
getWorkflowConnector()
Returns a workflow connector based on this classic connector.
|
String |
getWorkflowDdcName()
Gets the workflow ddc name.
|
List<String> |
getWorkflowDefinitions()
Reads all available workflow definitions.
|
List<ProcessDefinitionDescriptor> |
getWorkflowDefinitions(String ddcName)
Returns the workflow definitions that are allowed to be used for documents contained
in the specified DDC.
|
int |
hashCode() |
boolean |
hasRenderEngine()
Checks wether this classic connector has a render engine.
|
<T extends Serializable> |
invoke(Operation<T> operation)
Invokes the given
Operation on the server side. |
boolean |
isActive()
Checks, if the connector is logged on.
|
boolean |
isAlive()
Test the lifetime of this connector.
|
boolean |
isReleaseActive()
Checks if is release feature in the program.ini in section [Release] is active.
|
Map<String,String> |
loadLocalize(String language)
Load localize.
|
InputStream |
loadSystemFile(SystemFileKind kind,
String name)
Loads a system file of a specific kind.
|
boolean |
lockDocument(String sysRowId,
String ddcName)
Locks a document.
|
void |
logClientEvent(String hdoc,
SaConstants.ProtoEvents event,
String remark)
Adds an audit log event.
|
boolean |
logoff()
Log off from the system.
|
int |
logon(byte[] token,
int type,
String client)
Deprecated.
will be removed with version 8.0
|
com.saperion.connector.authentication.Session |
logon(com.saperion.connector.authentication.Credentials credentials)
Performs a logon with the given Credentials and returns the information about the open
session.
|
int |
logon(jcifs.smb.NtlmPasswordAuthentication auth,
int type,
String client)
Deprecated.
will be removed with version 8.x
|
int |
logon(String username,
String password,
int type,
String client)
performs logon to the backend system.
|
void |
moveFolder(String folderTableDDC,
String folderId,
String destinationId,
String beforeChild)
Moves the given folder to a new destination.
|
void |
moveToFolder(String folderTableDDC,
String documentId,
String documentDDC,
String folderId,
String destinationId)
Removes the document from the source folder and adds it to the source folder.
|
InputStream |
readDocument(String docHdoc,
boolean currentRevision,
int elementNumber)
Loads a document's content from the backend system.
|
String |
readDocumentFilename(String docHdoc,
boolean currentRevision,
int elementNumber)
Reads the filenames of the application data of the document with the given ID.
|
SaPropertyValue[] |
readDocumentMetadata(String documentSysRowID,
String ddcName,
String[] fields)
Reads the metadata of the document with the given ID.
|
InputStream |
readReleasedDocument(String docHdoc,
boolean currentRevision,
int elementNumber)
Read released document if the release feature is
active.
|
InputStream |
readVersionDocument(String docHdoc,
int elementNumber)
Loads a document version from the backend system.
|
String |
readVersionDocumentFilename(String docHdoc,
int elementNumber)
Reads the filenames of the application data of the document with the given ID.
|
SaVersionData |
readVersionMetadata(String versionID)
Reads the version metadata of the document with the given ID.
|
void |
releaseDocument(String ddcName,
String hDoc,
String versionComment)
Release the given document.
|
boolean |
removeEvent(SaEvent event)
Deprecated.
event handling is deprecated
|
void |
removeFromFolder(String folderTableDDC,
String documentSysRowId,
String documentDDC,
String folderId)
Removes the document from the given folder.
|
void |
removeListener(SaEventListener listener)
Deprecated.
event handling is deprecated
|
void |
removeListener(SaStatusEventListener listener)
Deprecated.
event handling is deprecated
|
String |
resolveLatestHDoc(String oldHdoc)
Resolves and returns the XHDOC of the latest version of the document identified by the given
HDOC.
|
SaSaveInfo |
restoreVersion(String versionID)
Restores the version with the given HDOC.
|
List<SaPropertyValue[]> |
search(String hqlQuery)
Deprecated.
use
searchHQL(SaQueryInfo) instead |
Set<SaFolderClass> |
searchFolderClass(SaFolderClassSearchInfo searchInfo)
Searches for folder classes that match the specified propertied.
|
List<SaDocumentInfo> |
searchFolderDocuments(String folderTableDDC,
String folderId,
SaQueryInfo hqlFilter)
HQL search extended with additional folder informations and depth.
|
List<SaDocumentInfo> |
searchHQL(SaQueryInfo hqlQuery)
Performs a search with the given hql query (hibernate query language).
|
SettingSearchResult |
searchSettings(SettingSearchInfo searchInfo)
Searches for settings.
|
void |
sendBarcode(String indexMask,
String docUid,
String contentRep,
String sid,
String docType,
String value,
int mandant)
Send barcode to SAP.
|
SaSaveInfo |
setACLName(String ddcname,
String documentHDOC,
String acl,
String versionComment)
Adds the given ACL to the node.
|
void |
setAnnotations(String hDoc,
int indexOfContentElement,
String annotations)
Sets the given annotations to the document.
|
void |
setCurrentUserPresent(boolean present)
Sets whether the current user is present.
|
void |
setEventsEnabled(boolean enabled)
Sets whether events (e.g.
|
void |
setFolderAcl(String folderTableDDC,
String folderId,
String aclName)
Sets an ACL for the given folder.
|
void |
setLocale(Locale locale)
Set the localization information for this user.
|
void |
setOutOfOffice(boolean isOutOfOffice)
set the out of office status for the logged on user.
|
void |
setSetting(Setting setting)
Stores a
Setting in the database. |
void |
setSubstitute(String name)
Set the substitute for the logged on user.
|
boolean |
setUsedLicense(int type,
int count)
Set the count of used licenses.
|
void |
setUserSetting(SaUserSetting setting)
Persists a user-specific setting object.
|
void |
stopServer()
Deprecated.
Functionality removed because of security-concerns. Method contained for
compatibility only. Use windows service management tool or SAPERION MMC to stop
the server.
|
void |
storeBpmn(BpmnImportDescription bpmnDescription,
BpmnImportCallback callback)
Transforms the bpmn model to a saperion process and stores it to the system.
|
void |
storeSystemFile(SystemFileKind kind,
String name,
InputStream data)
Stores a system file of a specific kind.
|
String |
toString() |
boolean |
unlockDocument(String sysRowId,
String ddcName)
Unlocks a document.
|
void |
updateCurrentUserInformation(MutableUserInformation user)
Changes information about the current user.
|
SaSaveInfo |
updateDocument(String ddcName,
String documentHDOC,
Properties namevaluePairs,
InputStream[] content,
String versionComment)
Deprecated.
will be removed with version 8.0, use
updateDocument(UpdateDocumentInfo) instead. |
SaSaveInfo |
updateDocument(String ddcName,
String documentHDOC,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String acls)
Deprecated.
will be removed with version 8.0
|
SaSaveInfo |
updateDocument(String ddcName,
String documentHDOC,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String acls,
boolean resolveLinks)
Deprecated.
will be removed with version 8.0
|
SaSaveInfo |
updateDocument(String ddcName,
String documentHDOC,
Properties namevaluePairs,
InputStream[] content,
String versionComment,
String acls,
boolean resolveLinks,
boolean checkin)
Deprecated.
will be removed with version 8.0deprecated will be removed with version 8.0
|
SaSaveInfo |
updateDocument(UpdateDocumentInfo updateInfo)
Updates a document in the backend system with the given metadata, acls and content.
|
void |
updateFolder(String folderTableDDC,
String folderId,
Properties namevaluePairs)
Updates an existing folder with the given properties.
|
void |
updateLookupEntry(String ddc,
String id,
Properties props)
Deprecated.
This method does not handle system fields and might be removed in a future version.
Use
invoke(Operation) with a UpdateLookupEntry
operation instead. |
public SaClassicConnectorImpl()
SaClassicConnectorImpl
instance which provides DMS
functionality.public SaClassicConnectorImpl(String configPath)
SaClassicConnectorImpl
instance which provides DMS
functionality.configPath
- Configuration pathpublic SaClassicConnectorImpl(Properties configuration)
SaClassicConnectorImpl
instance which provides DMS
functionality.configuration
- Configuration propertiespublic SaClassicConnectorImpl(Properties configuration, com.saperion.cache.CacheManager cacheManager)
SaClassicConnectorImpl
instance which provides DMS
functionality.configuration
- Configuration propertiescacheManager
- an instance of CacheManager
public Properties getConfiguration(String section) throws SaSystemException, SaAuthenticationException
getConfiguration
in interface SaClassicConnector
section
- Section in archief.ini to load configuration propertiesSaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationExceptionSaClassicConnector.getConfiguration(java.lang.String)
@Deprecated public void stopServer() throws SaSystemException, SaAuthenticationException
stopServer
in interface SaClassicConnector
SaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationExceptionSaClassicConnector.stopServer()
public String[] getDefinitions() throws SaSystemException, SaAuthenticationException
getDefinitions
in interface SaClassicConnector
SaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationExceptionSaClassicConnector.getDefinitions()
public String[] getFolderDefinitions() throws SaSystemException, SaAuthenticationException
getFolderDefinitions
in interface SaClassicConnector
SaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationExceptionSaClassicConnector.getFolderDefinitions()
public SaFieldDescription[] getDBDefinition(String name) throws SaSystemException, SaAuthenticationException
getDBDefinition
in interface SaClassicConnector
name
- name of the database definition (DDC) to getSaFieldDescription
represented as an array of
SaJNIFieldDescription
instances;SaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationExceptionSaClassicConnector.getDBDefinition(java.lang.String)
public int logon(String username, String password, int type, String client) throws SaAuthenticationException, SaSystemException
logon
in interface SaClassicConnector
username
- User's full namepassword
- Passwordtype
- User type that means client license type. There are possible the following integer
values:
client
- client/mandant name, used in multi-client systemsSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaSystemException
- SaSystemExceptionSaClassicConnector.logon(java.lang.String, java.lang.String, int,
java.lang.String)
@Deprecated public int logon(jcifs.smb.NtlmPasswordAuthentication auth, int type, String client) throws SaAuthenticationException, SaSystemException
logon
in interface SaClassicConnector
auth
- Ntlm authentication objecttype
- User type that means client license type. There are possible the following integer
values:
client
- client/mandant name, used in multi-client systemsSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemException@Deprecated public int logon(byte[] token, int type, String client) throws SaAuthenticationException, SaSystemException
logon
in interface SaClassicConnector
token
- Kerberos authentication objecttype
- User type that means client license type. There are possible the following integer
values:
client
- client/mandant name, used in multi-client systemsSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic com.saperion.connector.authentication.Session logon(com.saperion.connector.authentication.Credentials credentials) throws SaAuthenticationException, SaSystemException
SaClassicConnector
logon
in interface SaClassicConnector
SaAuthenticationException
- thrown if logon was not possible through wrong password
or not existing userSaSystemException
- thrown if the system is not reachableSaClassicConnector.logon(com.saperion.connector.authentication.Credentials)
public boolean logoff() throws SaAuthenticationException, SaSystemException
logoff
in interface SaClassicConnector
SaAuthenticationException
- user was not logged inSaSystemException
- remote exceptionSaClassicConnector.logoff()
public InputStream readReleasedDocument(String docHdoc, boolean currentRevision, int elementNumber) throws SaSystemException, SaAuthenticationException
readReleasedDocument
in interface SaClassicConnector
docHdoc
- the doc hdoccurrentRevision
- the current revisionelementNumber
- the element numberSaSystemException
- the sa system exceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaClassicConnector.readReleasedDocument(java.lang.String,
boolean, int)
public InputStream readDocument(String docHdoc, boolean currentRevision, int elementNumber) throws SaSystemException, SaAuthenticationException
InputStream
instance from the appropriate
document in the backend system. This document is specified by its UID (XHDOC).InputStream.read()
readDocument
in interface SaClassicConnector
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 documentsSaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationException InputStream.read(byte[])
or
InputStream.read(byte[], int, int)
methods.SaClassicConnector.readDocument(java.lang.String, boolean, int)
public SaPropertyValue[] readDocumentMetadata(String documentSysRowID, String ddcName, String[] fields) throws SaSystemException, SaAuthenticationException
readDocumentMetadata
in interface SaClassicConnector
documentSysRowID
- The ID of the document (SYSROWID)ddcName
- The name of the database definitionfields
- Fieldnames to be read. If empty or null, all fields will be read.SaPropertyValue
instances.SaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaClassicConnector.readDocumentMetadata(java.lang.String,
java.lang.String, java.lang.String[])
@Deprecated public String getFulltext(String ddcName, String sysRowId) throws SaSystemException, SaAuthenticationException
getFulltext(String, String, String, long)
instead.getFulltext
in interface SaClassicConnector
ddcName
- DDC name of the documentsysRowId
- SYSROWID of the documentSaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaClassicConnector.getFulltext(java.lang.String,
java.lang.String)
public String getFulltext(String ddcName, String hdoc, String fieldName, long length) throws SaSystemException, SaAuthenticationException
getFulltext
in interface SaClassicConnector
ddcName
- DDC name of the documenthdoc
- HDOC of the documentfieldName
- name of the fulltext field to read fromlength
- length of the content to return. If -1, the complete content will be returned.SaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaClassicConnector.getFulltext(java.lang.String,
java.lang.String, java.lang.String, long)
public byte[] getThumbnail(String hDoc, int widthX, int widthY, boolean color) throws SaSystemException, SaAuthenticationException
getThumbnail
in interface SaClassicConnector
hDoc
- HDoc for the document.widthX
- Width X or -1 to auto-calculatewidthY
- Width Y or -1 to auto-calculatecolor
- True for coloredSaSystemException
- System exceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaClassicConnector.getThumbnail(java.lang.String, int, int,
boolean)
@Deprecated public SaSaveInfo createDocument(String ddcName, Properties namevaluePairs, InputStream[] content, String versionComment) throws SaSystemException, SaAuthenticationException, SaDDCException
createDocument(DocumentInfo)
instead.createDocument
in interface SaClassicConnector
ddcName
- The name of the database definitionnamevaluePairs
- A properties object containing the metadata of the document (e.g index fields and
their values)content
- Multiple content data (an array of InputStream
instances)versionComment
- The comment for the versionSaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaDDCException
- SaDDCExceptionSaClassicConnector.createDocument(java.lang.String,
java.util.Properties, java.io.InputStream[], java.lang.String)
@Deprecated public SaSaveInfo createDocument(String ddcName, Properties namevaluePairs, InputStream[] content, String versionComment, String acls) throws SaSystemException, SaAuthenticationException, SaDDCException
createDocument
in interface SaClassicConnector
ddcName
- The name of the database definitionnamevaluePairs
- A properties object containing the metadata of the document (e.g index fields and
their values)content
- Multiple content data (an array of InputStream
instances)versionComment
- The comment for the versionacls
- ACL name string (semicolon separated)SaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaDDCException
- SaDDCExceptionSaClassicConnector.createDocument(java.lang.String,
java.util.Properties, java.io.InputStream[], java.lang.String, java.lang.String)
public SaSaveInfo createDocument(DocumentInfo document) throws SaSystemException, SaAuthenticationException, SaDDCException
DocumentInfo
.createDocument
in interface SaClassicConnector
document
- the documentSaSaveInfo
object describing the new created documentSaSystemException
- the sa system exceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaDDCException
- the sa ddc exceptioncreateDocument(com.saperion.structures.DocumentInfo)
public SaSaveInfo createLink(LinkInfo link) throws SaSystemException, SaAuthenticationException, SaDDCException
LinkInfo
.
createLink
in interface SaClassicConnector
link
- info LinkInfo
to create a linkSaSaveInfo
of new created linkSaSystemException
- the sa system exceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaDDCException
- the sa ddc exceptionSaClassicConnector.createLink(com.saperion.structures.LinkInfo)
@Deprecated public SaSaveInfo updateDocument(String ddcName, String documentHDOC, Properties namevaluePairs, InputStream[] content, String versionComment) throws SaSystemException, SaAuthenticationException, SaDDCException
updateDocument(UpdateDocumentInfo)
instead.updateDocument
in interface SaClassicConnector
ddcName
- The name of the database definitiondocumentHDOC
- The ID of the document (HDOC)namevaluePairs
- A properties object containing the metadatacontent
- Multiple content dataversionComment
- The comment for the versionSaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaDDCException
- SaDDCExceptionSaClassicConnector.updateDocument(java.lang.String,
java.lang.String, java.util.Properties, java.io.InputStream[], java.lang.String)
public boolean lockDocument(String sysRowId, String ddcName) throws SaSystemException, SaAuthenticationException, SaLockException
lockDocument
in interface SaClassicConnector
sysRowId
- SysRowId of document to lockddcName
- DDC nameSaSystemException
- The SaSystemExceptionSaAuthenticationException
- The when the user is not logged in or has insufficient rightsSaLockException
- The SaLockExceptionSaClassicConnector.lockDocument(java.lang.String,
java.lang.String)
public boolean unlockDocument(String sysRowId, String ddcName) throws SaSystemException, SaAuthenticationException, SaLockException
unlockDocument
in interface SaClassicConnector
sysRowId
- SysRowId of document to unlockddcName
- DDC nameSaSystemException
- The SaSystemExceptionSaAuthenticationException
- The when the user is not logged in or has insufficient rightsSaLockException
- The SaLockExceptionSaClassicConnector.unlockDocument(java.lang.String,java.lang.String)
public SaDocInfo getDocumentInfo(String hDoc, boolean currentRevision, boolean resolveLinks) throws SaSystemException, SaAuthenticationException
getDocumentInfo
in interface SaClassicConnector
hDoc
- Document HDOCcurrentRevision
- True for current revisionresolveLinks
- True for resolve linksSaSystemException
- The SaSystemExceptionSaAuthenticationException
- Authenication failureSaClassicConnector.getDocumentInfo(java.lang.String, boolean,
boolean)
public SaDocInfo getDocumentInfo(String hDoc, boolean currentRevision, boolean resolveLinks, boolean forceSizeDetermination) throws SaSystemException, SaAuthenticationException
getDocumentInfo
in interface SaClassicConnector
hDoc
- Document HDOCcurrentRevision
- True for current revisionresolveLinks
- True for resolve linksforceSizeDetermination
- Forces the backend to determine the size of each element, even if it is not
already available. Reqiures loading the document, so use only if really required.SaSystemException
- The SaSystemExceptionSaAuthenticationException
- Authenication failureSaClassicConnector.getDocumentInfo(java.lang.String, boolean,
boolean, boolean)
@Deprecated public SaSaveInfo updateDocument(String ddcName, String documentHDOC, Properties namevaluePairs, InputStream[] content, String versionComment, String acls) throws SaSystemException, SaAuthenticationException, SaDDCException
updateDocument
in interface SaClassicConnector
ddcName
- The name of the database definitiondocumentHDOC
- The ID of the document (HDOC)namevaluePairs
- A properties object containing the metadatacontent
- Multiple content dataversionComment
- The comment for the versionacls
- ACL name string, if null
it will be ignored, to delete existing ACLs
set an empty stringSaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaDDCException
- SaDDCExceptionSaClassicConnector.updateDocument(java.lang.String,
java.lang.String, java.util.Properties, java.io.InputStream[], java.lang.String,
java.lang.String)
@Deprecated public SaSaveInfo updateDocument(String ddcName, String documentHDOC, Properties namevaluePairs, InputStream[] content, String versionComment, String acls, boolean resolveLinks) throws SaSystemException, SaAuthenticationException, SaDDCException
updateDocument
in interface SaClassicConnector
ddcName
- The name of the database definitiondocumentHDOC
- The ID of the document (HDOC)namevaluePairs
- A properties object containing the metadatacontent
- Multiple content dataversionComment
- The comment for the versionacls
- ACL name string, if null
it will be ignored, to delete existing ACLs
set an empty stringresolveLinks
- Resolve linksSaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaDDCException
- SaDDCExceptionSaClassicConnector.updateDocument(java.lang.String,
java.lang.String, java.util.Properties, java.io.InputStream[], java.lang.String,
java.lang.String, boolean)
@Deprecated public SaSaveInfo updateDocument(String ddcName, String documentHDOC, Properties namevaluePairs, InputStream[] content, String versionComment, String acls, boolean resolveLinks, boolean checkin) throws SaSystemException, SaAuthenticationException, SaDDCException
updateDocument
in interface SaClassicConnector
ddcName
- The name of the database definitiondocumentHDOC
- The ID of the document (HDOC)namevaluePairs
- A properties object containing the metadatacontent
- Multiple content dataversionComment
- The comment for the versionacls
- ACL name string, if null
it will be ignored, to delete existing ACLs
set an empty stringresolveLinks
- Resolve linkscheckin
- Checkin documentSaSystemException
- when a system error occuredSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaDDCException
- when a database definition was invalid or not foundSaClassicConnector.updateDocument(java.lang.String,
java.lang.String, java.util.Properties, java.io.InputStream[], java.lang.String,
java.lang.String, boolean, boolean)
public SaSaveInfo updateDocument(UpdateDocumentInfo updateInfo) throws SaSystemException, SaAuthenticationException, SaDDCException
updateDocument
in interface SaClassicConnector
updateInfo
- updateInfo beanSaSystemException
- when a system error occuredSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaDDCException
- when a database definition was invalid or not foundSaClassicConnector.updateDocument(com.saperion.bean.UpdateDocumentInfo)
public void checkoutDocument(String hDoc) throws SaSystemException, SaAuthenticationException, SaGetNodeException
checkoutDocument
in interface SaClassicConnector
hDoc
- id (HDOC) of document to checkoutSaSystemException
- SaRMICommandExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaGetNodeException
- SaGetNodeExceptionSaClassicConnector.checkoutDocument(java.lang.String)
public void discardCheckout(String hDoc) throws SaSystemException, SaAuthenticationException, SaGetNodeException
discardCheckout
in interface SaClassicConnector
hDoc
- Document HDOCSaSystemException
- SaRMICommandExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaGetNodeException
- SaGetNodeExceptionSaClassicConnector.discardCheckout(java.lang.String)
public void releaseDocument(String ddcName, String hDoc, String versionComment) throws SaSystemException, SaAuthenticationException, SaGetNodeException, SaSetNodeException, SaDDCException
releaseDocument
in interface SaClassicConnector
ddcName
- the ddc namehDoc
- Document HDOCversionComment
- the version commentSaSystemException
- SaRMICommandExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaGetNodeException
- SaGetNodeExceptionSaSetNodeException
- the sa set node exceptionSaDDCException
- the sa ddc exceptionTODO fix workaround with double revision tag by calling backend method
public boolean isReleaseActive() throws SaAuthenticationException, SaSystemException
isReleaseActive
in interface SaClassicConnector
SaAuthenticationException
- when the user is not logged in or has insufficient rightsSaSystemException
- the sa system exceptionSaClassicConnector.isReleaseActive()
public String getReleasedHdoc(String oldHdoc) throws SaAuthenticationException, SaSystemException
getReleasedHdoc
in interface SaClassicConnector
oldHdoc
- the hdoc to lookup released hdocSaAuthenticationException
- if authentication failsSaSystemException
- the sa system exceptionSaClassicConnector.getReleasedHdoc(java.lang.String)
public String getReleaseAclName() throws SaSystemException, SaAuthenticationException
SaSystemException
- the sa system exceptionSaAuthenticationException
- the sa authentication exceptionpublic SaSaveInfo restoreVersion(String versionID) throws SaSystemException, SaAuthenticationException, SaDDCException
restoreVersion
in interface SaClassicConnector
versionID
- Version HDOCSaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaDDCException
- SaDDCExceptionSaClassicConnector.restoreVersion(java.lang.String)
public void deleteDocument(String documentHDOC, int deleteType) throws SaSystemException, SaAuthenticationException, SaDDCException
deleteDocument
in interface SaClassicConnector
documentHDOC
- The HDoc of the document to delete.deleteType
- Deletion strategy which may be set on one of the following values:
SaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaDDCException
- SaDDCExceptionSaClassicConnector.deleteDocument(java.lang.String, int)
public List<String> getVersionIDs(String ddcName, String sysrowID) throws SaSystemException, SaAuthenticationException
getVersionIDs
in interface SaClassicConnector
ddcName
- The name of the database definitionsysrowID
- The ID of the documentSaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaClassicConnector.getVersionIDs(java.lang.String,java.lang.String)
public InputStream readVersionDocument(String docHdoc, int elementNumber) throws SaSystemException, SaAuthenticationException
readVersionDocument
in interface SaClassicConnector
docHdoc
- Version ID (XHDOC is the revision number of the document)elementNumber
- Element numberSaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user of this session is not logged in (anymore) or has insufficient rightsSaClassicConnector.readVersionDocument(java.lang.String, int)
public SaVersionData readVersionMetadata(String versionID) throws SaSystemException, SaAuthenticationException, SaDDCException
readVersionMetadata
in interface SaClassicConnector
versionID
- Version ID (XHDOC is the revision number of the document)SaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationExceptionSaDDCException
- SaDDCExceptionSaClassicConnector.readVersionMetadata(java.lang.String)
public String readVersionDocumentFilename(String docHdoc, int elementNumber) throws SaSystemException, SaAuthenticationException, SaDDCException
readVersionDocumentFilename
in interface SaClassicConnector
docHdoc
- The ID of the document (XHDOC)elementNumber
- position in the document structure; 0 if the document is unstructured.SaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationExceptionSaDDCException
- SaDDCExceptionSaClassicConnector.readVersionDocumentFilename(java.lang.String,
int)
@Deprecated public List<SaPropertyValue[]> search(String hqlQuery) throws SaSystemException, SaAuthenticationException, SaDBException
searchHQL(SaQueryInfo)
insteadsearch
in interface SaClassicConnector
hqlQuery
- the Hibernate query - hql.SaPropertyValue
object.SaDBException
SaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaClassicConnector.search(java.lang.String)
public List<SaDocumentInfo> searchHQL(SaQueryInfo hqlQuery) throws SaSystemException, SaAuthenticationException, SaDBException
searchHQL
in interface SaClassicConnector
hqlQuery
- the Hibernate query info.SaSystemException
- SaSystemExceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaDBException
- exception thrown during query execution(com.saperion.rmi.SaQueryInfo)
@Deprecated public boolean removeEvent(SaEvent event) throws SaSystemException
removeEvent
in interface SaClassicConnector
event
- Event objectSaSystemException
- SaSystemExceptionSaClassicConnector.removeEvent(com.saperion.intf.SaEvent)
@Deprecated public void addListener(SaEventListener listener) throws SaSystemException, SaAuthenticationException
addListener
in interface SaClassicConnector
listener
- Event listenerSaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationExceptionSaClassicConnector.addListener(com.saperion.intf.SaEventListener)
@Deprecated public void removeListener(SaEventListener listener) throws SaSystemException
removeListener
in interface SaClassicConnector
listener
- Event listenerSaSystemException
- SaSystemExceptionSaClassicConnector.removeListener(com.saperion.intf.SaEventListener)
@Deprecated public void addListener(SaStatusEventListener listener) throws SaAuthenticationException, SaSystemException
addListener
in interface SaClassicConnector
listener
- Event listenerSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaClassicConnector.addListener(com.saperion.intf.SaStatusEventListener)
@Deprecated public void removeListener(SaStatusEventListener listener) throws SaSystemException
removeListener
in interface SaClassicConnector
listener
- Event listenerSaSystemException
- SaSystemExceptionSaClassicConnector.removeListener(com.saperion.intf.SaStatusEventListener)
public String readDocumentFilename(String docHdoc, boolean currentRevision, int elementNumber) throws SaSystemException, SaAuthenticationException, SaDDCException
readDocumentFilename
in interface SaClassicConnector
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.SaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationExceptionSaDDCException
- SaDDCExceptionSaClassicConnector.readDocumentFilename(java.lang.String,
boolean, int)
public String getACLNames(String documentHDOC) throws SaSystemException, SaAuthenticationException, SaDDCException
getACLNames
in interface SaClassicConnector
documentHDOC
- The ID of the document (XHDOC)SaDDCException
SaSystemException
- RemoteExceptionSaAuthenticationException
- SaAuthenticationExceptionSaClassicConnector.getACLNames(java.lang.String)
@Deprecated public List<String> getAllACLs() throws SaSystemException, SaAuthenticationException
getAcls()
insteadgetAllACLs
in interface SaClassicConnector
SaSystemException
- Remote exceptionSaAuthenticationException
- SaAuthenticationExceptionSaClassicConnector.getAllACLs()
public List<String> getInvolvedUsers(String documentHDOC) throws SaSystemException, SaAuthenticationException, SaDDCException
getInvolvedUsers
in interface SaClassicConnector
documentHDOC
- The ID of the document (XHDOC)SaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationExceptionSaDDCException
- SaDDCExceptionSaClassicConnector.getInvolvedUsers(java.lang.String)
public SaSaveInfo setACLName(String ddcname, String documentHDOC, String acl, String versionComment) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetACLException
setACLName
in interface SaClassicConnector
ddcname
- the name of the ddc in saperiondocumentHDOC
- The ID of the document (XHDOC)acl
- ACLversionComment
- VersioncommentSaSystemException
- RemoteExceptionSaAuthenticationException
- SaAuthenticationExceptionSaDDCException
- SaDDCExceptionSaSetACLException
- SaSetACLExceptionSaClassicConnector.setACLName(java.lang.String, java.lang.String,
java.lang.String, java.lang.String)
public SaDocAccessData getDocumentAccessData(String documentHDOC) throws SaSystemException, SaAuthenticationException
getDocumentAccessData
in interface SaClassicConnector
documentHDOC
- The ID of the document (XHDOC)SaSystemException
- Remote exceptionSaAuthenticationException
- SaAuthenticationExceptionSaClassicConnector.getDocumentAccessData(java.lang.String)
public SaLockInfo getLockInfo(String sysRowId) throws SaSystemException, SaAuthenticationException, SaLockException
getLockInfo
in interface SaClassicConnector
sysRowId
- Document SysRowIdSaSystemException
- Remote exceptionSaAuthenticationException
- Authentification errorSaLockException
- Locking errorSaClassicConnector.getLockInfo(java.lang.String)
public boolean isActive()
public String getCurrentUserName()
getCurrentUserName
in interface SaClassicConnector
public SaWFConnector getWorkflowConnector() throws SaAuthenticationException, SaSystemException
getWorkflowConnector
in interface SaClassicConnector
SaAuthenticationException
- Authentification errorSaSystemException
- Remote exceptionSaClassicConnector.getWorkflowConnector()
public List<TaskInfo> getTaskList(int[] ids, String filter, Map<String,Object> parameter) throws SaAuthenticationException, SaSystemException
ids
- Box ID'sfilter
- HQL filterparameter
- Filter parameterSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic List<TaskAuditInfo> getTaskAuditList(int[] ids, String filter, Map<String,Object> parameter) throws SaAuthenticationException, SaSystemException
ids
- Box ID'sfilter
- HQL filterparameter
- Filter parameterSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic TaskInfo getTask(String taskID) throws SaAuthenticationException, SaSystemException
taskID
- Task IDSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic TaskInfo getParentTask(String taskID) throws SaAuthenticationException, SaSystemException
taskID
- Task IDSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic Collection<CommandInfo> getCommandInfos(String docUID) throws SaAuthenticationException, SaSystemException
docUID
- Document UID of taskSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic Collection<CommandInfo> getCommandInfos(String docUID, boolean transitionsOnly) throws SaAuthenticationException, SaSystemException
docUID
- Document UID of tasktransitionsOnly
- if true, only transition commands will be returnedSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic List<BoxDefinition> getBoxDefinitions() throws SaAuthenticationException, SaSystemException
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic Long getBoxCount(int boxId) throws SaAuthenticationException, SaSystemException
boxId
- the workflow box idSaAuthenticationException
- if an error occurs.SaSystemException
- if an error occurs.public String executeCommand(ContextInfo contextInfo) throws SaAuthenticationException, SaSystemException, SaWorkflowException
contextInfo
- Context infoSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionpublic List<CommentInfo> getCommentInfos(String taskId) throws SaAuthenticationException, SaSystemException, SaWorkflowException
taskId
- Task IDSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionpublic List<HistoryInfo> getHistoryInfos(String taskId) throws SaAuthenticationException, SaSystemException, SaWorkflowException
taskId
- Task IDSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionpublic List<List<HistoryInfo>> getCompleteHistoryInfos(String docId) throws SaAuthenticationException, SaSystemException, SaWorkflowException
docId
- Document IDSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionpublic List<String> getWorkflowDefinitions() throws SaAuthenticationException, SaSystemException, SaWorkflowException
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionpublic List<ProcessDefinitionDescriptor> getWorkflowDefinitions(String ddcName) throws SaAuthenticationException, SaSystemException, SaWorkflowException
ddcName
- name of the DDCSaAuthenticationException
- authentication error when loading definitionsSaSystemException
- system error when loading definitionsSaWorkflowException
- workflow error when loading definitionspublic String getWorkflowDdcName() throws SaSystemException
SaSystemException
- SaSystemExceptionpublic void addComment(String comment, String taskUID, int level) throws SaAuthenticationException, SaSystemException, SaWorkflowException
comment
- CommenttaskUID
- Task UIDlevel
- LevelSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionpublic void addHistory(String description, String taskUID) throws SaAuthenticationException, SaSystemException, SaWorkflowException
description
- CommenttaskUID
- Task UIDSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionpublic boolean getOutOfOffice() throws SaAuthenticationException, SaSystemException
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic String getSubstitute() throws SaAuthenticationException, SaSystemException
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic void setOutOfOffice(boolean isOutOfOffice) throws SaAuthenticationException, SaSystemException
isOutOfOffice
- is OutOfOfficeSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic void setSubstitute(String name) throws SaAuthenticationException, SaSystemException
name
- Substitute nameSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic WorkflowMember getMembers() throws SaAuthenticationException, SaSystemException
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic WorkflowMember getMember(WorkflowMember member, int depth, String filter) throws SaAuthenticationException, SaSystemException
member
- Starting memberdepth
- Depth to readfilter
- filter stringSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionpublic boolean isAlive() throws SaSystemException
isAlive
in interface SaClassicConnector
SaSystemException
- System exceptionSaClassicConnector.isAlive()
public List<String> getUsers(String filter) throws SaSystemException, SaAuthenticationException
filter
- FilterSaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationException@Deprecated public String getAnnotations(String hDoc, int indexOfContentElement) throws SaAuthenticationException, SaSystemException
getAnnotations(String, int, boolean)
insteadgetAnnotations
in interface SaClassicConnector
hDoc
- Document HDOCindexOfContentElement
- the index of the chosen context elementSaAuthenticationException
- Authentication errorSaSystemException
- Remote exceptionpublic String getAnnotations(String hDoc, int indexOfContentElement, boolean currentRevision) throws SaAuthenticationException, SaSystemException
getAnnotations
in interface SaClassicConnector
hDoc
- Document HDOCindexOfContentElement
- the index of the chosen context elementcurrentRevision
- true to get current revisionSaAuthenticationException
- Authentication errorSaSystemException
- Remote exceptionpublic void setAnnotations(String hDoc, int indexOfContentElement, String annotations) throws SaAuthenticationException, SaSystemException
setAnnotations
in interface SaClassicConnector
hDoc
- Document HDOCindexOfContentElement
- the index of the chosen context elementannotations
- Annotation stringSaAuthenticationException
- Authentication errorSaSystemException
- Remote exceptionpublic SaSystemSetting getSystemSetting(String accessKey) throws SaSystemException, SaAuthenticationException
getSystemSetting
in interface SaClassicConnector
accessKey
- key to get associated system settingSaSystemSetting
SaSystemException
- System exceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightspublic SaSystemInfo getSystemInfo() throws SaSystemException
getSystemInfo
in interface SaClassicConnector
SaSystemInfo
SaSystemException
- System exceptionSaClassicConnector.getSystemInfo()
public SaFeature getFeatures() throws SaSystemException
getFeatures
in interface SaClassicConnector
SaSystemException
- System exceptionSaClassicConnector.getFeatures()
public SaUserSetting getUserSetting(String accessKey) throws SaSystemException, SaAuthenticationException
getUserSetting
in interface SaClassicConnector
accessKey
- The key to get associated user setting. The key consists of the type of the
setting and a key to identify the setting separated by '|'.PROPERTIES|TheNameOfTheSection
$my_tenant$
, which will be replaced by the current
tenant's ID and $all_tenants$
, which will be replaced by the ID
representing all tenants.SaUserSetting
SaSystemException
- System exceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightspublic void setUserSetting(SaUserSetting setting) throws SaSystemException, SaAuthenticationException
setUserSetting
in interface SaClassicConnector
setting
- the SaUserSetting
object to be storedSaSystemException
- System exceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightspublic Setting getSetting(String name, String section, boolean isLong) throws SaSystemException, SaAuthenticationException
Setting
identified by it's key and section from the database.getSetting
in interface SaClassicConnector
name
- the setting's namesection
- the setting's sectionisLong
- whether this is a setting with a long (>2KB) value or notSaSystemException
- system error when retrieving the settingSaAuthenticationException
- authentication error when retrieving the settingSaClassicConnector.getSetting(java.lang.String, java.lang.String, boolean)
public SettingSearchResult searchSettings(SettingSearchInfo searchInfo) throws SaSystemException, SaAuthenticationException
searchSettings
in interface SaClassicConnector
searchInfo
- SettingSearchInfo
containing information about what to searchSettingSearchResult
SaSystemException
- system error when searchingSaAuthenticationException
- authentication errorSaClassicConnector.searchSettings(com.saperion.settings.SettingSearchInfo)
public void setSetting(Setting setting) throws SaSystemException, SaAuthenticationException
Setting
in the database.setSetting
in interface SaClassicConnector
setting
- the setting to storeSaSystemException
- system error when storing the settingSaAuthenticationException
- authentication error when storing the settingSaClassicConnector.setSetting(com.saperion.settings.Setting)
public boolean deleteSetting(String name, String section, boolean isLong) throws SaSystemException, SaAuthenticationException
deleteSetting
in interface SaClassicConnector
name
- the name of the setting to deletesection
- the section of the setting to deleteisLong
- whether this is a setting with a long (>2KB) value or notSaSystemException
- system exception when deleting the settingSaAuthenticationException
- when the user is not logged in or has insufficient rights when deleting the settingSaClassicConnector.deleteSetting(java.lang.String, java.lang.String, boolean)
public Map<String,String> loadLocalize(String language) throws SaWorkflowException
language
- LangageSaWorkflowException
- Workflow exceptionpublic void setLocale(Locale locale) throws SaAuthenticationException, SaSystemException
setLocale
in interface SaClassicConnector
locale
- Localization informationSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaSystemException
- SaSystemExceptionSaClassicConnector.setLocale(java.util.Locale)
public void addToFolder(String folderTableDDC, String documentId, String documentDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetNodeException
addToFolder
in interface SaClassicConnector
folderTableDDC
- name of the folder table to add documentdocumentId
- SysRowId of the document to add to folderdocumentDDC
- DDC name of the document located infolderId
- destination folder IDSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaSetNodeException
- DDC not fileableSaClassicConnector.addToFolder(java.lang.String,
java.lang.String, java.lang.String, java.lang.String)
public String copyFolder(String folderTableDDC, String folderId, String destinationId, String beforeChild, boolean withDocuments) throws SaSystemException, SaAuthenticationException, SaDDCException
copyFolder
in interface SaClassicConnector
folderTableDDC
- folder table namefolderId
- tolder ID to copydestinationId
- destination folder IDbeforeChild
- ID of the child to insert the folder before or empty for appendwithDocuments
- True, if documents should be copiedSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaClassicConnector.copyFolder(java.lang.String, java.lang.String,
java.lang.String, java.lang.String, boolean)
@Deprecated public String createFolder(String folderTableDDC, String parentId, String beforeChild, String folderName, SaFolderConstants.FOLDER_TYPE folderType, Properties namevaluePairs) throws SaSystemException, SaAuthenticationException, SaDDCException, SaFolderNameException
createFolder(SaFolderSaveInfo, Properties)
insteadcreateFolder
in interface SaClassicConnector
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 propertiesSaSystemException
- Remote exceptionSaFolderNameException
- when the folder name contained an invalid characterSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaClassicConnector.createFolder(java.lang.String,
java.lang.String, java.lang.String, java.lang.String, SaFolderConstants.FOLDER_TYPE,
java.util.Properties)
public String createFolder(SaFolderSaveInfo info, Properties namevaluePairs) throws SaSystemException, SaAuthenticationException, SaDDCException, SaFolderNameException
createFolder
in interface SaClassicConnector
info
- SaFolderSaveInfo
of folder to createnamevaluePairs
- Folder properties (Attention: These properties will replace the property values in
the SaFolderSaveInfo
info above!)SaSystemException
- Remote exceptionSaFolderNameException
- when the folder name contained an invalid characterSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaClassicConnector.createFolder(com.saperion.intf.SaFolderSaveInfo,
java.util.Properties)
public void deleteFolder(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException
deleteFolder
in interface SaClassicConnector
folderTableDDC
- Folder tablefolderId
- Folder ID to deleteSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaClassicConnector.deleteFolder(java.lang.String,
java.lang.String)
public List<SaDocumentInfo> getDocumentFolders(String folderTableDDC, String documentDDC, String sysRowId) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetNodeException
getDocumentFolders
in interface SaClassicConnector
folderTableDDC
- Folder tabledocumentDDC
- Document DDCsysRowId
- Document SysRowIdSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaSetNodeException
- DDC not fileableSaClassicConnector.getDocumentFolders(java.lang.String,
java.lang.String,java.lang.String)
public long getDocumentFolderCount(String folderTableDDC, String documentDDC, String sysRowId) throws SaAuthenticationException, SaSetNodeException, SaSystemException, SaDDCException
getDocumentFolderCount
in interface SaClassicConnector
folderTableDDC
- Folder tabledocumentDDC
- Document DDCsysRowId
- Document SysRowIdSaAuthenticationException
- Authentication errorSaSetNodeException
- DDC not fileableSaSystemException
- Remote exceptionSaDDCException
- Database exceptionSaClassicConnector.getDocumentFolderCount(java.lang.String,
java.lang.String, java.lang.String)
public List<SaDocumentInfo> getFolderChildren(String folderTableDDC, String folderId, int depth, SaQueryInfo filter, int allowedMaxNrOfChildFolders) throws SaSystemException, SaAuthenticationException, SaDBException, SaFolderException
getFolderChildren
in interface SaClassicConnector
folderTableDDC
- Folder tablefolderId
- Folder IDdepth
- Depth to get children for. Needs to be gte 1.filter
- Additional HQL filter criteriaallowedMaxNrOfChildFolders
- allowed maximum number of child folders per level or -1 for no limitSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDBException
- Database exceptionSaFolderException
- Folder exceptionSaClassicConnector.getFolderChildren(java.lang.String,
java.lang.String, int, com.saperion.rmi.SaQueryInfo, int)
@Deprecated public SaDocumentInfo getFolderInfo(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDBException, SaFolderException
getFolderInfo(String, String, boolean)
insteadgetFolderInfo
in interface SaClassicConnector
folderTableDDC
- Folder tablefolderId
- Folder IDSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDBException
- Database exceptionSaFolderException
- Folder exceptionSaClassicConnector.getFolderInfo(java.lang.String,
java.lang.String)
public SaDocumentInfo getFolderInfo(String folderTableDDC, String folderId, boolean forceLoadVariables) throws SaSystemException, SaAuthenticationException, SaDBException, SaFolderException
getFolderInfo
in interface SaClassicConnector
folderTableDDC
- Folder tablefolderId
- Folder IDforceLoadVariables
- if true, variables will be loaded from medium if the DDC does not contain the
SYSPROPERTIES field.SaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDBException
- Database exceptionSaFolderException
- Folder exceptionSaClassicConnector.getFolderInfo(java.lang.String,
java.lang.String, boolean)
public List<SaDocumentInfo> getFolderFromPath(String folderTableDDC, String startNodeId, String folderPath) throws SaSystemException, SaAuthenticationException, SaDBException
SaClassicConnector.getFolderByPath(String, String, String)
to retrieve a single folder.getFolderFromPath
in interface SaClassicConnector
folderTableDDC
- Folder tablestartNodeId
- ID of folder to start with or null/empty if no relative search is requiredfolderPath
- Search pathSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDBException
- Database exceptionSaClassicConnector.getFolderFromPath(java.lang.String,
java.lang.String, java.lang.String)
public SaDocumentInfo getFolderByPath(String folderTableDDC, String startFolderId, String folderPath) throws SaSystemException, SaAuthenticationException, SaDBException
getFolderByPath
in interface SaClassicConnector
folderTableDDC
- Folder tablestartFolderId
- ID of folder to start with or null/empty if no relative search is requiredfolderPath
- Search pathSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDBException
- Database exceptionSaClassicConnector.getFolderByPath(java.lang.String,
java.lang.String, java.lang.String)
public SaDocumentInfo getFolderParent(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDBException
getFolderParent
in interface SaClassicConnector
folderTableDDC
- Folder tablefolderId
- Folder IDSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDBException
- Database exceptionSaClassicConnector.getFolderParent(java.lang.String,
java.lang.String)
public SaDocAccessData getFolderRights(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException
getFolderRights
in interface SaClassicConnector
folderTableDDC
- Folder tablefolderId
- Folder IDSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaClassicConnector.getFolderRights(java.lang.String,
java.lang.String)
public void moveFolder(String folderTableDDC, String folderId, String destinationId, String beforeChild) throws SaSystemException, SaAuthenticationException, SaDDCException
moveFolder
in interface SaClassicConnector
folderTableDDC
- Folder tablefolderId
- Folder IDdestinationId
- Destination folder IDbeforeChild
- Child ID or empty for appendSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaClassicConnector.moveFolder(java.lang.String, java.lang.String,
java.lang.String, java.lang.String)
public void moveToFolder(String folderTableDDC, String documentId, String documentDDC, String folderId, String destinationId) throws SaSystemException, SaAuthenticationException, SaDDCException
moveToFolder
in interface SaClassicConnector
folderTableDDC
- Folder tabledocumentId
- Document SysRowIddocumentDDC
- Document DDC namefolderId
- Source folder IDdestinationId
- Destination folder IDSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaClassicConnector.moveToFolder(java.lang.String,
java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public void removeFromFolder(String folderTableDDC, String documentSysRowId, String documentDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException
removeFromFolder
in interface SaClassicConnector
folderTableDDC
- Folder tabledocumentSysRowId
- Document SysRowIddocumentDDC
- Document DDC namefolderId
- Folder IDSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaClassicConnector.removeFromFolder(java.lang.String,
java.lang.String, java.lang.String, java.lang.String)
public List<SaDocumentInfo> searchFolderDocuments(String folderTableDDC, String folderId, SaQueryInfo hqlFilter) throws SaSystemException, SaAuthenticationException, SaDDCException
searchFolderDocuments
in interface SaClassicConnector
folderTableDDC
- Folder tablefolderId
- Folder IDhqlFilter
- HQL query for document tables. The query text must be only the "where" filter. The
main DDC is defined as "d".SaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaClassicConnector.searchFolderDocuments(java.lang.String,
java.lang.String, com.saperion.rmi.SaQueryInfo)
public void setFolderAcl(String folderTableDDC, String folderId, String aclName) throws SaSystemException, SaAuthenticationException, SaDDCException
setFolderAcl
in interface SaClassicConnector
folderTableDDC
- Folder tablefolderId
- Folder IDaclName
- ACL nameSaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionpublic void updateFolder(String folderTableDDC, String folderId, Properties namevaluePairs) throws SaSystemException, SaAuthenticationException, SaDDCException, SaFolderNameException
updateFolder
in interface SaClassicConnector
folderTableDDC
- name of folder table (DDC)folderId
- id of folder to updatenamevaluePairs
- Folder properties to updateSaSystemException
- Remote exceptionSaFolderNameException
- when the folder name contained an invalid characterSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaFolderConstants.FIELD_SYSNODETYPE
,
SaFolderConstants.FOLDER_TYPE
,
SaClassicConnector.updateFolder(java.lang.String,
java.lang.String, java.util.Properties)
public SaFolderClass getFolderClass(String className) throws SaSystemException, SaAuthenticationException, SaDDCException
getFolderClass
in interface SaClassicConnector
className
- Class name in dotted notationSaSystemException
- Remote exceptionSaAuthenticationException
- authentication errorSaDDCException
- Database exceptionSaClassicConnector.getFolderClass(java.lang.String)
public Set<SaFolderClass> searchFolderClass(SaFolderClassSearchInfo searchInfo) throws SaSystemException, SaAuthenticationException
searchFolderClass
in interface SaClassicConnector
searchInfo
- bean that contains the properties to search forSaSystemException
- Remote exceptionSaAuthenticationException
- authentication errorSaClassicConnector.searchFolderClass(com.saperion.rmi.SaFolderClassSearchInfo)
public List<String> getSystemFiles(SystemFileKind kind, String filter) throws SaAuthenticationException, SaSystemException
getSystemFiles
in interface SaClassicConnector
kind
- the kind of systemfiles to read.filter
- A filter string. Only files will be returned, that match the filter. To get all
systemfiles of a kind set filter to the empty string.SaAuthenticationException
- error on the authentification / insufficient rightsSaSystemException
- general errorSaClassicConnector.getSystemFiles(com.saperion.settings.SystemFileKind,
java.lang.String)
public void logClientEvent(String hdoc, SaConstants.ProtoEvents event, String remark) throws SaSystemException, SaAuthenticationException
logClientEvent
in interface SaClassicConnector
hdoc
- Document HDOCevent
- Event typeremark
- RemarkSaSystemException
- general errorSaAuthenticationException
- error on the authentification / insufficient rightsSaClassicConnector.logClientEvent(java.lang.String,
com.saperion.constants.SaConstants.ProtoEvents, java.lang.String)
public List<SaAcl> getAcls() throws SaSystemException, SaAuthenticationException
getAcls
in interface SaClassicConnector
SaSystemException
- Remote exceptionSaAuthenticationException
- SaAuthenticationExceptionpublic SaACLRights getACLRights(String[] acls) throws SaSystemException, SaAuthenticationException
getACLRights
in interface SaClassicConnector
acls
- array of ACL name to get rights forSaSystemException
- Remote exceptionSaAuthenticationException
- SaAuthenticationExceptionSaClassicConnector.getACLRights(java.lang.String[])
public void storeBpmn(BpmnImportDescription bpmnDescription, BpmnImportCallback callback) throws SaAuthenticationException, SaSystemException
bpmnDescription
- The description of the model to import.callback
- The callback object that is notified when the transformation succeeds or fails.SaAuthenticationException
- authentication errorSaSystemException
- remote exceptionpublic void changePassword(String user, String oldPassword, String client, String newPassword) throws SaSystemException, SaAuthenticationException
changePassword
in interface SaClassicConnector
user
- The name of the existing user.oldPassword
- The old password. This parameter is required, since the password should only be
changed by the user himselfclient
- The client of the actionsnewPassword
- The new passwordSaSystemException
- when a system error occuredSaAuthenticationException
- when the user is not logged in or has insufficient rights
SaClassicConnector.logon(String, String, int, String)
was successfully
invoked.SaClassicConnector.changePassword(String, String, String, String)
public List<UsersRights> getAuthorizedUsers(String hDoc, String rights, MatchKind match) throws SaSystemException, SaAuthenticationException
getAuthorizedUsers
in interface SaClassicConnector
hDoc
- The id of the document.rights
- The rights the requested users should have.match
- How the rights are matched: MKONEOF - find all users that have one of the
specified rights MKEXACT - find all users that have exactly the specified rights
MKATLEAST - find all users that have at least the specified rightsSaSystemException
- when a system error occuredSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaClassicConnector.getAuthorizedUsers(String, String, MatchKind)
public int getArchivedSize(String hDoc) throws SaSystemException, SaAuthenticationException
getArchivedSize
in interface SaClassicConnector
hDoc
- The document id whichs size is wanted.SaSystemException
- when a system error occuredSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaClassicConnector.getArchivedSize(String)
@Deprecated public String createLookupEntry(String ddc, Properties props) throws SaSystemException, SaAuthenticationException, SaDDCException
invoke(Operation)
with a CreateLookupEntry
operation instead.createLookupEntry
in interface SaClassicConnector
ddc
- Lookup DDC nameprops
- Properties for the new entrySaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaClassicConnector.createLookupEntry(java.lang.String,
java.util.Properties)
@Deprecated public void deleteLookupEntry(String ddc, String id) throws SaSystemException, SaAuthenticationException, SaDDCException
invoke(Operation)
with a DeleteLookupEntry
operation instead.deleteLookupEntry
in interface SaClassicConnector
ddc
- Lookup DDC nameid
- SYSROWID of the existing entrySaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaClassicConnector.deleteLookupEntry(java.lang.String,
java.lang.String)
@Deprecated public void updateLookupEntry(String ddc, String id, Properties props) throws SaSystemException, SaAuthenticationException, SaDDCException
invoke(Operation)
with a UpdateLookupEntry
operation instead.updateLookupEntry
in interface SaClassicConnector
ddc
- Lookup DDC nameid
- SYSROWID of the existing entryprops
- Properties for the entrySaSystemException
- Remote exceptionSaAuthenticationException
- Authentication errorSaDDCException
- Database exceptionSaClassicConnector.updateLookupEntry(java.lang.String,
java.lang.String, java.util.Properties)
public void storeSystemFile(SystemFileKind kind, String name, InputStream data) throws SaAuthenticationException, SaSystemException
storeSystemFile
in interface SaClassicConnector
kind
- The kind of systemfile to store.name
- The name of the file.data
- The content of the file to save.SaAuthenticationException
- error on the authentification / insufficient rightsSaSystemException
- general errorSaClassicConnector.storeSystemFile(SystemFileKind, String, InputStream)
public InputStream loadSystemFile(SystemFileKind kind, String name) throws SaAuthenticationException, SaSystemException
loadSystemFile
in interface SaClassicConnector
kind
- The kind of system file to loadname
- The name of the file to load.SaAuthenticationException
- error on the authentification / insufficient rightsSaSystemException
- general errorSaClassicConnector.loadSystemFile(com.saperion.settings.SystemFileKind,
java.lang.String)
public Set<FolderUpdateInfo> getFolderUpdateInfo(Map<String,Long> folderIds) throws SaAuthenticationException, SaSystemException
getFolderUpdateInfo
in interface SaClassicConnector
folderIds
- Map of folderIds (simple, workflow, ..) with the time stamps of the last refresh
to build the cut set of.SaAuthenticationException
- when the user is not logged in or has insufficient rightsSaSystemException
- when a system error occuredSaClassicConnector.getFolderUpdateInfo(java.util.Map)
public SapDocInfo checkSapUrl(String url) throws SaSystemException, SaSapUrlException, SaAuthenticationException
checkSapUrl
in interface SaClassicConnector
url
- SAP URLSaSystemException
- when a system error occuredSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaSapUrlException
SaClassicConnector.checkSapUrl(java.lang.String)
public SaSaveInfo cacheDocument(String xhDoc, DocumentInfo document) throws SaSystemException, SaAuthenticationException, SaDDCException
cacheDocument
in interface SaClassicConnector
xhDoc
- The xhdoc of the Document to cachedocument
- the DocumentInfo
about the document to cacheSaSaveInfo
of the cached documentSaSystemException
- the sa system exceptionSaAuthenticationException
- when the user is not logged in or has insufficient rightsSaDDCException
- the sa ddc exceptionSaClassicConnector.cacheDocument(java.lang.String,
com.saperion.structures.DocumentInfo)
public String resolveLatestHDoc(String oldHdoc) throws SaSystemException, SaAuthenticationException
resolveLatestHDoc
in interface SaClassicConnector
oldHdoc
- the HDOC to identify the documentSaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationExceptionSaClassicConnector.resolveLatestHDoc(java.lang.String)
public SaSaveInfo cacheDocument(String xhDoc, String ddcName, Properties namevaluePairs, InputStream[] content, String versionComment, String strAcl) throws SaSystemException, SaAuthenticationException, SaDDCException
cacheDocument
in interface SaClassicConnector
xhDoc
- The xhdoc of the Document to cacheddcName
- The name of the database definition (DDC)namevaluePairs
- A properties object containing the metadata of the document (e.g index fields and
their values)content
- Multiple content data (an array of InputStream
instances)versionComment
- The comment for the versionstrAcl
- the names of acls (comma sessparated list)SaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationExceptionSaDDCException
- SaDDCExceptionSaClassicConnector.cacheDocument(java.lang.String,
java.lang.String, java.util.Properties, java.io.InputStream[], java.lang.String,
java.lang.String)
public SaUserInfo getCurrentUserInfo() throws SaAuthenticationException, SaSystemException
getCurrentUserInfo
in interface SaClassicConnector
SaAuthenticationException
- If not properly logged inSaSystemException
- SaSystemExceptionSaClassicConnector.getCurrentUserInfo()
public void setCurrentUserPresent(boolean present) throws SaAuthenticationException, SaSystemException
setCurrentUserPresent
in interface SaClassicConnector
present
- whether the current user is presentSaSystemException
- system errorSaAuthenticationException
- authentication errorSaClassicConnector.setCurrentUserPresent(boolean)
public void updateCurrentUserInformation(MutableUserInformation user) throws SaAuthenticationException, SaSystemException
SaClassicConnector
updateCurrentUserInformation
in interface SaClassicConnector
user
- - the information to changeSaAuthenticationException
- authentication errorSaSystemException
- system errorpublic <T extends Serializable> T invoke(Operation<T> operation) throws SaAuthenticationException, SaSystemException
SaClassicConnector
Operation
on the server side.invoke
in interface SaClassicConnector
T
- The return type of the given operationoperation
- The operation to invoke. After invocation calling operation.getResult() will
yield the same as the return of this call.SaAuthenticationException
- When the user is not correctly logged on, this may result from a session time outSaSystemException
- When an error occurred in the operation.public List<Rendition> getRendition(Element element, Options options) throws FormatNotSupportedException, PreconditionFailedException, TimeoutException, RenderingException, SaAuthenticationException, SaSystemException
getRendition
in interface SaClassicConnector
element
- an Element
object that represents an object in the archived document.Rendition
instances.FormatNotSupportedException
- if the input or output format is not supportedPreconditionFailedException
- if parts of the options are missingTimeoutException
- if a timeout was specified and it was reachedRenderingException
- if engine is not available or internal initialization failuresSaAuthenticationException
- If not properly logged inSaSystemException
SaClassicConnector.getRendition(com.saperion.connector.structures.Element,
com.saperion.connector.options.Options)
public void sendBarcode(String indexMask, String docUid, String contentRep, String sid, String docType, String value, int mandant) throws SaBarcodeException
sendBarcode
in interface SaClassicConnector
indexMask
- Index mask namedocUid
- Document UIDcontentRep
- SAP Content repositorysid
- SAP IDdocType
- Document typevalue
- Valuemandant
- Mandant nameSaBarcodeException
- BarcodeExceptionSaClassicConnector.sendBarcode(java.lang.String,
java.lang.String, java.lang.String, java.lang.String, java.lang.String,
java.lang.String, int)
public int getToken()
public com.saperion.connector.authentication.Session getSession() throws SaAuthenticationException
SaAuthenticationException
will be thrown;SaAuthenticationException
- if no successful login was donepublic List<SaRMIServerInfo> getServerInfos() throws SaAuthenticationException, SaSystemException
SaAuthenticationException
- user is not logged inSaSystemException
- system exceptionpublic int getLicenseCount(int type) throws SaSystemException
getLicenseCount
in interface SaClassicConnector
type
- Client typeSaSystemException
- Error on the saperion systemSaClassicConnector.getLicenseCount(int)
public boolean setUsedLicense(int type, int count) throws SaSystemException
setUsedLicense
in interface SaClassicConnector
type
- Client typecount
- Number of licensesSaSystemException
- Error on the saperion systemSaClassicConnector.setUsedLicense(int, int)
public boolean hasRenderEngine()
hasRenderEngine
in interface SaClassicConnector
true
, otherwise false
SaClassicConnector.hasRenderEngine()
public Set<SourceFormat> getSupportedRenderSourceFormats()
getSupportedRenderSourceFormats
in interface SaClassicConnector
SaClassicConnector.getSupportedRenderSourceFormats()
public Set<TargetFormat> getSupportedRenderTargetFormats()
getSupportedRenderTargetFormats
in interface SaClassicConnector
SaClassicConnector.getSupportedRenderTargetFormats()
public void setEventsEnabled(boolean enabled) throws SaSystemException, SaAuthenticationException
SaClassicConnector
setEventsEnabled
in interface SaClassicConnector
enabled
- true, to enable events, otherwise false.SaSystemException
- system errorSaAuthenticationException
- authentication errorpublic boolean getEventsEnabled() throws SaSystemException, SaAuthenticationException
SaClassicConnector
getEventsEnabled
in interface SaClassicConnector
SaSystemException
- system errorSaAuthenticationException
- authentication errorpublic DDC getDDC(String ddcName) throws SaSystemException, SaAuthenticationException
SaClassicConnector
getDDC
in interface SaClassicConnector
ddcName
- name of the DDCDDC
.SaSystemException
- system error when retrieving information about the DDCSaAuthenticationException
- not logged inCopyright © 2016 SAPERION AG. All rights reserved.