public interface SaRMIClientCommand
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(String comment,
String taskUID,
int level) |
void |
addHistory(String description,
String taskUID) |
void |
addToFolder(String folderTableDDC,
String documentId,
String documentDDC,
String folderId)
Adds the document to a given folder.
|
SaSaveInfo |
cacheDocument(boolean isNew,
int commitMode,
String versionComment,
String xhDoc,
String ddcName,
String acls)
Stores the actual document to the backend.
|
void |
changePassword(String user,
String oldPassword,
String client,
String newPassword)
Changes the password of an existing user.
|
void |
checkoutDocument(String hDoc)
Checkout the given document.
|
SapDocInfo |
checkSapUrl(String url)
Checks the given SAP URL on the R/Link server and returns, if successfull, the HDOC and the
DDC.
|
void |
clearContent()
Clears all content of the opened document.
|
void |
closeDocument(com.saperion.jni.SaJNIDocHandle handle)
Manually closing of a open document.
|
String |
copyFolder(String folderTableDDC,
String folderId,
String destinationId,
String beforeChild,
boolean withDocuments)
Copies the given node and all it’s children to the destination.
|
SaSaveInfo |
createDocument(String ddcName,
List<SaPropertyValue> values)
Creates a new document with the given parameters.
|
String |
createFolder(SaFolderSaveInfo info)
Creates a new node below a given node.
|
SaSaveInfo |
createLink(LinkInfo link)
Creates a SAPERION Link into one Archive for an existing Document.
|
String |
createLookupEntry(String ddc,
Properties props)
Deprecated.
|
SaSaveInfo |
deleteDocument(int mode,
String hdoc)
Delete a document.
|
void |
deleteFolder(String folderTableDDC,
String folderId)
Deletes a given node.
|
void |
deleteLookupEntry(String ddc,
String id)
Deprecated.
|
boolean |
deleteSetting(String name,
String section,
boolean isLong)
Deletes a setting in the database.
|
void |
discardDocument()
Discards the document identified by the tokens handle.
|
void |
dsicardCheckout(String hDoc)
Discards the checkout of the given document.
|
String |
executeCommand(ContextInfo contextInfo)
Performs the given command.
|
void |
finishSQLTransaction(boolean commit,
String ddcName)
Finish SQL transaction.
|
void |
finishTransaction(boolean commit)
Finish the transaction in the backend system.
|
String |
getACLNames(String hDoc)
Reads the ACL's for the given document.
|
SaACLRights |
getACLRights(String[] acls)
Reads the rights for the given acl's.
|
List<SaAcl> |
getAcls()
Reads all existing ACLs.
|
List<String> |
getAllACLs()
Deprecated.
|
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 archive.
|
List<UsersRights> |
getAuthorizedUsers(String hDoc,
String rights,
MatchKind match)
Returns the users, that have specific rights on a document.
|
BoxCount |
getBoxCount(int boxId,
BoxCountType type,
Map<String,Object> parameters)
Returns the number of all elements and of all unread elements of the inbox identified by the given id.
|
List<BoxDefinition> |
getBoxDefinitions()
Reads the box definitions.
|
Collection<CommandInfo> |
getCommandInfos(String taskUID)
Reads all possible transitions for this task.
|
Collection<CommandInfo> |
getCommandInfos(String taskUID,
boolean transitionsOnly)
Reads all possible transitions and optional other possible commands for this task.
|
List<CommentInfo> |
getCommentInfos(String taskUID)
Reads the comments for the given task.
|
int |
getCommitMode() |
List<List<HistoryInfo>> |
getCompleteHistoryInfos(String docUID)
Reads the history for the given task.
|
DDC |
getDDC(String ddcName)
Returns information about the specified DDC.
|
int |
getDeleteMode() |
long |
getDocumentFolderCount(String folderTableDDC,
String documentDDC,
String sysRowId)
Returns the total count over all folders from all users in which the specified document is
countained in.
|
List<SaDocumentInfo> |
getDocumentFolders(String folderTableDDC,
String documentDDC,
String sysRowId)
Returns a list of folder properties which contains all nodes the document is contained in.
|
boolean |
getEventsEnabled()
Returns whether events (e.g.
|
SaFeature |
getFeatures()
Read the features.
|
SaFieldDescription[] |
getFieldDescriptions(String ddcName)
Reads the field descriptions for a given DDC.
|
SaFieldDescription[] |
getFieldDescriptions(String ddcName,
String mandant)
Reads the field descriptions for a given DDC.
|
List<SaDocumentInfo> |
getFolderChildren(String folderTableDDC,
String folderId,
int depth,
SaQueryInfo filter,
int allowedMaxNrOfChildFolders)
Returns a cursor with the children of the given node.
|
SaFolderClass |
getFolderClass(String className)
Reads the folder class with the given name.
|
List<SaDocumentInfo> |
getFolderFromPath(String folderTableDDC,
String startNodeId,
String folderPath,
boolean exact)
Returns the node(s) which match to the given path.
|
SaDocumentInfo |
getFolderInfo(String folderTableDDC,
String folderId,
boolean forceLoadVariables)
Reads the folder info object for the given folder.
|
SaDocumentInfo |
getFolderParent(String folderTableDDC,
String folderId)
Returns the parent of the given node.
|
SaDocAccessData |
getFolderRights(String folderTableDDC,
String folderId)
Returns the rights mask for the given folder and user.
|
Set<FolderUpdateInfo> |
getFolderUpdateInfo(Map<String,Long> folderIds)
Get the Set of folders that shall be refreshed.
|
String |
getFulltext(String ddcName,
String sysRowId,
String hdoc,
String fieldName,
long length)
Reads the fulltext information for the given document with the given SYSROWID in the given
DDC.
|
Set<Map.Entry<String,String>> |
getFullTextFields(String ddcName,
List<String> fullTextFields,
String hdoc)
Fetches values of Full text columns
|
String |
getHDocForSysRowId(String sysRowId,
String ddcName)
Searchs the HDOC for the given SysRowId.
|
List<HistoryInfo> |
getHistoryInfos(String taskUID)
Reads the history for the given task.
|
List<String> |
getIdsFromQuery(String query)
Executes a HQL query and returns the results as a string list.
|
List<String> |
getInvolvedUsers(String hDoc)
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)
Gets the lock info for a given node.
|
List<String> |
getLocks(String ddcName)
Reads all locks from the given DDC.
|
List<String> |
getLocks(String ddcName,
String mandant)
Reads all locks from the given DDC.
|
String |
getMandant() |
WorkflowMember |
getMember(WorkflowMember member,
int depth,
String filter)
Reads the member.
|
WorkflowMember |
getMembers()
Reads the member.
|
com.saperion.jni.SaJNIDocAccessData |
getNodeAccessData(String hdoc)
Opens the document identified by hdoc and returns an object containing all access right data
information for the session user.
|
boolean |
getOutOfOffice()
Get the out of office status for the logged on user.
|
TaskInfo |
getParentTask(String taskID)
Reads the parent task info for the given ID.
|
String |
getRealDBName(String ddcName,
String field,
String mandant)
returns the real database table name for a given DDC.
|
String |
getRMIVersion()
Get the RMI interface version from java core server.
|
List<SaRMIServerInfo> |
getServerInfos()
Returns a list of objects describing the servers this connector is connected to.
|
com.saperion.connector.authentication.Session |
getSession() |
Setting |
getSetting(String name,
String section,
boolean isLong)
Retrieves a setting from the database.
|
List<SaDocumentInfo> |
getStringQueryResult(SaQueryInfo queryInfo)
Executes a given HQL string and returns the results as list.
|
String |
getSubstitute()
Get the substitute for the logged on user.
|
SaRMISystemConnector |
getSystemConnector() |
List<String> |
getSystemFiles(SystemFileKind kind,
String filter)
Gets the system files of a specific kind.
|
SaSystemInfo |
getSystemInfo()
Reads system info.
|
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 audit for this user.
|
List<TaskInfo> |
getTaskList(int[] ids,
String filter,
Map<String,Object> parameter)
Reads the task for this user.
|
byte[] |
getThumbnail(String hDoc,
int widthX,
int widthY,
boolean color)
Reads the thumbnail of the given document.
|
int |
getToken() |
int[] |
getUserIdsForQuery()
Read the userids.
|
List<String> |
getUsers(String filter)
Reads a list of filtered users.
|
SaUserSetting |
getUserSetting(String accessKey)
Retrieves a user setting object.
|
List<String> |
getVersionList(String ddcName,
String sysrowID)
Reads the versionlist for the given document.
|
List<String> |
getWorkflowDefinitions()
Reads all available workflow definitions.
|
<T extends Serializable> |
invoke(com.lexmark.saperion.remote.common.operations.Operation<T,SaBasicException,LegacyConnection> operation)
This method invokes a
Operation on the backend. |
boolean |
isAlive()
Test the lifetime of this token.
|
boolean |
isRevisionEnabled(int mandant,
String ddcName)
Gets the information whether the provided ddc table contains the fields required for
revisions.
|
String[] |
loadDDCNames()
Retrieves the available DDC names.
|
String[] |
loadFolderDDCNames()
Retrieves the available folder DDC names.
|
Properties |
loadSettings(String section)
Load settings from backend.
|
InputStream |
loadSystemFile(SystemFileKind kind,
String name)
Loads a system file of a specific kind.
|
String |
loadWorkflowDDCName()
Retrieves the workflow DDC name.
|
boolean |
lockNode(String sysRowId,
String ddcName,
int lockType,
boolean sessionScoped)
Locks a node.
|
void |
logClientEvent(String hdoc,
SaConstants.ProtoEvents event,
String remark)
Adds an audit log event.
|
boolean |
logoff()
Log off the user from the server instance.
|
com.saperion.connector.authentication.Session |
logon(com.lexmark.saperion.remote.common.authentication.Credentials credentials)
Logon with the passed credentials.
|
void |
moveFolder(String folderTableDDC,
String folderId,
String destinationId,
String beforeChild)
Moves the given node to a new destination.
|
void |
moveToFolder(String folderTableDDC,
String documentId,
String documentDDC,
String folderId,
String destinationId)
Moves the document’s filing to the given node.
|
com.saperion.jni.SaJNIReadBuffer |
readDocumentFirst(String hdoc,
boolean currentRevision,
int element)
Opens an existing document with the given hdoc and returns a document handle for the
specified element (= sub-document) as well as the buffer containing the content data of the
element.
|
SaPropertyValue[] |
readDocumentMetadata(String sysRowId,
String ddcName,
String[] fields)
Reads the meta data of the document with the given ID.
|
com.saperion.jni.SaJNIReadBuffer |
readDocumentNext(com.saperion.jni.SaJNIDocHandle handle)
Reads the next bytes from the open document, described in the handle.
|
SaVersionData |
readVersionMetadata(String versionID)
Reads the version meta data of the document with the given ID.
|
SaVersionData |
readVersionMetadata(String versionID,
boolean resolveLinks)
Reads the version meta data of the document with the given ID.
|
void |
releaseDocument(String hDoc,
String comment)
Release the given document.
|
void |
removeElement(int element)
Removes a existing content element.
|
void |
removeElement(Integer[] elements)
Removes a series of existing content elements.
|
void |
removeFromFolder(String folderTableDDC,
String documentSysRowId,
String documentDDC,
String folderId)
Remove the document filing from the given node.
|
String |
resolveLatestHdoc(String oldHdoc)
Resolves the hdoc of the latest version of the document identified by the given hdoc.
|
SaSaveInfo |
restoreVersion(String versionID)
Restores the given version to the actual version.
|
SaSaveInfo |
saveDocument(String nodeHdoc,
String ddcName,
List<SaPropertyValue> values)
Saves the document paramaters to the document.
|
SaSaveInfo |
saveDocument(String nodeHdoc,
String ddcName,
List<SaPropertyValue> values,
boolean resolveLinks)
Saves the document paramaters to the document.
|
Set<SaFolderClass> |
searchFolderClass(SaFolderClassSearchInfo searchInfo)
Searches for folder classes with the specified properties.
|
List<SaDocumentInfo> |
searchFolderDocuments(String folderTableDDC,
String folderId,
SaQueryInfo hqlFilter)
HQL search extended with additional folder informations and depth.
|
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 hDoc,
String acl,
int commitMode,
String versionComment)
Sets the given ACL to the node.
|
void |
setAnnotations(String hDoc,
int indexOfContentElement,
String annotations)
Sets the given annotations to the document.
|
void |
setElementMark(int element)
Mark the content element.
|
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 local)
Set the locale for localization.
|
void |
setOutOfOffice(boolean isOutOfOffice)
Set the out of office status for the logged on user.
|
void |
setSetting(Setting setting)
Persists 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 setting object.
|
void |
setVariables(int element,
Map<String,String> variables)
Method to set the Variables for an Content-Object or the Structure itself.
|
void |
startSQLTransaction(String ddcName)
Start SQL transaction.
|
void |
startTransaction()
Starts a transaction in the backend system.
|
void |
storeBpmn(com.saperion.osgi.server.plugin.workflow.converter.BpmnImportDescription bpmnDescription,
com.saperion.osgi.server.plugin.workflow.converter.BpmnImportCallback callback)
Transforms the bpmn model to a saperion process and stores it to the system.
|
SaSaveInfo |
storeDocument(boolean isNew,
int commitMode,
String versionComment,
String ddcName,
String acls)
Stores the actual document to the backend.
|
SaSaveInfo |
storeDocument(boolean isNew,
int commitMode,
String versionComment,
String ddcName,
String acls,
boolean checkin)
Stores the actual document to the backend.
|
void |
storeSystemFile(SystemFileKind kind,
String name,
InputStream data)
Stores a system file of a specific kind.
|
boolean |
unlockNode(String sysRowId,
String ddcName)
Unlocks a node.
|
void |
updateFolder(String folderTableDDC,
String folderId,
List<SaPropertyValue> values)
Updates a given node with the given properties.
|
void |
updateLookupEntry(String ddc,
String id,
Properties props)
Deprecated.
|
long |
writeContent(ContentStream contentStream)
Writes the content of the document.
|
long |
writeContent(InputStream stream)
Writes the content of the document.
|
long |
writeContent(InputStream stream,
String fileName,
int element) |
long |
writeContent(InputStream stream,
String fileName,
int element,
boolean doStreaming)
Writes the content of the document.
If the document size is less than SaConstants.JNI_BUFFER_SIZE than the default buffer size will be reduced and only one JNI call is initiated. |
com.saperion.connector.authentication.Session logon(com.lexmark.saperion.remote.common.authentication.Credentials credentials)
throws SaSystemException,
SaAuthenticationException
credentials - credentials which should be used for logonSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionboolean logoff()
throws SaSystemException,
SaAuthenticationException
SaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaRMICommandExceptionint getLicenseCount(int type)
throws SaSystemException
type - Client typeSaSystemException - Error on the saperion systemboolean setUsedLicense(int type,
int count)
throws SaSystemException
type - Client typecount - Number of licensesSaSystemException - Error on the saperion systemvoid setLocale(Locale local) throws SaSystemException, SaAuthenticationException
local - LocaleSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaRMICommandExceptionWorkflowMember getMembers() throws SaSystemException, SaAuthenticationException
SaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaRMICommandExceptionWorkflowMember getMember(WorkflowMember member, int depth, String filter) throws SaSystemException, SaAuthenticationException
member - workflow member, which direct children have to be returned.depth - depth of the returned children.filter - filter for search, only matching members will be found, leave empty to get all
members.SaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaRMICommandExceptionString getMandant()
int[] getUserIdsForQuery()
throws SaSystemException
SaSystemException - SaRMICommandExceptionString[] loadDDCNames() throws SaSystemException, SaAuthenticationException
SaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionString[] loadFolderDDCNames() throws SaSystemException, SaAuthenticationException
SaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionString loadWorkflowDDCName() throws SaSystemException
SaSystemException - SaRMICommandExceptionSaSystemSetting getSystemSetting(String accessKey) throws SaSystemException
accessKey - key to get associated system settingSaSystemSettingSaSystemException - System exceptionSaSystemInfo getSystemInfo() throws SaSystemException
SaSystemException - System exceptionSaFeature getFeatures() throws SaSystemException
SaSystemException - System exceptionSaUserSetting getUserSetting(String accessKey) throws SaSystemException, SaAuthenticationException
accessKey - key to get associated user settingSaUserSettingSaSystemException - System exceptionSaAuthenticationException - authentication exceptionvoid setUserSetting(SaUserSetting setting) throws SaSystemException, SaAuthenticationException
setting - the SaUserSetting object to be storedSaSystemException - System exceptionSaAuthenticationException - authentication exceptionSetting getSetting(String name, String section, boolean isLong) throws SaSystemException, SaAuthenticationException
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 errorSettingSearchResult searchSettings(SettingSearchInfo searchInfo) throws SaSystemException, SaAuthenticationException
searchInfo - SettingSearchInfo containing information about what to searchSettingSearchResultSaSystemException - system error when searchingSaAuthenticationException - authentication errorvoid setSetting(Setting setting) throws SaSystemException, SaAuthenticationException
setting - the setting to persistSaSystemException - system error when persisting the settingSaAuthenticationException - authenticatin error when persisting the settingboolean deleteSetting(String name, String section, boolean isLong) throws SaSystemException, SaAuthenticationException
name - the name of the setting to deletesection - the section of the setting to deleteisLong - whether this is a setting with a long (>2KB) value or notSaSystemException - system error when deleting the settingSaAuthenticationException - authentication error when deleting the settingSaFieldDescription[] getFieldDescriptions(String ddcName) throws SaSystemException, SaAuthenticationException, SaDDCException
ddcName - DDC nameSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionString getRealDBName(String ddcName, String field, String mandant) throws SaSystemException
ddcName - DDC namefield - field namemandant - MandantSaSystemException - SaRMICommandExceptionSaFieldDescription[] getFieldDescriptions(String ddcName, String mandant) throws SaSystemException
ddcName - DDC namemandant - MandantSaSystemException - SaRMICommandExceptionDDC getDDC(String ddcName) throws SaSystemException, SaAuthenticationException
ddcName - the name of the DDCSaSystemException - system error when retrieving information about requested DDCSaAuthenticationException - authentication exception when retrieving information about requested DDCboolean isRevisionEnabled(int mandant,
String ddcName)
throws SaSystemException,
SaAuthenticationException
mandant - mandant numberddcName - table/jcr workspace nameSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaPropertyValue[] readDocumentMetadata(String sysRowId, String ddcName, String[] fields) throws SaSystemException, SaAuthenticationException, SaGetNodeException
sysRowId - The ID of the document (SYSROWID)ddcName - The name of the database definitionfields - Field names to be read. If empty or null, all fields will be read.SaPropertyValue
instances.SaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaGetNodeException - SaGetNodeExceptionString getFulltext(String ddcName, String sysRowId, String hdoc, String fieldName, long length) throws SaSystemException, SaAuthenticationException
ddcName - DDC name of the documentsysRowId - SYSROWID of the document. Can be null if hdoc is set. If both hdoc and sysRowId are set,
hdoc will be used.hdoc - HDOC of the document. Can be null if sysRowId is set. If both hdoc and sysRowId are set,
hdoc will be used.fieldName - name of the fulltext field to retrieve content from. If not set,
the first fulltext field of the DDC will be usedlength - maximum length of content to retrieve. If -1, the complete content will
be returned.SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionbyte[] getThumbnail(String hDoc, int widthX, int widthY, boolean color) throws SaSystemException, SaAuthenticationException
hDoc - HDoc for the document.widthX - Width XwidthY - Width Ycolor - True for coloredSaSystemException - System exceptionSaAuthenticationException - SaAuthenticationExceptionList<String> getIdsFromQuery(String query) throws SaSystemException, SaAuthenticationException
query - HQL querySaSystemException - Error on the saperion systemSaAuthenticationException - SaAuthenticationExceptionList<SaDocumentInfo> getStringQueryResult(SaQueryInfo queryInfo) throws SaSystemException, SaAuthenticationException, SaDBException
queryInfo - HQL query infoSaSystemException - Error on the saperion systemSaAuthenticationException - SaAuthenticationExceptionSaDBException - query execution exceptionList<String> getVersionList(String ddcName, String sysrowID) throws SaSystemException, SaAuthenticationException
ddcName - DDC namesysrowID - SYSROWIDSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionString getHDocForSysRowId(String sysRowId, String ddcName) throws SaSystemException, SaAuthenticationException, SaDDCException
sysRowId - SysRowIdddcName - DDC nameSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionboolean isAlive()
throws SaSystemException
SaSystemException - System exceptionList<TaskInfo> getTaskList(int[] ids, String filter, Map<String,Object> parameter) throws SaAuthenticationException, SaSystemException
ids - Array of ID'sfilter - HQL filterparameter - Filter parameterSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionList<TaskAuditInfo> getTaskAuditList(int[] ids, String filter, Map<String,Object> parameter) throws SaAuthenticationException, SaSystemException
ids - Array of ID'sfilter - HQL filterparameter - Filter parameterTaskAuditInfo objectsSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionTaskInfo getTask(String taskID) throws SaAuthenticationException, SaSystemException
taskID - Task SysRowIdSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionTaskInfo getParentTask(String taskID) throws SaAuthenticationException, SaSystemException
taskID - Task SysRowIdSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionCollection<CommandInfo> getCommandInfos(String taskUID) throws SaAuthenticationException, SaSystemException
taskUID - Task UIDSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionCollection<CommandInfo> getCommandInfos(String taskUID, boolean transitionsOnly) throws SaAuthenticationException, SaSystemException
taskUID - Task UIDtransitionsOnly - if true, only transition commands will be returnedSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionList<BoxDefinition> getBoxDefinitions() throws SaAuthenticationException, SaSystemException
SaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionBoxCount getBoxCount(int boxId, BoxCountType type, Map<String,Object> parameters) throws SaAuthenticationException, SaSystemException
boxId - the workflow box idtype - type of tasks to search forparameters - parameters needed for searchingSaAuthenticationException - if an error occurs.SaSystemException - if an error occurs.String executeCommand(ContextInfo contextInfo) throws SaAuthenticationException, SaSystemException, SaWorkflowException
contextInfo - Context infoSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWorkflowException - Workflow exceptionList<CommentInfo> getCommentInfos(String taskUID) throws SaAuthenticationException, SaSystemException, SaWorkflowException
taskUID - Task UIDSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWorkflowException - Workflow exceptionList<HistoryInfo> getHistoryInfos(String taskUID) throws SaAuthenticationException, SaSystemException, SaWorkflowException
taskUID - Task UIDSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWorkflowException - Workflow exceptionList<List<HistoryInfo>> getCompleteHistoryInfos(String docUID) throws SaAuthenticationException, SaSystemException, SaWorkflowException
docUID - Document UIDSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWorkflowException - Workflow exceptionList<String> getWorkflowDefinitions() throws SaAuthenticationException, SaSystemException, SaWorkflowException
SaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWorkflowException - Workflow exceptionvoid addComment(String comment, String taskUID, int level) throws SaAuthenticationException, SaSystemException, SaWorkflowException
comment - CommenttaskUID - Task UIDlevel - LevelSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWorkflowException - Workflow exceptionvoid addHistory(String description, String taskUID) throws SaAuthenticationException, SaSystemException, SaWorkflowException
description - CommenttaskUID - Task UIDSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWorkflowException - Workflow exceptionString getSubstitute() throws SaAuthenticationException, SaSystemException
SaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionvoid setSubstitute(String name) throws SaAuthenticationException, SaSystemException
name - Substitute nameSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionboolean getOutOfOffice()
throws SaAuthenticationException,
SaSystemException
SaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionvoid setOutOfOffice(boolean isOutOfOffice)
throws SaAuthenticationException,
SaSystemException
isOutOfOffice - True, if is OutOfOfficeSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionList<String> getUsers(String filter) throws SaAuthenticationException, SaSystemException
filter - FilterSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionProperties loadSettings(String section) throws SaSystemException
section - SectionSaSystemException - Exceptionint getToken()
com.saperion.connector.authentication.Session getSession()
SaRMISystemConnector getSystemConnector()
int getCommitMode()
int getDeleteMode()
long writeContent(InputStream stream, String fileName, int element, boolean doStreaming) throws SaSystemException, SaAuthenticationException, SaConnectException
stream - content streamfileName - the file nameelement - doStreaming - set to true, if streaming option for the inputstream content should be activated.SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaConnectException - SaConnectExceptionlong writeContent(InputStream stream, String fileName, int element) throws SaSystemException, SaAuthenticationException, SaConnectException
long writeContent(InputStream stream) throws SaSystemException, SaAuthenticationException, SaConnectException
stream - content streamSaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaConnectException - SaConnectExceptionlong writeContent(ContentStream contentStream) throws SaSystemException, SaAuthenticationException, SaConnectException, StreamVerificationException
contentStream - content streamSaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaConnectException - SaConnectExceptionStreamVerificationException - if the content stream validation is enabled and the validation failed.void closeDocument(com.saperion.jni.SaJNIDocHandle handle)
throws SaSystemException,
SaAuthenticationException,
SaGetNodeException
handle - Document handle for a document, opend by readDocumentFirstSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaRMICommandExceptionSaGetNodeException - SaGetNodeExceptionSaSaveInfo deleteDocument(int mode, String hdoc) throws SaSystemException, SaAuthenticationException, SaGetNodeException, SaDDCException
mode - Delete mode may be set to the following values:
hdoc - Document HDOCSaSystemException - Error on the saperion systemSaAuthenticationException - SaAuthenticationExceptionSaGetNodeException - SaGetNodeExceptionSaDDCException - SaDDCExceptioncom.saperion.jni.SaJNIReadBuffer readDocumentFirst(String hdoc, boolean currentRevision, int element) throws SaSystemException, SaAuthenticationException, SaGetNodeException
hdoc - Document HDOCcurrentRevision - flag indicating that the current revision of the document should be retrieved by
resolving hdocelement - Element number, starting with 1SaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaGetNodeException - SaGetNodeExceptioncom.saperion.jni.SaJNIReadBuffer readDocumentNext(com.saperion.jni.SaJNIDocHandle handle)
throws SaSystemException,
SaAuthenticationException,
SaSetNodeException,
SaGetNodeException,
SaConnectException
handle - Document handle for a document, opend by readDocumentFirstSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaSetNodeException - SaSetNodeExceptionSaGetNodeException - SaGetNodeExceptionSaConnectException - SaConnectExceptionSaVersionData readVersionMetadata(String versionID) throws SaSystemException, SaAuthenticationException, SaDDCException, SaGetNodeException
versionID - Version HDOCSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionSaGetNodeException - SaGetNodeExceptionSaVersionData readVersionMetadata(String versionID, boolean resolveLinks) throws SaSystemException, SaAuthenticationException, SaDDCException, SaGetNodeException
versionID - Version HDOCresolveLinks - If false will not resolve the link and show the metadata associated with the link itself.SaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionSaGetNodeException - SaGetNodeExceptionSaSaveInfo createDocument(String ddcName, List<SaPropertyValue> values) throws SaSystemException, SaAuthenticationException, SaDDCException, SaGetNodeException
ddcName - Node database table namevalues - List of all valuesSaDDCException - Error on the saperion systemSaAuthenticationException - Error on the saperion systemSaSystemException - Error on the saperion systemSaGetNodeException - SaGetNodeExceptionvoid discardDocument()
throws SaSystemException
SaSystemExceptionSaSaveInfo cacheDocument(boolean isNew, int commitMode, String versionComment, String xhDoc, String ddcName, String acls) throws SaSystemException, SaAuthenticationException, SaGetNodeException, SaSetNodeException, SaDDCException
isNew - Is a new documentcommitMode - Commit modeversionComment - Version comment stringxhDoc - the xh docddcName - DDC nameacls - ACL name stringSaSystemException - the system error exceptionSaAuthenticationException - the authentication error exceptionSaGetNodeException - the get node error exceptionSaSetNodeException - the set node error exceptionSaDDCException - the ddc error exceptionSaSaveInfo createLink(LinkInfo link) throws SaSystemException, SaAuthenticationException, SaDDCException, SaGetNodeException
link - Link for the existing DocumentSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaGetNodeException - SaGetNodeExceptionSaDDCException - SaDDCExceptionSaSaveInfo saveDocument(String nodeHdoc, String ddcName, List<SaPropertyValue> values) throws SaSystemException, SaAuthenticationException, SaGetNodeException, SaDDCException
nodeHdoc - Node HDOCddcName - Database table namevalues - List of all valuesSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaGetNodeException - SaGetNodeExceptionSaDDCException - SaDDCExceptionSaSaveInfo saveDocument(String nodeHdoc, String ddcName, List<SaPropertyValue> values, boolean resolveLinks) throws SaSystemException, SaAuthenticationException, SaGetNodeException, SaDDCException
nodeHdoc - Node HDOCddcName - Database table namevalues - List of all valuesresolveLinks - Resolve linksSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaGetNodeException - SaGetNodeExceptionSaDDCException - SaDDCExceptionSaSaveInfo storeDocument(boolean isNew, int commitMode, String versionComment, String ddcName, String acls) throws SaSystemException, SaAuthenticationException, SaGetNodeException, SaSetNodeException, SaDDCException
isNew - Is a new documentcommitMode - Commit modeversionComment - Version comment stringddcName - DDC nameacls - ACL name stringSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaGetNodeException - SaGetNodeExceptionSaSetNodeException - SaSetNodeExceptionSaDDCException - SaDDCExceptionSaSaveInfo storeDocument(boolean isNew, int commitMode, String versionComment, String ddcName, String acls, boolean checkin) throws SaSystemException, SaAuthenticationException, SaGetNodeException, SaSetNodeException, SaDDCException
isNew - Is a new documentcommitMode - Commit modeversionComment - Version comment stringddcName - DDC nameacls - ACL name string (semicolon separated)checkin - Checkin documentSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaGetNodeException - SaGetNodeExceptionSaSetNodeException - SaSetNodeExceptionSaDDCException - SaDDCExceptionvoid checkoutDocument(String hDoc) throws SaSystemException, SaAuthenticationException, SaGetNodeException
hDoc - Document HDOCSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaGetNodeException - SaGetNodeExceptionvoid dsicardCheckout(String hDoc) throws SaSystemException, SaAuthenticationException, SaGetNodeException
hDoc - Document HDOCSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaGetNodeException - SaGetNodeExceptionvoid releaseDocument(String hDoc, String comment) throws SaSystemException, SaAuthenticationException, SaGetNodeException
hDoc - Document HDOCcomment - the revision commentSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaGetNodeException - SaGetNodeExceptionSaSaveInfo restoreVersion(String versionID) throws SaSystemException, SaAuthenticationException, SaDDCException, SaGetNodeException
versionID - Version HDOCSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionSaGetNodeException - SaGetNodeExceptionvoid clearContent()
throws SaSystemException,
SaAuthenticationException,
SaGetNodeException,
SaSetContentException,
SaConnectException
SaSystemException - Error on the saperion systemSaSetContentException - SaSetContentExceptionSaGetNodeException - SaGetNodeExceptionSaAuthenticationException - SaAuthenticationExceptionSaConnectException - SaConnectExceptionvoid setElementMark(int element)
throws SaSystemException,
SaAuthenticationException,
SaConnectException
element - Element number to markSaSystemException - Error on the saperion systemSaAuthenticationException - SaAuthenticationExceptionSaConnectException - SaConnectExceptionvoid removeElement(int element)
throws SaSystemException,
SaAuthenticationException,
SaGetNodeException,
SaSetContentException,
SaConnectException
element - Element numberSaSystemException - Error on the saperion systemSaSetContentException - SaSetContentExceptionSaGetNodeException - SaGetNodeExceptionSaAuthenticationException - SaAuthenticationExceptionSaConnectException - SaConnectExceptionvoid removeElement(Integer[] elements) throws SaSystemException, SaAuthenticationException, SaGetNodeException, SaSetContentException, SaConnectException
elements - Array of element numberSaSystemException - Error on the saperion systemSaSetContentException - SaSetContentExceptionSaGetNodeException - SaGetNodeExceptionSaAuthenticationException - SaAuthenticationExceptionSaConnectException - SaConnectExceptionSaLockInfo getLockInfo(String sysRowId) throws SaSystemException, SaAuthenticationException, SaLockException, SaGetNodeException
sysRowId - SysRowIdSaLockException - Error on the saperion systemSaAuthenticationException - Error on the saperion systemSaSystemException - Error on the saperion systemSaGetNodeException - SaGetNodeExceptionboolean lockNode(String sysRowId, String ddcName, int lockType, boolean sessionScoped) throws SaSystemException, SaAuthenticationException, SaLockException, SaGetNodeException, SaPropertyException
sysRowId - SysRowIdddcName - DDC namelockType - locking mode can be one of the following constants: sessionScoped - True, if session scopedSaLockException - Error on the saperion systemSaAuthenticationException - Error on the saperion systemSaSystemException - Error on the saperion systemSaGetNodeException - SaGetNodeExceptionSaPropertyException - SaPropertyExceptionboolean unlockNode(String sysRowId, String ddcName) throws SaSystemException, SaAuthenticationException, SaLockException, SaGetNodeException
sysRowId - SysRowIdddcName - DDC nameSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaLockException - SaLockExceptionSaGetNodeException - SaGetNodeExceptioncom.saperion.jni.SaJNIDocAccessData getNodeAccessData(String hdoc) throws SaSystemException, SaAuthenticationException, SaGetNodeException
hdoc - Document HDOCSaAuthenticationException - Error on the saperion systemSaSystemException - Error on the saperion systemSaGetNodeException - SaGetNodeExceptionvoid finishTransaction(boolean commit)
throws SaSystemException
commit - True, if commit this transaction, false to rollbackSaSystemException - Error on the saperion systemvoid startTransaction()
throws SaSystemException
SaSystemException - SaRMICommandExceptionString getAnnotations(String hDoc, int indexOfContentElement, boolean currentRevision) throws SaAuthenticationException, SaSystemException
hDoc - Document HDOCindexOfContentElement - the index of the chosen context elementcurrentRevision - true to get current revisionSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorvoid setAnnotations(String hDoc, int indexOfContentElement, String annotations) throws SaAuthenticationException, SaSystemException
hDoc - Document HDOCannotations - Annotation stringindexOfContentElement - the index of the chosen context elementSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorList<String> getLocks(String ddcName) throws SaSystemException
ddcName - DDC nameSaSystemException - Remote exceptionList<String> getLocks(String ddcName, String mandant) throws SaSystemException
ddcName - DDC namemandant - internal saperion name of the current mandantSaSystemException - Remote exceptionString getACLNames(String hDoc) throws SaSystemException, SaGetNodeException, SaAuthenticationException, SaDDCException
hDoc - Document HDOCSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionSaGetNodeException - SaGetNodeExceptionList<String> getInvolvedUsers(String hDoc) throws SaSystemException, SaAuthenticationException, SaDDCException, SaGetNodeException
hDoc - Document HDOCSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionSaGetNodeException - SaGetNodeExceptionSaSaveInfo setACLName(String ddcname, String hDoc, String acl, int commitMode, String versionComment) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetACLException, SaSetNodeException, SaGetNodeException
ddcname - implemented ddc in saperionhDoc - Document HDOCacl - ACL name stringcommitMode - Commit modeversionComment - Version comment stringSaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionSaSetACLException - SaSetACLExceptionSaSetNodeException - SaSetNodeExceptionSaGetNodeException - SaGetNodeException@Deprecated List<String> getAllACLs() throws SaSystemException, SaAuthenticationException
SaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionSaACLRights getACLRights(String[] acls) throws SaSystemException, SaAuthenticationException
acls - ACL'sSaSystemException - System exceptionSaAuthenticationException - Authentication exceptionvoid startSQLTransaction(String ddcName) throws SaSystemException
ddcName - the name of the ddcSaSystemException - Error on the saperion systemvoid finishSQLTransaction(boolean commit,
String ddcName)
throws SaSystemException
commit - True, if commit, else rollbackddcName - the name of the ddcSaSystemException - Error on the saperion systemList<SaDocumentInfo> getFolderChildren(String folderTableDDC, String folderId, int depth, SaQueryInfo filter, int allowedMaxNrOfChildFolders) throws SaSystemException, SaAuthenticationException, SaDBException, SaFolderException
folderTableDDC - Folder tablefolderId - Folder IDdepth - Depthfilter - Additional HQL filter criteriaallowedMaxNrOfChildFolders - allowed maximum number of resultsSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDBException - Database exceptionSaFolderException - Folder ExceptionSaDocumentInfo getFolderInfo(String folderTableDDC, String folderId, boolean forceLoadVariables) throws SaSystemException, SaAuthenticationException, SaDBException, SaFolderException
folderTableDDC - Folder tablefolderId - Folder idforceLoadVariables - if true, variables will be loaded from medium if the DDC does not contain the
SYSPROPERTIES field.SaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDBException - Database exceptionSaFolderException - Folder ExceptionSaDocumentInfo getFolderParent(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDBException
folderTableDDC - Folder tablefolderId - Folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDBException - Database exceptionList<SaDocumentInfo> getFolderFromPath(String folderTableDDC, String startNodeId, String folderPath, boolean exact) throws SaSystemException, SaAuthenticationException, SaDBException
folderTableDDC - Folder tablestartNodeId - Startnode ID or null/empty if no relative search is requiredfolderPath - Search pathexact - if true, the path will be matched using '='. If false, LIKE will be used.SaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDBException - Database exceptionString createFolder(SaFolderSaveInfo info) throws SaSystemException, SaAuthenticationException, SaDDCException
info - Folder save infoSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionvoid updateFolder(String folderTableDDC, String folderId, List<SaPropertyValue> values) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDvalues - ValuesSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionList<SaDocumentInfo> searchFolderDocuments(String folderTableDDC, String folderId, SaQueryInfo hqlFilter) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDhqlFilter - HQL query for document tables. The DDC name must be defined as $DDC$.SaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionvoid deleteFolder(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionString copyFolder(String folderTableDDC, String folderId, String destinationId, String beforeChild, boolean withDocuments) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDdestinationId - Destination folder IDbeforeChild - Child ID or empty for appendwithDocuments - True, if documents should be copiedSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionvoid moveFolder(String folderTableDDC, String folderId, String destinationId, String beforeChild) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDdestinationId - Destination folder IDbeforeChild - Child ID or empty for appendSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionvoid addToFolder(String folderTableDDC, String documentId, String documentDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetNodeException
folderTableDDC - Folder tabledocumentId - Document SysRowIddocumentDDC - Document DDC namefolderId - Destination folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaSetNodeException - Document is not fileablevoid removeFromFolder(String folderTableDDC, String documentSysRowId, String documentDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tabledocumentSysRowId - Document SysRowIddocumentDDC - Document DDC namefolderId - Folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionvoid moveToFolder(String folderTableDDC, String documentId, String documentDDC, String folderId, String destinationId) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tabledocumentId - Document SysRowIddocumentDDC - Document DDC namefolderId - Source folder IDdestinationId - Destination folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionList<SaDocumentInfo> getDocumentFolders(String folderTableDDC, String documentDDC, String sysRowId) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetNodeException
folderTableDDC - Folder tabledocumentDDC - Document DDCsysRowId - Document sysrowidSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaSetNodeException - Document is not fileablelong getDocumentFolderCount(String folderTableDDC, String documentDDC, String sysRowId) throws SaSystemException, SaAuthenticationException, SaDDCException, SaSetNodeException
folderTableDDC - Folder tabledocumentDDC - Document DDCsysRowId - Document sysrowidSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaSetNodeException - Document is not fileablevoid setFolderAcl(String folderTableDDC, String folderId, String aclName) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDaclName - ACL nameSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaDocAccessData getFolderRights(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaFolderClass getFolderClass(String className) throws SaSystemException, SaAuthenticationException, SaDDCException
className - Class name in dotted notationSaSystemException - Remote exceptionSaAuthenticationException - authentication errorSaDDCException - Database exceptionSet<SaFolderClass> searchFolderClass(SaFolderClassSearchInfo searchInfo) throws SaSystemException, SaAuthenticationException
searchInfo - bean with properties to search forSaSystemException - system exceptionSaAuthenticationException - authentication errorString resolveLatestHdoc(String oldHdoc) throws SaSystemException, SaAuthenticationException
oldHdoc - the old hdocSaSystemException - the system error exceptionSaAuthenticationException - the authentication error exceptionList<String> getSystemFiles(SystemFileKind kind, String filter) throws SaSystemException, SaAuthenticationException
kind - the kind of systemfiles to read.filter - A filter string. Only files will be returned, that match the filter. To get all
systemfiles of a kind set filter to the empty string.SaAuthenticationException - error on the authentification / insufficient rightsSaSystemException - general errorvoid logClientEvent(String hdoc, SaConstants.ProtoEvents event, String remark) throws SaSystemException, SaAuthenticationException
hdoc - Document HDOCevent - Event typeremark - RemarkSaAuthenticationException - error on the authentification / insufficient rightsSaSystemException - general errorList<SaAcl> getAcls() throws SaSystemException, SaAuthenticationException
SaSystemException - SaRMICommandExceptionSaAuthenticationException - SaAuthenticationExceptionvoid storeBpmn(com.saperion.osgi.server.plugin.workflow.converter.BpmnImportDescription bpmnDescription,
com.saperion.osgi.server.plugin.workflow.converter.BpmnImportCallback callback)
throws SaSystemException,
SaAuthenticationException
bpmnDescription - The description of the model to import.callback - The callback object that is notified when the transformation succeeds or fails.SaSystemExceptionSaAuthenticationExceptionvoid changePassword(String user, String oldPassword, String client, String newPassword) throws SaAuthenticationException, SaSystemException
com.saperion.connector.rmi.SaRMIClientCommand#logon(com.saperion.connector.authentication.Credentials)
was successfully invoked.user - The name of the 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 passwordSaSystemExceptionSaAuthenticationExceptionList<UsersRights> getAuthorizedUsers(String hDoc, String rights, MatchKind match) throws SaAuthenticationException, SaSystemException
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 rightsSaSystemExceptionSaAuthenticationExceptionint getArchivedSize(String hDoc) throws SaAuthenticationException, SaSystemException
hDoc - The document whichs size is wanted.SaSystemExceptionSaAuthenticationException@Deprecated String createLookupEntry(String ddc, Properties props) throws SaSystemException, SaAuthenticationException, SaDDCException
ddc - Lookup DDC nameprops - Properties for the new entrySaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exception@Deprecated void updateLookupEntry(String ddc, String id, Properties props) throws SaSystemException, SaAuthenticationException, SaDDCException
ddc - Lookup DDC nameid - SYSROWID of the existing entryprops - Properties for the entrySaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exception@Deprecated void deleteLookupEntry(String ddc, String id) throws SaSystemException, SaAuthenticationException, SaDDCException
ddc - Lookup DDC nameid - SYSROWID of the existing entrySaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionvoid storeSystemFile(SystemFileKind kind, String name, InputStream data) throws SaSystemException, SaAuthenticationException
kind - The kind of systemfile to store.name - The name of the file. This has to be a filename without path and extension.data - The content of the file to save.SaSystemException - Remote exceptionSaAuthenticationException - Authentication errorInputStream loadSystemFile(SystemFileKind kind, String name) throws SaSystemException, SaAuthenticationException
kind - The kind of system file to loadname - The name of the file to load.SaAuthenticationException - error on the authentification / insufficient rightsSaSystemException - general errorString getRMIVersion() throws SaSystemException
SaSystemExceptionSet<FolderUpdateInfo> getFolderUpdateInfo(Map<String,Long> folderIds) throws SaSystemException, SaAuthenticationException
folderIds - Map of SYSROWIDs with time stamps of last refresh to check.SaAuthenticationException - error on the authentification / insufficient rightsSaSystemException - general errorvoid setVariables(int element,
Map<String,String> variables)
throws SaAuthenticationException,
SaSystemException
element - Element Number where the Variables should be set to. (0 = Structure)variables - Map of Key-Value Pairs for setting VariablesSaAuthenticationException - error on the authentification / insufficient rightsSaSystemException - general errorSapDocInfo checkSapUrl(String url) throws SaSystemException, SaSapUrlException, SaAuthenticationException
url - SAP URLSaSystemException - when a system error occuredSaSapUrlException - when checking the sap url failed in the RLINK serverSaAuthenticationException - when the user is not logged in or has insufficient rights<T extends Serializable> T invoke(com.lexmark.saperion.remote.common.operations.Operation<T,SaBasicException,LegacyConnection> operation) throws SaSystemException, SaAuthenticationException
Operation on the backend.T - The return typeoperation - The operation to invokeSaSystemExceptionSaAuthenticationExceptionvoid sendBarcode(String indexMask, String docUid, String contentRep, String sid, String docType, String value, int mandant) throws SaSystemException, SaAuthenticationException
indexMask - Index mask namedocUid - Document UIDcontentRep - SAP Content repositorysid - SAP IDdocType - Document typevalue - Valuemandant - Mandant nameSaSystemException - when a system error occuredSaAuthenticationException - when the user is not logged in or has insufficient rightsList<SaRMIServerInfo> getServerInfos()
SaRMIServerInfovoid setEventsEnabled(boolean enabled)
throws SaSystemException,
SaAuthenticationException
enabled - true, if events should be enabled, otherwise false.SaSystemException - when a system error occured.SaAuthenticationException - when the user is not logged in or has insufficient rights.boolean getEventsEnabled()
throws SaSystemException,
SaAuthenticationException
SaSystemException - when a system error occured.SaAuthenticationException - when the user is not logged in or has insufficient rights.Set<Map.Entry<String,String>> getFullTextFields(String ddcName, List<String> fullTextFields, String hdoc) throws SaSystemException
ddcName - name of the DDCfullTextFields - List of Fields which are of Text retrieval type.
Make sure to prefix SaConstants.FULL_TEXT_COLUMN_PREFIXhdoc - hdoc of the documentSaSystemExceptionCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.