public abstract class AbstractFolderRMIClientCommand extends AbstractRMIClientCommand
APPEND_CONTENT, appl, credentials, LOGGER, props, session, sysConnector, writeBufferSize| Constructor and Description |
|---|
AbstractFolderRMIClientCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToFolder(String folderTableDDC,
String documentId,
String documentDDC,
String folderId)
Adds the document to a given folder.
|
String |
copyFolder(String folderTableDDC,
String folderId,
String destinationId,
String beforeChild,
boolean withDocuments)
Copies the given node and all it’s children to the destination.
|
String |
createFolder(SaFolderSaveInfo info)
Creates a new node below a given node.
|
void |
deleteFolder(String folderTableDDC,
String folderId)
Deletes a given node.
|
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.
|
List<SaDocumentInfo> |
getFolderChildren(String folderTableDDC,
String folderId,
int depth,
SaQueryInfo filter,
int allowedMaxNrOfChildFoldersPerLevel)
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.
|
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.
|
void |
removeFromFolder(String folderTableDDC,
String documentSysRowId,
String documentDDC,
String folderId)
Remove the document filing from the given node.
|
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.
|
void |
setFolderAcl(String folderTableDDC,
String folderId,
String aclName)
Sets an ACL for the given folder.
|
void |
updateFolder(String folderTableDDC,
String folderId,
List<SaPropertyValue> values)
Updates a given node with the given properties.
|
getRemoteCommand, init, reLogon, reLogonAfterConnectionFailureclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddComment, addHistory, cacheDocument, changePassword, checkoutDocument, checkSapUrl, clearContent, closeDocument, createDocument, createLink, createLookupEntry, deleteDocument, deleteLookupEntry, deleteSetting, discardDocument, dsicardCheckout, executeCommand, finishSQLTransaction, finishTransaction, getACLNames, getACLRights, getAcls, getAllACLs, getAnnotations, getArchivedSize, getAuthorizedUsers, getBoxCount, getBoxDefinitions, getCommandInfos, getCommandInfos, getCommentInfos, getCommitMode, getCompleteHistoryInfos, getDDC, getDeleteMode, getEventsEnabled, getFeatures, getFieldDescriptions, getFieldDescriptions, getFulltext, getFullTextFields, getHDocForSysRowId, getHistoryInfos, getIdsFromQuery, getInvolvedUsers, getLicenseCount, getLockInfo, getLocks, getLocks, getMandant, getMember, getMembers, getNodeAccessData, getOutOfOffice, getParentTask, getRealDBName, getRMIVersion, getServerInfos, getSession, getSetting, getStringQueryResult, getSubstitute, getSystemConnector, getSystemFiles, getSystemInfo, getSystemSetting, getTask, getTaskAuditList, getTaskList, getThumbnail, getToken, getUserIdsForQuery, getUsers, getUserSetting, getVersionList, getWorkflowDefinitions, invoke, isAlive, isRevisionEnabled, loadDDCNames, loadFolderDDCNames, loadSettings, loadSystemFile, loadWorkflowDDCName, lockNode, logClientEvent, logoff, logon, readDocumentFirst, readDocumentMetadata, readDocumentNext, readVersionMetadata, readVersionMetadata, releaseDocument, removeElement, removeElement, resolveLatestHdoc, restoreVersion, saveDocument, saveDocument, searchSettings, sendBarcode, setACLName, setAnnotations, setElementMark, setEventsEnabled, setLocale, setOutOfOffice, setSetting, setSubstitute, setUsedLicense, setUserSetting, setVariables, startSQLTransaction, startTransaction, storeBpmn, storeDocument, storeDocument, storeSystemFile, unlockNode, updateLookupEntry, writeContent, writeContent, writeContent, writeContentpublic void 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 fileableSaRMIClientCommand.addToFolder(java.lang.String,
java.lang.String, java.lang.String, java.lang.String)public String copyFolder(String folderTableDDC, String folderId, String destinationId, String beforeChild, boolean withDocuments) throws SaSystemException, SaAuthenticationException, SaDDCException
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 exceptionSaRMIClientCommand.copyFolder(java.lang.String,
java.lang.String, java.lang.String, java.lang.String, boolean)public String createFolder(SaFolderSaveInfo info) throws SaSystemException, SaAuthenticationException, SaDDCException
info - Folder save infoSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaRMIClientCommand.createFolder(com.saperion.intf.SaFolderSaveInfo)public void deleteFolder(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionpublic List<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 fileableSaRMIClientCommand.getDocumentFolders(java.lang.String,
java.lang.String, java.lang.String)public long 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 fileableSaRMIClientCommand.getDocumentFolderCount(java.lang.String,
java.lang.String, java.lang.String)public List<SaDocumentInfo> getFolderChildren(String folderTableDDC, String folderId, int depth, SaQueryInfo filter, int allowedMaxNrOfChildFoldersPerLevel) throws SaSystemException, SaAuthenticationException, SaDBException, SaFolderException
folderTableDDC - Folder tablefolderId - Folder IDdepth - Depthfilter - Additional HQL filter criteriaallowedMaxNrOfChildFoldersPerLevel - allowed maximum number of resultsSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDBException - Database exceptionSaFolderException - Folder ExceptionSaRMIClientCommand.getFolderChildren(String, String, int, SaQueryInfo, int)public SaDocumentInfo getFolderInfo(String folderTableDDC, String folderId, boolean forceLoadVariables) throws SaSystemException, SaAuthenticationException, SaDBException, SaFolderException
forceLoadVariables - folderTableDDC - Folder tablefolderId - Folder idSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDBException - Database exceptionSaFolderException - Folder ExceptionSaRMIClientCommand.getFolderInfo(java.lang.String,
java.lang.String, boolean)public List<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 exceptionSaRMIClientCommand.getFolderFromPath(java.lang.String,
java.lang.String, java.lang.String, boolean)public SaDocumentInfo getFolderParent(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDBException
folderTableDDC - Folder tablefolderId - Folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDBException - Database exceptionSaRMIClientCommand.getFolderParent(java.lang.String,
java.lang.String)public SaDocAccessData getFolderRights(String folderTableDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaRMIClientCommand.getFolderRights(java.lang.String,
java.lang.String)public void 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 exceptionSaRMIClientCommand.moveFolder(java.lang.String,
java.lang.String, java.lang.String, java.lang.String)public void moveToFolder(String folderTableDDC, String documentId, String documentDDC, String folderId, String destinationId) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tabledocumentId - Document SysRowIddocumentDDC - Document DDC namefolderId - Source folder IDdestinationId - Destination folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaRMIClientCommand.moveToFolder(java.lang.String,
java.lang.String, java.lang.String, java.lang.String, java.lang.String)public void removeFromFolder(String folderTableDDC, String documentSysRowId, String documentDDC, String folderId) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tabledocumentSysRowId - Document SysRowIddocumentDDC - Document DDC namefolderId - Folder IDSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaRMIClientCommand.removeFromFolder(java.lang.String,
java.lang.String, java.lang.String, java.lang.String)public List<SaDocumentInfo> searchFolderDocuments(String folderTableDDC, String folderId, SaQueryInfo hqlFilter) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDhqlFilter - HQL query for document tables. The DDC name must be defined as $DDC$.SaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaRMIClientCommand.searchFolderDocuments(java.lang.String,
java.lang.String, com.saperion.rmi.SaQueryInfo)public void setFolderAcl(String folderTableDDC, String folderId, String aclName) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDaclName - ACL nameSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaRMIClientCommand.setFolderAcl(java.lang.String,
java.lang.String, java.lang.String)public void updateFolder(String folderTableDDC, String folderId, List<SaPropertyValue> values) throws SaSystemException, SaAuthenticationException, SaDDCException
folderTableDDC - Folder tablefolderId - Folder IDvalues - ValuesSaSystemException - Remote exceptionSaAuthenticationException - Authentication errorSaDDCException - Database exceptionSaRMIClientCommand.updateFolder(java.lang.String,
java.lang.String, java.util.List)public SaFolderClass getFolderClass(String className) throws SaSystemException, SaAuthenticationException, SaDDCException
className - Class name in dotted notationSaSystemException - Remote exceptionSaAuthenticationException - authentication errorSaDDCException - Database exceptionSaRMIClientCommand.getFolderClass(java.lang.String)public Set<SaFolderClass> searchFolderClass(SaFolderClassSearchInfo searchInfo) throws SaSystemException, SaAuthenticationException
searchInfo - bean with properties to search forSaSystemException - system exceptionSaAuthenticationException - authentication errorSaRMIClientCommand.searchFolderClass(com.saperion.rmi.SaFolderClassSearchInfo)public Set<FolderUpdateInfo> getFolderUpdateInfo(Map<String,Long> folderIds) throws SaSystemException, SaAuthenticationException
folderIds - Map of SYSROWIDs with time stamps of last refresh to check.SaSystemException - general errorSaAuthenticationException - error on the authentification / insufficient rightsSaRMIClientCommand.getFolderUpdateInfo(Map)Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.