Modifier and Type | Method and Description |
---|---|
void |
addComment(int token,
String comment,
String taskUID,
int level) |
void |
addHistory(int token,
String description,
String taskUID) |
void |
addToFolder(int token,
String folderTableDDC,
String documentId,
String documentDDC,
String folderId)
Adds the document to a given folder.
|
SaSaveInfo |
cacheDocument(int token,
boolean isNew,
int commitMode,
String versionComment,
String xhDoc,
String ddcName,
String acls)
Caches the current document to the backend.
|
void |
changePassword(String user,
String oldPassword,
String client,
String newPassword)
Changes the password of an existing user.
|
void |
checkoutDocument(int token,
String documentHdoc)
Checkout the document with the given HDOC.
|
SapDocInfo |
checkSapUrl(int clientToken,
String url)
Checks the given SAP URL on the R/Link server and returns, if successfull, the HDOC and the
DDC.
|
void |
clearContent(int token)
Clears all content of the opened document.
|
void |
closeDocument(int token,
com.saperion.jni.SaJNIDocHandle handle)
Manually closing of a open document.
|
boolean |
closeSession(int token,
com.saperion.connector.authentication.Session session)
Close the given
Session of the user identified by the given token |
String |
copyFolder(int token,
String folderTableDDC,
String folderId,
String destinationId,
String beforeChild,
boolean withDocuments)
Copies the given node and all it’s children to the destination.
|
long |
countTasks(int token,
int[] ids,
String filter,
Map<String,Object> filterParams)
Counts the tasks that are contained in the specified inbox(es).
|
SaSaveInfo |
createDocument(int token,
String ddcName,
List<SaPropertyValue> values)
Caches a new document with the given parameters.
|
String |
createFolder(int token,
SaFolderSaveInfo info)
Creates a new node below a given node.
|
SaSaveInfo |
createLink(int token,
LinkInfo link)
Creates a SAPERION Link into one Archive for an existing Document.
|
SaSaveInfo |
deleteDocument(int token,
int mode,
String hdoc)
Delete a document.
|
void |
deleteFolder(int token,
String folderTableDDC,
String folderId)
Deletes a given node.
|
boolean |
deleteSetting(int token,
String name,
String section,
boolean isLong)
Deletes a setting in the database.
|
void |
discardCheckout(int token,
String documentHdoc)
Discard a checked out document.
|
void |
discardDocument(int token)
Discards the document identified by the tokens handle.
|
String |
executeCommand(int token,
ContextInfo contextInfo)
Performs the given command.
|
void |
finishSQLTransaction(int token,
boolean commit,
String ddcName)
Finish SQL transaction.
|
void |
finishTransaction(int token,
boolean commit)
Finish the transaction in the backend system.
|
String |
getACLNames(int token,
String hDoc)
Reads the ACL's for the given document.
|
SaACLRights |
getACLRights(int token,
String[] acls)
Reads the rights for the given ACL's.
|
List<SaAcl> |
getAcls(int token)
Reads all existing Acls.
|
List<String> |
getAllACLs(int token)
Deprecated.
use
getAcls(int) instead |
String |
getAnnotations(int token,
int indexOfContentElement,
String hDoc,
boolean currentRevision)
Reads the annotations from the given document.
|
int |
getArchivedSize(int clientToken,
String hDoc)
Returns the total document size in archive.
|
List<UsersRights> |
getAuthorizedUsers(int clientToken,
String hDoc,
String rights,
MatchKind match)
Returns the users, that have specific rights on a document.
|
BoxCount |
getBoxCount(int token,
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.
|
HashMap<Integer,BoxCount> |
getBoxCounts(int token,
Set<Integer> boxId,
BoxCountType type,
Map<String,Object> parameters)
Returns the number of all elements and of all unread elements of the inboxes identified by the given ids.
|
List<BoxDefinition> |
getBoxDefinitions(int token)
Reads the box definitions.
|
Collection<CommandInfo> |
getCommandInfos(int token,
String docUID)
Reads all possible transitions for this task.
|
Collection<CommandInfo> |
getCommandInfos(int token,
String docUID,
boolean transitionsOnly)
Reads all possible transitions for this task.
|
List<CommentInfo> |
getCommentInfos(int token,
String taskUID)
Reads the comments for the given task.
|
List<List<HistoryInfo>> |
getCompleteHistoryInfos(int token,
String docUID)
Reads the histories and comments for the given document.
|
DDC |
getDDC(int clientToken,
String ddcName)
Returns information about the specified DDC.
|
long |
getDocumentFolderCount(int token,
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(int token,
String folderTableDDC,
String documentDDC,
String sysRowId)
Returns a list of folder properties which contains all nodes the document is contained in.
|
boolean |
getEventsEnabled(int clientToken)
Returns whether events (e.g.
|
SaFieldDescription[] |
getFieldDescriptions(int token,
String ddcName)
Reads the field descriptions for a given DDC.
|
List<SaDocumentInfo> |
getFolderChildren(int token,
String folderTableDDC,
String folderId,
int depth,
SaQueryInfo filter,
int allowedMaxNrOfChildFolders)
Returns a cursor with the children of the given node.
|
SaFolderClass |
getFolderClass(int clientToken,
String className)
Reads the folder class with the given name.
|
List<SaDocumentInfo> |
getFolderFromPath(int token,
String folderTableDDC,
String startNodeId,
String folderPath,
boolean exact)
Returns the node(s) which match to the given path.
|
SaDocumentInfo |
getFolderInfo(int token,
String folderTableDDC,
String folderId,
boolean forceLoadVariables)
Reads the folder info object for the given folder.
|
SaDocumentInfo |
getFolderParent(int token,
String folderTableDDC,
String folderId)
Returns the parent of the given node.
|
SaDocAccessData |
getFolderRights(int token,
String folderTableDDC,
String folderId)
Returns the rights mask for the given folder and user.
|
Set<FolderUpdateInfo> |
getFolderUpdateInfo(int clientToken,
Map<String,Long> sysrowids)
Calculates a cut set of folders that shall be refreshed on client side.
|
String |
getFulltext(int token,
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.
|
Map<String,String> |
getFullTextFields(int token,
String ddcName,
List<String> fullTextFields,
String hdoc)
Fetches values of Full text columns
|
String |
getHDocForSysRowId(int token,
String sysRowId,
String ddcName)
Searchs the HDOC for the given SysRowId.
|
List<HistoryInfo> |
getHistoryInfos(int token,
String taskUID)
Reads the history for the given task.
|
List<String> |
getIdsFromQuery(int token,
String query,
boolean isSQL)
Executes a HQL query and returns the results as a string list.
|
Injector |
getInjector(int clientToken)
This method returns the injector for the given session.
|
List<String> |
getInvolvedUsers(int token,
String hDoc)
Reads all users involved in the set of ACL's.
|
SaLockInfo |
getLockInfo(int token,
String sysRowId)
Gets the lock info for a given node.
|
WorkflowMember |
getMember(int token,
WorkflowMember member,
int depth,
String filter)
Reads direct workflow member.
|
WorkflowMember |
getMembers(int token)
Reads the member.
|
com.saperion.jni.SaJNIDocAccessData |
getNodeAccessData(int token,
String hdoc)
Opens the document identified by hdoc and returns an object containing all access right data
information for the session user.
|
boolean |
getOutOfOffice(int token)
Get the out of office status for the logged on user.
|
TaskInfo |
getParentTask(int token,
String taskID)
Reads the parent task info for the given ID.
|
String |
getRMIVersion()
Determine the RMI interface version.
|
Setting |
getSetting(int token,
String name,
String section,
boolean isLong)
Reads the setting with the specified name and section.
|
com.lexmark.saperion.remote.common.operations.document.content.stream.StreamingConfiguration |
getStreamingConfiguration()
This method returns the current
streaming configuration . |
List<SaDocumentInfo> |
getStringQueryResult(int token,
SaQueryInfo queryInfo)
Executes a given HQL string and returns the results as list.
|
String |
getSubstitute(int token)
Get the substitute for the logged on user.
|
List<String> |
getSystemFiles(int clientToken,
SystemFileKind kind,
String filter)
Gets the system files of a specific kind.
|
TaskInfo |
getTask(int token,
String taskID)
Reads the task info for the given ID.
|
List<TaskAuditInfo> |
getTaskAuditList(int token,
int[] ids,
String filter,
Map<String,Object> parameter)
Reads the task for this user.
|
List<TaskInfo> |
getTaskList(int token,
int[] ids,
String filter,
Map<String,Object> parameter)
Reads the task for this user.
|
byte[] |
getThumbnail(int token,
String hDoc,
int widthX,
int widthY,
boolean color)
Reads the thumbnail of the given document.
|
int[] |
getUserIdsForQuery(int token)
Read the userids.
|
List<String> |
getUsers(int token,
String filter)
Reads a list of filtered users.
|
SaUserSetting |
getUserSetting(int token,
String key)
Reads the user-specific settings for the given key.
|
List<String> |
getVersionList(int token,
String ddcName,
String sysrowID)
Reads the versionlist for the given document.
|
List<String> |
getWorkflowDefinitions(int token)
Reads all available workflow definitions.
|
List<ProcessDefinitionDescriptor> |
getWorkflowDefinitions(String ddcName,
int token)
Returns the workflow definitions that are allowed to be used for documents contained
in the specified DDC.
|
<T extends Serializable> |
invoke(int clientToken,
com.lexmark.saperion.remote.common.operations.Operation<T,SaBasicException,LegacyConnection> operation)
This method invokes an
Operation on the server side. |
boolean |
isAlive(int token)
Checks, if the token has minimum lifetime before timeout.
|
boolean |
isRevisionEnabled(int token,
String ddcName)
Gets the information whether the provided ddc table contains the fields required for
revisions.
|
List<com.saperion.connector.authentication.Session> |
listActiveSessions(int token)
List the active sessions of the user identified by given token.
|
String[] |
loadDDCNames(int token)
Retrieves the avaiable DDC names.
|
String[] |
loadFolderDDCNames(int token)
Retrieves the avaiable folder DDC names.
|
byte[] |
loadSystemFile(int clientToken,
SystemFileKind kind,
String name)
Loads a system file of a specific kind.
|
String |
loadWorkflowDDCName()
Retrieves the workflow DDC name.
|
boolean |
lockNode(int token,
String sysRowId,
String ddcName,
int lockType,
boolean sessionScoped)
Locks a node.
|
void |
logClientEvent(int token,
String hdoc,
SaConstants.ProtoEvents event,
String remark)
Adds an audit log event.
|
boolean |
logoff(int token)
Logoff 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.
|
com.saperion.connector.authentication.Session |
logon(com.lexmark.saperion.remote.common.authentication.Credentials credentials,
com.saperion.connector.authentication.SessionInfo sessionInfo)
Logon with the passed credentials and associate the given session information.
|
void |
moveFolder(int token,
String folderTableDDC,
String folderId,
String destinationId,
String beforeChild)
Moves the given node to a new destination.
|
void |
moveToFolder(int token,
String folderTableDDC,
String documentId,
String documentDDC,
String folderId,
String destinationId)
Moves the document’s filing to the given node.
|
<ResultType extends Serializable,ExceptionType extends Exception> |
newInvoke(int clientToken,
com.lexmark.saperion.remote.common.operations.Operation<ResultType,ExceptionType,com.lexmark.saperion.remote.common.Connection> operation)
This method invokes an
Operation that throws ecm exceptions on the server side. |
com.saperion.jni.SaJNIReadBuffer |
readDocumentFirst(int token,
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.
|
com.saperion.jni.SaJNIReadBuffer |
readDocumentFirst(int token,
String hdoc,
boolean currentRevision,
int element,
boolean withAnnotations)
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(int token,
String documentHDOC,
String ddcName,
String[] fields)
Reads the metadata of the document with the given ID.
|
com.saperion.jni.SaJNIReadBuffer |
readDocumentNext(int token,
com.saperion.jni.SaJNIDocHandle handle)
Reads the next bytes from the open document, decribed in the handle.
|
SaVersionData |
readVersionMetadata(int token,
String versionID)
Reads the version metadata of the document with the given ID.
|
SaVersionData |
readVersionMetadata(int token,
String versionID,
boolean resolveLinks)
Reads the version metadata of the document with the given ID.
|
void |
releaseDocument(int token,
String documentHdoc,
String comment)
Release the document with the given HDOC.
|
void |
removeElement(int token,
int element)
Removes a existing content element.
|
void |
removeElement(int token,
Integer[] elements)
Removes a series of existing content elements.
|
void |
removeFromFolder(int token,
String folderTableDDC,
String documentSysRowId,
String documentDDC,
String folderId)
Remove the document filing from the given node.
|
String |
resolveLatestHdoc(int token,
String oldHdoc)
Resolves the hdoc of the latest version of the document identified by the given hdoc.
|
SaSaveInfo |
restoreVersion(int token,
String versionID)
Restores the given version to the actual version.
|
SaSaveInfo |
saveDocument(int token,
String nodeHdoc,
String ddcName,
List<SaPropertyValue> values)
Saves the document parameters to the document.
|
SaSaveInfo |
saveDocument(int token,
String nodeHdoc,
String ddcName,
List<SaPropertyValue> values,
boolean resolveLinks)
Saves the document parameters to the document.
|
Set<SaFolderClass> |
searchFolderClass(int clientToken,
SaFolderClassSearchInfo searchInfo)
Searches for folder classes with the specified properties.
|
List<SaDocumentInfo> |
searchFolderDocuments(int token,
String folderTableDDC,
String folderId,
SaQueryInfo hqlFilter)
HQL search extended with additional folder informations and depth.
|
SettingSearchResult |
searchSettings(int token,
SettingSearchInfo searchInfo)
Searches for settings.
|
void |
sendBarcode(int clientToken,
String indexMask,
String docUid,
String contentRep,
String sid,
String docType,
String value,
int mandant)
Send barcode to SAP.
|
SaSaveInfo |
setACLName(int token,
String ddcname,
String hDoc,
String acl,
int commitMode,
String versionComment)
Sets the given ACL to the node.
|
void |
setAnnotations(int token,
String hDoc,
int indexOfContentElement,
String annotations)
Sets the given annotations to the document.
|
void |
setDocumentState(int clientToken,
String ddcName,
String hdoc,
String value)
Sets the SYSDOCUMENTSTATE value of a document to the specified value without
creating a new revision.
|
void |
setElementMark(int token,
int element)
Mark the content element.
|
void |
setEventsEnabled(int clientToken,
boolean enabled)
Sets whether events (e.g.
|
void |
setFolderAcl(int token,
String folderTableDDC,
String folderId,
String aclName)
Sets an ACL for the given folder.
|
void |
setLocale(int token,
Locale local)
Set the locale for localization.
|
void |
setOutOfOffice(int token,
boolean isOutOfOffice)
Set the out of office status for the logged on user.
|
void |
setSetting(int token,
Setting setting)
Persists the setting in the database.
|
void |
setSubstitute(int token,
String name)
Set the substitute for the logged on user.
|
void |
setUserSetting(int token,
SaUserSetting value)
Persists user-specific settings to the saperion backend.
|
void |
setVariables(int clientToken,
int element,
Map<String,String> variables)
Method to set the Variables for an Content-Object or the Structure itself.
|
void |
startSQLTransaction(int token,
String ddcName)
Start SQL transaction.
|
void |
startTransaction(int token)
Starts a transaction in the backend system.
|
SaSaveInfo |
storeDocument(int token,
boolean isNew,
int commitMode,
String versionComment,
String ddcName,
String acls)
Stores the actual document to the backend.
|
SaSaveInfo |
storeDocument(int token,
boolean isNew,
int commitMode,
String versionComment,
String ddcName,
String acls,
boolean checkin)
Stores the actual document to the backend.
|
void |
storeSystemFile(int clientToken,
SystemFileKind kind,
String name,
byte[] data)
Stores a system file of a specific kind.
|
boolean |
unlockNode(int token,
String sysRowId,
String ddcName)
Unlocks a node.
|
void |
updateFolder(int token,
String folderTableDDC,
String folderId,
List<SaPropertyValue> values)
Updates a given node with the given properties.
|
long |
writeDocument(int token,
SerializableStream stream)
Write document.
|
long |
writeDocument(int token,
String filename,
byte[] buffer,
boolean isLast,
int element)
Writes given binary content to an existing document object.
|
long |
writeDocument(int token,
String filename,
byte[] buffer,
boolean isLast,
int element,
boolean doStreaming)
Writes given binary content to an existing document object.
|
boolean isRevisionEnabled(int token, String ddcName) throws RemoteException
token
- user token numberddcName
- table/jcr workspace nameRemoteException
- Remote exceptioncom.saperion.connector.authentication.Session logon(com.lexmark.saperion.remote.common.authentication.Credentials credentials) throws RemoteException, com.lexmark.saperion.exceptions.EcmException
credentials
- credentials which should be used for logonRemoteException
- error on user logincom.lexmark.saperion.exceptions.EcmException
com.saperion.connector.authentication.Session logon(com.lexmark.saperion.remote.common.authentication.Credentials credentials, com.saperion.connector.authentication.SessionInfo sessionInfo) throws RemoteException, com.lexmark.saperion.exceptions.EcmException
credentials
- The credentials which should be used for logonsessionInfo
- The session informationSession
RemoteException
com.lexmark.saperion.exceptions.EcmException
List<com.saperion.connector.authentication.Session> listActiveSessions(int token) throws RemoteException
token
- Session
RemoteException
boolean closeSession(int token, com.saperion.connector.authentication.Session session) throws RemoteException
Session
of the user identified by the given tokentoken
- session
- RemoteException
int[] getUserIdsForQuery(int token) throws RemoteException
token
- User tokenRemoteException
- SaRMICommandExceptionboolean logoff(int token) throws RemoteException
token
- User tokenRemoteException
- error on user logoffvoid setLocale(int token, Locale local) throws RemoteException
token
- User tokenlocal
- LocaleRemoteException
- ExceptionWorkflowMember getMembers(int token) throws RemoteException
token
- User tokenRemoteException
- Remote exceptionWorkflowMember getMember(int token, WorkflowMember member, int depth, String filter) throws RemoteException
token
- User tokenmember
- workflow member, witch direct children will be returneddepth
- depth of the returned children.filter
- filter stringRemoteException
- Remote exceptionString[] loadDDCNames(int token) throws RemoteException
token
- User tokenRemoteException
- Error on the saperion systemString[] loadFolderDDCNames(int token) throws RemoteException
token
- User tokenRemoteException
- Error on the saperion systemString loadWorkflowDDCName() throws RemoteException
RemoteException
- Error on the saperion systemSaFieldDescription[] getFieldDescriptions(int token, String ddcName) throws RemoteException
token
- User tokenddcName
- DDC nameRemoteException
- Error on the saperion systemSaUserSetting getUserSetting(int token, String key) throws RemoteException
token
- User tokenkey
- Dot-delimited keySaUserSetting
RemoteException
- Error on the saperion systemvoid setUserSetting(int token, SaUserSetting value) throws RemoteException
token
- User tokenvalue
- user setting objectRemoteException
- Error on the saperion systemSetting getSetting(int token, String name, String section, boolean isLong) throws RemoteException
token
- User tokenname
- the setting's namesection
- the setting's sectionisLong
- whether this is a setting with a long (>2KB) value or notRemoteException
- Error when retrieving the settingSettingSearchResult searchSettings(int token, SettingSearchInfo searchInfo) throws RemoteException
token
- User tokensearchInfo
- SettingSearchInfo
containing information about what to searchSettingSearchResult
RemoteException
- system error when searchingvoid setSetting(int token, Setting setting) throws RemoteException
token
- User tokensetting
- the setting to persistRemoteException
- Error when persisting the settingboolean deleteSetting(int token, String name, String section, boolean isLong) throws RemoteException
token
- User tokenname
- 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 notRemoteException
- Error when deleting the setting@Deprecated List<String> getAllACLs(int token) throws RemoteException
getAcls(int)
insteadtoken
- User tokenRemoteException
- Remote exceptionList<SaAcl> getAcls(int token) throws RemoteException
token
- User tokenRemoteException
- Remote exceptioncom.saperion.jni.SaJNIReadBuffer readDocumentFirst(int token, String hdoc, boolean currentRevision, int element) throws RemoteException
token
- User tokenhdoc
- Document HDOCcurrentRevision
- flag indicating that the current revision of the document should be retrieved by
resolving hdocelement
- Element number, starting with 1RemoteException
- Error on the saperion systemcom.saperion.jni.SaJNIReadBuffer readDocumentFirst(int token, String hdoc, boolean currentRevision, int element, boolean withAnnotations) throws RemoteException
token
- User tokenhdoc
- Document HDOCcurrentRevision
- flag indicating that the current revision of the document should be retrieved by
resolving hdocelement
- Element number, starting with 1withAnnotations
- if true, annotations will be saved on the documentRemoteException
- Error on the saperion systemSaPropertyValue[] readDocumentMetadata(int token, String documentHDOC, String ddcName, String[] fields) throws RemoteException, SaSystemException
token
- TokendocumentHDOC
- 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.RemoteException
- RemoteExceptionSaSystemException
String getFulltext(int token, String ddcName, String sysRowId, String hdoc, String fieldName, long length) throws RemoteException
token
- TokenddcName
- 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.RemoteException
- RemoteExceptionbyte[] getThumbnail(int token, String hDoc, int widthX, int widthY, boolean color) throws RemoteException
token
- TokenhDoc
- HDoc for the document.widthX
- Width XwidthY
- Width Ycolor
- True for coloredRemoteException
- RemoteExceptioncom.saperion.jni.SaJNIReadBuffer readDocumentNext(int token, com.saperion.jni.SaJNIDocHandle handle) throws RemoteException
token
- Usertokenhandle
- Document handle for a document, opend by readDocumentFirstRemoteException
- Error on the saperion systemSaVersionData readVersionMetadata(int token, String versionID) throws RemoteException
token
- User tokenversionID
- Version HDOCRemoteException
- Remote exceptionSaVersionData readVersionMetadata(int token, String versionID, boolean resolveLinks) throws RemoteException
token
- User tokenresolveLinks
- If false will not resolve the link and show the metadata associated with the link itself.versionID
- Version HDOCRemoteException
- Remote exceptionSaSaveInfo restoreVersion(int token, String versionID) throws RemoteException
token
- User tokenversionID
- Version HDOCRemoteException
- Remote exceptionvoid closeDocument(int token, com.saperion.jni.SaJNIDocHandle handle) throws RemoteException
token
- Usertokenhandle
- Document handle for a document, opend by readDocumentFirstRemoteException
- Error on the saperion systemSaSaveInfo deleteDocument(int token, int mode, String hdoc) throws RemoteException
token
- Usertokenmode
- Delete mode may be set to the following values:
hdoc
- Document HDOCRemoteException
- Error on the saperion systemSaSaveInfo cacheDocument(int token, boolean isNew, int commitMode, String versionComment, String xhDoc, String ddcName, String acls) throws RemoteException
token
- UsertokenisNew
- Is a new documentcommitMode
- Commit modeversionComment
- Version comment stringddcName
- DDC nameacls
- ACL name string, if null
it will be ignored, to delete existing ACLs
set an empty stringxhDoc
- the document's hdocRemoteException
- RMI ExceptionSaSaveInfo createDocument(int token, String ddcName, List<SaPropertyValue> values) throws RemoteException
token
- User token (an int variable to authentificate an user)ddcName
- Node database table namevalues
- List of all valuesRemoteException
- RMI ExceptionSaSaveInfo createLink(int token, LinkInfo link) throws RemoteException
token
- User token (an int variable to authentificate an user)link
- Link for the existing DocumentRemoteException
- RMI ExceptionSaSaveInfo saveDocument(int token, String nodeHdoc, String ddcName, List<SaPropertyValue> values) throws RemoteException
token
- UsertokennodeHdoc
- Node HDOCddcName
- Database table namevalues
- List of all valuesRemoteException
- RMI ExceptionSaSaveInfo saveDocument(int token, String nodeHdoc, String ddcName, List<SaPropertyValue> values, boolean resolveLinks) throws RemoteException
token
- UsertokennodeHdoc
- Node HDOCddcName
- Database table namevalues
- List of all valuesresolveLinks
- Resolve linksRemoteException
- RMI ExceptionSaSaveInfo storeDocument(int token, boolean isNew, int commitMode, String versionComment, String ddcName, String acls) throws RemoteException
token
- UsertokenisNew
- Is a new documentcommitMode
- Commit modeversionComment
- Version comment stringddcName
- DDC nameacls
- ACL name string, if null
it will be ignored, to delete existing ACLs
set an empty stringRemoteException
- RMI ExceptionSaSaveInfo storeDocument(int token, boolean isNew, int commitMode, String versionComment, String ddcName, String acls, boolean checkin) throws RemoteException
token
- UsertokenisNew
- Is a new documentcommitMode
- Commit modeversionComment
- Version comment stringddcName
- DDC nameacls
- ACL name string, if null
it will be ignored, to delete existing ACLs
set an empty stringcheckin
- Checkin document (only valid for update)RemoteException
- RMI Exceptionvoid discardDocument(int token) throws RemoteException
token
- UsertokenRemoteException
- RMI Exceptionvoid checkoutDocument(int token, String documentHdoc) throws RemoteException
token
- User tokendocumentHdoc
- Document HDOCRemoteException
- RMI exceptionvoid discardCheckout(int token, String documentHdoc) throws RemoteException
token
- User tokendocumentHdoc
- Document HDOCRemoteException
- RMI exceptionvoid releaseDocument(int token, String documentHdoc, String comment) throws RemoteException
token
- User tokendocumentHdoc
- Document HDOCcomment
- the revision commentRemoteException
- RMI exceptionlong writeDocument(int token, String filename, byte[] buffer, boolean isLast, int element) throws RemoteException
token
- User tokenfilename
- File name of content, set on first invocationbuffer
- Buffer containing content dataisLast
- True if this is the last block of dataelement
- Element number or -1 for automaticRemoteException
- Wrapped SaJNIException and SaRMIExceptionlong writeDocument(int token, String filename, byte[] buffer, boolean isLast, int element, boolean doStreaming) throws RemoteException
token
- User tokenfilename
- File name of content, set on first invocationbuffer
- Buffer containing content dataisLast
- True if this is the last block of datadoStreaming
- True if streaming option of content data is activated.element
- Element number or -1 for automaticRemoteException
- Wrapped SaJNIException and SaRMIExceptionlong writeDocument(int token, SerializableStream stream) throws RemoteException
token
- the User tokenstream
- the stream to writeRemoteException
- the remote exceptionvoid setElementMark(int token, int element) throws RemoteException
token
- User tokenelement
- Element number to markRemoteException
- Wrapped SaJNIException and SaRMIExceptionvoid removeElement(int token, int element) throws RemoteException
token
- User tokenelement
- Element numberRemoteException
- Wrapped SaJNIException and SaRMIExceptionvoid removeElement(int token, Integer[] elements) throws RemoteException
token
- User tokenelements
- Array of element numberRemoteException
- Wrapped SaJNIException and SaRMIExceptionvoid clearContent(int token) throws RemoteException
token
- UsertokenRemoteException
- Wrapped SaJNIException and SaRMIExceptionboolean lockNode(int token, String sysRowId, String ddcName, int lockType, boolean sessionScoped) throws RemoteException
token
- UsertokensysRowId
- SysRowIdddcName
- DDC namelockType
- locking mode can be one of the following constants: sessionScoped
- True, if session scopedRemoteException
- Wrapped SaJNIException and SaRMIExceptionboolean unlockNode(int token, String sysRowId, String ddcName) throws RemoteException
token
- UsertokensysRowId
- SysRowIdddcName
- DDC nameRemoteException
- Wrapped SaJNIException and SaRMIExceptionSaLockInfo getLockInfo(int token, String sysRowId) throws RemoteException
token
- UsertokensysRowId
- SysRowIdRemoteException
- Wrapped SaJNIException and SaRMIExceptioncom.saperion.jni.SaJNIDocAccessData getNodeAccessData(int token, String hdoc) throws RemoteException
token
- User tokenhdoc
- Document HDOCRemoteException
- Wrapped SaJNIException and SaRMIExceptionvoid startTransaction(int token) throws RemoteException
token
- UsertokenRemoteException
- Wrapped SaJNIException and SaRMIExceptionvoid finishTransaction(int token, boolean commit) throws RemoteException
token
- Usertokencommit
- True, if commit this transaction, false to rollbackRemoteException
- Wrapped SaJNIException and SaRMIExceptionList<String> getIdsFromQuery(int token, String query, boolean isSQL) throws RemoteException
token
- User tokenquery
- HQL queryisSQL
- isSQLRemoteException
- Remote exceptionList<SaDocumentInfo> getStringQueryResult(int token, SaQueryInfo queryInfo) throws RemoteException, SaSystemException
token
- User tokenqueryInfo
- HQL query infoRemoteException
- Remote exceptionSaSystemException
List<String> getVersionList(int token, String ddcName, String sysrowID) throws RemoteException
token
- User tokenddcName
- DDC namesysrowID
- SYSROWIDRemoteException
- Remote exceptionString getACLNames(int token, String hDoc) throws RemoteException
token
- User tokenhDoc
- Document HDOCRemoteException
- RemoteExceptionSaSaveInfo setACLName(int token, String ddcname, String hDoc, String acl, int commitMode, String versionComment) throws RemoteException
token
- User tokenddcname
- implemented ddc in saperionhDoc
- Document HDOCacl
- ACL name stringcommitMode
- Commit modeversionComment
- Version comment stringRemoteException
- RemoteExceptionSaACLRights getACLRights(int token, String[] acls) throws RemoteException
token
- User tokenacls
- Array of ACL'sRemoteException
- Remote exceptionList<String> getInvolvedUsers(int token, String hDoc) throws RemoteException
token
- User tokenhDoc
- Document HDOCRemoteException
- RemoteExceptionString resolveLatestHdoc(int token, String oldHdoc) throws RemoteException
token
- User tokenoldHdoc
- old document HDOCRemoteException
- if an remote error occurs.String getHDocForSysRowId(int token, String sysRowId, String ddcName) throws RemoteException
token
- User tokensysRowId
- SysRowIdddcName
- DDC nameRemoteException
- Remoteexceptionboolean isAlive(int token) throws RemoteException
token
- UsertokenRemoteException
- Remote exceptionList<TaskInfo> getTaskList(int token, int[] ids, String filter, Map<String,Object> parameter) throws RemoteException
token
- user tokenids
- Box ID'sfilter
- HQL filter. Optional WHERE condition that might be added to the original query. parameter
- Filter parameterRemoteException
- RemoteExceptionlong countTasks(int token, int[] ids, String filter, Map<String,Object> filterParams) throws RemoteException, SaSystemException, SaAuthenticationException
getBoxCount(int, int, BoxCountType, Map)
, this method allows to define a custom
filter. It uses the same queries than getTaskList(int, int[], String, Map)
.token
- user-tokenids
- IDs of the inboxes to count tasks infilter
- optional filter-string in HQL that will be added to the WHERE clausefilterParams
- RemoteException
- RMI exception when invoking this callSaSystemException
- system error when counting workflow tasksSaAuthenticationException
- not authorized or not logged onList<TaskAuditInfo> getTaskAuditList(int token, int[] ids, String filter, Map<String,Object> parameter) throws RemoteException
token
- user tokenids
- Box ID'sfilter
- HQL filter. Optional WHERE condition that will be added to the original query. parameter
- Filter parameterTaskAuditInfo
objectsRemoteException
- RemoteExceptionTaskInfo getTask(int token, String taskID) throws RemoteException
token
- user tokentaskID
- Task IDRemoteException
- RemoteExceptionTaskInfo getParentTask(int token, String taskID) throws RemoteException
token
- user tokentaskID
- Task IDRemoteException
- RemoteExceptionCollection<CommandInfo> getCommandInfos(int token, String docUID) throws RemoteException
token
- user tokendocUID
- Document UIDRemoteException
- RemoteExceptionCollection<CommandInfo> getCommandInfos(int token, String docUID, boolean transitionsOnly) throws RemoteException
token
- user tokendocUID
- Document UIDtransitionsOnly
- if true, only transition commands will be returnedRemoteException
- RemoteExceptionList<BoxDefinition> getBoxDefinitions(int token) throws RemoteException
token
- user tokenRemoteException
- RemoteExceptionHashMap<Integer,BoxCount> getBoxCounts(int token, Set<Integer> boxId, BoxCountType type, Map<String,Object> parameters) throws RemoteException
token
- user tokenboxId
- the workflow box idtype
- type of tasks to search forparameters
- parameters needed for queryRemoteException
- if an error occurs.BoxCount getBoxCount(int token, int boxId, BoxCountType type, Map<String,Object> parameters) throws RemoteException
token
- user tokenboxId
- the workflow box idtype
- type of tasks to search forparameters
- parameters needed for queryRemoteException
- if an error occurs.String executeCommand(int token, ContextInfo contextInfo) throws RemoteException
token
- user tokencontextInfo
- Context infoRemoteException
- RemoteExceptionList<CommentInfo> getCommentInfos(int token, String taskUID) throws RemoteException
token
- user tokentaskUID
- Task UIDRemoteException
- RemoteExceptionList<HistoryInfo> getHistoryInfos(int token, String taskUID) throws RemoteException
token
- user tokentaskUID
- Task UIDRemoteException
- RemoteExceptionList<List<HistoryInfo>> getCompleteHistoryInfos(int token, String docUID) throws RemoteException
token
- user tokendocUID
- document UIDRemoteException
- RemoteExceptionList<String> getWorkflowDefinitions(int token) throws RemoteException
token
- user tokenRemoteException
- RemoteExceptionList<ProcessDefinitionDescriptor> getWorkflowDefinitions(String ddcName, int token) throws RemoteException, com.lexmark.saperion.exceptions.system.BackendSystemException
ddcName
- name of the DDCtoken
- user tokenRemoteException
- RemoteExceptioncom.lexmark.saperion.exceptions.system.BackendSystemException
void addComment(int token, String comment, String taskUID, int level) throws RemoteException
token
- user tokencomment
- CommenttaskUID
- Task UIDlevel
- LevelRemoteException
- RemoteExceptionvoid addHistory(int token, String description, String taskUID) throws RemoteException
token
- user tokendescription
- CommenttaskUID
- Task UIDRemoteException
- RemoteExceptionString getSubstitute(int token) throws RemoteException
token
- user tokenRemoteException
- RemoteExceptionvoid setSubstitute(int token, String name) throws RemoteException
token
- user tokenname
- Substitute nameRemoteException
- RemoteExceptionboolean getOutOfOffice(int token) throws RemoteException
token
- user tokenRemoteException
- RemoteExceptionvoid setOutOfOffice(int token, boolean isOutOfOffice) throws RemoteException
token
- user tokenisOutOfOffice
- True, if is OutOfOfficeRemoteException
- RemoteExceptionList<String> getUsers(int token, String filter) throws RemoteException
token
- user tokenfilter
- FilterRemoteException
- RemoteExceptionString getAnnotations(int token, int indexOfContentElement, String hDoc, boolean currentRevision) throws RemoteException
token
- user tokenindexOfContentElement
- the index of the content element to accesshDoc
- document HDOCcurrentRevision
- true to get current revisionRemoteException
- RemoteExceptionvoid setAnnotations(int token, String hDoc, int indexOfContentElement, String annotations) throws RemoteException
token
- user tokenhDoc
- Document HDOCindexOfContentElement
- the index of the content element to accessannotations
- Annotation stringRemoteException
- RemoteExceptionvoid startSQLTransaction(int token, String ddcName) throws RemoteException
token
- User tokenddcName
- the name of the ddcRemoteException
- RemoteExceptionvoid finishSQLTransaction(int token, boolean commit, String ddcName) throws RemoteException
token
- User tokenddcName
- the ddc namecommit
- True, if commit, else rollbackRemoteException
- RemoteExceptionList<SaDocumentInfo> getFolderChildren(int token, String folderTableDDC, String folderId, int depth, SaQueryInfo filter, int allowedMaxNrOfChildFolders) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tablefolderId
- Folder IDdepth
- Depth (range: 1..n), if lower than 1 an exception is thrownfilter
- Additional HQL filter criteriaallowedMaxNrOfChildFolders
- allowed maximum number of resultsRemoteException
- RemoteExceptionSaDocumentInfo getFolderParent(int token, String folderTableDDC, String folderId) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tablefolderId
- Folder IDRemoteException
- RemoteExceptionList<SaDocumentInfo> getFolderFromPath(int token, String folderTableDDC, String startNodeId, String folderPath, boolean exact) throws RemoteException
token
- user tokenfolderTableDDC
- 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.RemoteException
- RemoteExceptionString createFolder(int token, SaFolderSaveInfo info) throws RemoteException
token
- user tokeninfo
- Folder save infoRemoteException
- RemoteExceptionvoid updateFolder(int token, String folderTableDDC, String folderId, List<SaPropertyValue> values) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tablefolderId
- Folder IDvalues
- ValuesRemoteException
- RemoteExceptionList<SaDocumentInfo> searchFolderDocuments(int token, String folderTableDDC, String folderId, SaQueryInfo hqlFilter) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tablefolderId
- Folder IDhqlFilter
- HQL query for document tables. The DDC name must be defined as $DDC$.RemoteException
- RemoteExceptionvoid deleteFolder(int token, String folderTableDDC, String folderId) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tablefolderId
- Folder IDRemoteException
- RemoteExceptionString copyFolder(int token, String folderTableDDC, String folderId, String destinationId, String beforeChild, boolean withDocuments) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tablefolderId
- Folder IDdestinationId
- Destination folder IDbeforeChild
- Child ID or empty for appendwithDocuments
- True, if documents should be copiedRemoteException
- RemoteExceptionvoid moveFolder(int token, String folderTableDDC, String folderId, String destinationId, String beforeChild) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tablefolderId
- Folder IDdestinationId
- Destination folder IDbeforeChild
- Child ID or empty for appendRemoteException
- RemoteExceptionvoid addToFolder(int token, String folderTableDDC, String documentId, String documentDDC, String folderId) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tabledocumentId
- Document SysRowIddocumentDDC
- Document DDC namefolderId
- Destination folder IDRemoteException
- RemoteExceptionvoid removeFromFolder(int token, String folderTableDDC, String documentSysRowId, String documentDDC, String folderId) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tabledocumentSysRowId
- Document SysRowIddocumentDDC
- Document DDC namefolderId
- Folder IDRemoteException
- RemoteExceptionvoid moveToFolder(int token, String folderTableDDC, String documentId, String documentDDC, String folderId, String destinationId) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tabledocumentId
- Document SysRowIddocumentDDC
- Document DDC namefolderId
- Source folder IDdestinationId
- Destination folder IDRemoteException
- RemoteExceptionList<SaDocumentInfo> getDocumentFolders(int token, String folderTableDDC, String documentDDC, String sysRowId) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tabledocumentDDC
- Document DDCsysRowId
- Document sysRowIdRemoteException
- RemoteExceptionlong getDocumentFolderCount(int token, String folderTableDDC, String documentDDC, String sysRowId) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tabledocumentDDC
- Document DDCsysRowId
- Document sysRowIdRemoteException
- RemoteExceptionSaDocumentInfo getFolderInfo(int token, String folderTableDDC, String folderId, boolean forceLoadVariables) throws RemoteException
token
- User tokenfolderTableDDC
- Folder tablefolderId
- Folder idforceLoadVariables
- if true, variables will be loaded from medium if the DDC does not contain the
SYSPROPERTIES fieldRemoteException
- Remote exceptionvoid setFolderAcl(int token, String folderTableDDC, String folderId, String aclName) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tablefolderId
- Folder IDaclName
- ACL nameRemoteException
- RemoteExceptionSaDocAccessData getFolderRights(int token, String folderTableDDC, String folderId) throws RemoteException
token
- user tokenfolderTableDDC
- Folder tablefolderId
- Folder IDRemoteException
- RemoteExceptionList<String> getSystemFiles(int clientToken, SystemFileKind kind, String filter) throws RemoteException
clientToken
- The current user token.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.RemoteException
- RemoteExceptionvoid logClientEvent(int token, String hdoc, SaConstants.ProtoEvents event, String remark) throws RemoteException
token
- user tokenhdoc
- Document HDOCevent
- Event typeremark
- RemarkRemoteException
- Remote exceptionvoid changePassword(String user, String oldPassword, String client, String newPassword) throws RemoteException
logon(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 passwordRemoteException
- exceptionList<UsersRights> getAuthorizedUsers(int clientToken, String hDoc, String rights, MatchKind match) throws RemoteException
clientToken
- The current user token.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 rightsRemoteException
- exceptionint getArchivedSize(int clientToken, String hDoc) throws RemoteException
clientToken
- The current user token.hDoc
- The document whose size is wanted.RemoteException
- exceptionSaFolderClass getFolderClass(int clientToken, String className) throws RemoteException, com.lexmark.saperion.exceptions.system.BackendSystemException
clientToken
- The current user token.className
- Class name in dotted notationRemoteException
- exception on reading folder classcom.lexmark.saperion.exceptions.system.BackendSystemException
Set<SaFolderClass> searchFolderClass(int clientToken, SaFolderClassSearchInfo searchInfo) throws RemoteException, com.lexmark.saperion.exceptions.system.BackendSystemException
clientToken
- The current user token.searchInfo
- bean that contains properties to search forRemoteException
- exception when searching for classescom.lexmark.saperion.exceptions.system.BackendSystemException
void storeSystemFile(int clientToken, SystemFileKind kind, String name, byte[] data) throws RemoteException
clientToken
- The current user token.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.RemoteException
- exceptionbyte[] loadSystemFile(int clientToken, SystemFileKind kind, String name) throws RemoteException
clientToken
- The current user token.kind
- The kind of system file to loadname
- The name of the file to load.RemoteException
- exceptionString getRMIVersion() throws RemoteException
RemoteException
- exceptionSet<FolderUpdateInfo> getFolderUpdateInfo(int clientToken, Map<String,Long> sysrowids) throws RemoteException
clientToken
- The current user token.sysrowids
- Map of SYSROWIDs with time stamps to check against the cache map of changed
folders.RemoteException
- exceptionFolderUpdateInfo
void setVariables(int clientToken, int element, Map<String,String> variables) throws RemoteException
clientToken
- The current user token.element
- Element Number where the Variables should be set to. (0 = Structure)variables
- Map of Key-Value Pairs for setting VariablesRemoteException
- exceptionSapDocInfo checkSapUrl(int clientToken, String url) throws RemoteException
clientToken
- The current user token.url
- SAP URLRemoteException
- exception<ResultType extends Serializable,ExceptionType extends Exception> ResultType newInvoke(int clientToken, com.lexmark.saperion.remote.common.operations.Operation<ResultType,ExceptionType,com.lexmark.saperion.remote.common.Connection> operation) throws RemoteException, ExceptionType extends Exception
Operation
that throws ecm exceptions
on the server side.ResultType
- the type of the result of the operationclientToken
- the used user tokenoperation
- the operation to invokeRemoteException
- on network errorsExceptionType
- when the operation threw an exception it will be thrownExceptionType extends Exception
<T extends Serializable> T invoke(int clientToken, com.lexmark.saperion.remote.common.operations.Operation<T,SaBasicException,LegacyConnection> operation) throws RemoteException, SaBasicException
Operation
on the server side.T
- The return typeoperation
- The operation to invokeclientToken
- The current user token.RemoteException
SaBasicException
void sendBarcode(int clientToken, String indexMask, String docUid, String contentRep, String sid, String docType, String value, int mandant) throws RemoteException
clientToken
- The current user token.indexMask
- Index mask namedocUid
- Document UIDcontentRep
- SAP Content repositorysid
- SAP IDdocType
- Document typevalue
- Valuemandant
- Mandant nameRemoteException
- exceptionvoid setEventsEnabled(int clientToken, boolean enabled) throws RemoteException
clientToken
- The current user token.enabled
- true, if events should be enabled, otherwise false.RemoteException
boolean getEventsEnabled(int clientToken) throws RemoteException
clientToken
- The current user token.RemoteException
DDC getDDC(int clientToken, String ddcName) throws RemoteException
clientToken
- The current user token.ddcName
- the name of the DDCRemoteException
- system error when retrieving information about requested DDCvoid setDocumentState(int clientToken, String ddcName, String hdoc, String value) throws RemoteException
clientToken
- the current user tokenddcName
- DDC name of the documenthdoc
- HDOC of the documentvalue
- value to setRemoteException
- system error when setting document stateInjector getInjector(int clientToken) throws RemoteException
clientToken
- the token of the sessionRemoteException
- rmi errorscom.lexmark.saperion.remote.common.operations.document.content.stream.StreamingConfiguration getStreamingConfiguration() throws RemoteException, com.lexmark.saperion.exceptions.EcmException
streaming configuration
.streaming configuration
RemoteException
com.lexmark.saperion.exceptions.EcmException
Map<String,String> getFullTextFields(int token, String ddcName, List<String> fullTextFields, String hdoc) throws RemoteException, com.lexmark.saperion.exceptions.EcmException
token
- Rmi TokenddcName
- name of the DDCfullTextFields
- List of Fields which are of Text retrieval type.
Make sure to prefix SaConstants.FULL_TEXT_COLUMN_PREFIX
hdoc
- hdoc of the documentRemoteException
com.lexmark.saperion.exceptions.EcmException
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.