public class NavigationClassicConnectorService extends ClassicConnectorService implements NavigationService
| Modifier and Type | Class and Description |
|---|---|
static class |
NavigationClassicConnectorService.DefinedTreeParts
Tree parts.
|
NO_LIMIT_MAX_NR_OF_NODES_PER_LEVEL| Constructor and Description |
|---|
NavigationClassicConnectorService()
Creates a new DefClassicConnectorService.
|
NavigationClassicConnectorService(ClassicConnectorProvider conProvider)
Constructor - used for mock tests.
|
| Modifier and Type | Method and Description |
|---|---|
FolderId |
addFavoriteFolder(String name,
Properties props,
String content)
Adds a new node to the favorite folder with the given name, properties and content.
|
NavigationNode |
addFolder(NavigationNode node,
String childName,
com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType,
Properties properties)
Adds a folder with the given name to the node and returns the result containing the new
child.
|
NavigationNode |
addLinkFolder(NavigationNode node,
String childName,
FolderId destination)
Adds a link folder with the given name to the node and returns the result containing the new
child.
|
void |
addToFolder(Set<FolderId> folderIds,
Set<DocumentId> documentIDs)
Adds documents to the specified folders.
|
NavigationNode |
addWebpartFolder(NavigationNode node,
String childName,
String destination)
Adds a webpart folder with the given name to the node and returns the result containing the
new child.
|
NavigationNode |
copyFolder(FolderId folderId,
NavigationNode destinationNode,
FolderId beforeChildId,
boolean withDocuments)
Copies a folder to the specified location.
|
void |
deleteFolder(NavigationNode node)
Deletes the given folder.
|
void |
deleteFolderById(FolderId id)
Deletes the folder identified by the specified id.
|
Long |
getBoxCount(int boxId)
Deprecated.
use
#getBoxTotalAndUnreadCount(int) instead |
com.saperion.wf.BoxCount |
getBoxTotalAndUnreadCount(int boxId,
WorkflowNodeInfo.Filter boxFilter)
Returns the count of all elements and of all unread elements in the given box.
|
Map<Integer,com.saperion.wf.BoxCount> |
getBoxTotalAndUnreadCounts(Set<Integer> boxIds)
Returns the count of all elements and of all unread elements in the given boxes.
|
long |
getDocumentFolderCount(DocumentId id)
Retrieves the count over all folders the document is contained in.
|
List<FolderId> |
getDocumentFolders(DocumentId id)
Retrieves the folders that contain the specified document.
|
List<String> |
getFolderAcl(FolderId folderId)
Gets ACL for folder.
|
FolderNode |
getFolderById(FolderId id)
Search a folder by id.
|
FolderNode |
getFolderByPath(String ddc,
String path)
Search a folder by path.
|
List<FolderInfo> |
getFolderChildren(FolderId id)
Retrieves the children of the folder identified by the specified id.
|
FolderClass |
getFolderClass(String className)
Returns the folder class with the specified name or null if no such class exists.
|
Set<FolderClass> |
getFolderClassesForDDC(String ddcName,
com.saperion.constants.SaFolderConstants.CLASS_TYPE classType)
Returns all folder classes of a certain type that can be used for the specified DDC.
|
FolderInfo |
getFolderInfo(FolderId id)
Retrieves information about the specified folder.
|
List<String> |
getFolderTables()
Reads all folder table names.
|
NavigationTree |
getFolderTree(FolderId root,
com.saperion.rmi.SaQueryInfo filter)
Generates a folder tree stated at
|
Set<com.saperion.folder.FolderUpdateInfo> |
getFolderUpdateInfo(Map<String,Long> folderIds)
Get Set of folders to refresh on client side.
|
int |
getInboxId()
Reads the inbox id for the current user.
|
com.saperion.ngc.iform.xml.Form |
getMaskDefinition(String maskName)
Retrieves the mask definition with the given name.
|
com.saperion.ngc.iform.xml.Form |
getMaskDefinition(String maskName,
boolean ignoreCompatibility)
Retrieves the mask definition with the given name.
|
NavigationTree |
getNavigationTree(String folderDDC,
com.saperion.rmi.SaQueryInfo filter)
Returns the navigation tree.
|
NavigationNode |
getNextLevelFolders(NavigationNode node,
com.saperion.rmi.SaQueryInfo filter,
int allowedMaxNrOfNodesPerLevel)
Returns the folders of the next level.
|
com.saperion.wf.BoxCount |
getTaskCounts()
Returns the number or read and unread tasks for the current user.
|
NavigationNode |
getWorkflowNodes(NavigationNode navigationNode)
Reads the workflow tree part.
|
boolean |
hasFolder(String folderId) |
void |
moveFolder(FolderId folderId,
FolderId targetFolderId,
FolderId beforeFolderId)
Moves folder.
|
void |
removeFromFolder(Set<FolderId> folderSysRowIds,
DocumentId documentId)
Removes the specified document from a folder.
|
NavigationNode |
renameFolder(NavigationNode node,
String name)
Renames folder.
|
FolderId |
resolveLink(FolderId linkId)
Resolves a link folder and returns the link destination.
|
void |
setFolderAcl(FolderId folderId,
String acl)
Sets ACL for folder.
|
void |
storeMaskDefinition(String maskName,
com.saperion.ngc.iform.xml.Form mask)
Deprecated.
method no longer supported
|
void |
updateFolder(FolderId id,
Properties nameValuePairs)
Updates the properties of a folder.
|
convertAuthenticationException, getConnectionProvider, getSession, getWfConnectionProvider, isActivepublic NavigationClassicConnectorService()
public NavigationClassicConnectorService(ClassicConnectorProvider conProvider)
conProvider - Connection providerpublic final com.saperion.ngc.iform.xml.Form getMaskDefinition(String maskName) throws SystemException, UnsupportedFormException, AuthenticationException
getMaskDefinition in interface NavigationServicemaskName - Mask definition nameSystemException - system exceptionUnsupportedFormException - when the form can not be used in WebClientAuthenticationException - authentication exceptionNavigationService.getMaskDefinition(java.lang.String)public com.saperion.ngc.iform.xml.Form getMaskDefinition(String maskName, boolean ignoreCompatibility) throws SystemException, UnsupportedFormException, AuthenticationException
getMaskDefinition in interface NavigationServicemaskName - Mask definition nameignoreCompatibility - if true, masks that are not compatible with the web client are returnedSystemException - system exceptionUnsupportedFormException - when the form can not be used in WebClientAuthenticationException - authentication exceptionNavigationService.getMaskDefinition(java.lang.String, boolean)@Deprecated public void storeMaskDefinition(String maskName, com.saperion.ngc.iform.xml.Form mask) throws JAXBException
storeMaskDefinition in interface NavigationServicemaskName - Mask namemask - Mask formJAXBException - JAXBExceptionNavigationService.storeMaskDefinition(java.lang.String,
com.saperion.ngc.iform.xml.Form)public int getInboxId()
throws AuthenticationException,
SystemException
getInboxId in interface NavigationServiceAuthenticationException - authentication exceptionSystemException - system exceptionNavigationService.getInboxId()@Deprecated public Long getBoxCount(int boxId) throws com.saperion.exception.SaAuthenticationException, com.saperion.exception.SaSystemException
#getBoxTotalAndUnreadCount(int) insteadgetBoxCount in interface NavigationServiceboxId - The if of the box to get the cout from.com.saperion.exception.SaAuthenticationException - If an authentication exception occurs.com.saperion.exception.SaSystemException - If a system exception occurs.NavigationService.getBoxCount(int)public com.saperion.wf.BoxCount getBoxTotalAndUnreadCount(int boxId,
WorkflowNodeInfo.Filter boxFilter)
throws com.saperion.exception.SaAuthenticationException,
com.saperion.exception.SaSystemException
getBoxTotalAndUnreadCount in interface NavigationServiceboxId - The if of the box to get the cout from.boxFilter - filter type of the workflow box to get count forcom.saperion.exception.SaAuthenticationException - If an authentication exception occurs.com.saperion.exception.SaSystemException - If a system exception occurs.com.saperion.ngc.model.navigation.NavigationService#getBoxTotalAndUnreadCount(int)public Map<Integer,com.saperion.wf.BoxCount> getBoxTotalAndUnreadCounts(Set<Integer> boxIds) throws com.saperion.exception.SaAuthenticationException, com.saperion.exception.SaSystemException
getBoxTotalAndUnreadCounts in interface NavigationServiceboxIds - The if of the box to get the cout from.com.saperion.exception.SaAuthenticationException - If an authentication exception occurs.com.saperion.exception.SaSystemException - If a system exception occurs.NavigationService.getBoxTotalAndUnreadCounts(java.util.Set)public final NavigationTree getNavigationTree(String folderDDC, com.saperion.rmi.SaQueryInfo filter) throws NavigationException, AuthenticationException, SystemException, DocumentIdentificationException, DatabaseException, UnknownFolderTypeException
getNavigationTree in interface NavigationServicefolderDDC - Folder DDCfilter - Filter objectNavigationTree objectNavigationException - navigation exceptionAuthenticationException - Authentication exceptionSystemException - system exceptionDocumentIdentificationException - if the root node of the tree cannot be identifiedDatabaseException - database exception when trying to resolve folder propertiesUnknownFolderTypeException - when a folder with an unknown type is foundNavigationService.getNavigationTree(java.lang.String,
com.saperion.rmi.SaQueryInfo)public final NavigationNode getWorkflowNodes(NavigationNode navigationNode) throws NavigationException, AuthenticationException, SystemException, DatabaseException
getWorkflowNodes in interface NavigationServicenavigationNode - parent nodeNavigationException - navigation exceptionAuthenticationException - Authentication exceptionSystemException - system exceptionDatabaseException - database exception(com.saperion.ngc.model.navigation.intf.NavigationNode)public final NavigationTree getFolderTree(FolderId root, com.saperion.rmi.SaQueryInfo filter) throws NavigationException, AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException
getFolderTree in interface NavigationServiceroot - Root nodefilter - Filter objectNavigationException - navigation exceptionAuthenticationException - Authentication exceptionSystemException - system exceptionDatabaseException - database exceptionUnknownFolderTypeException - when a folder with an unknown type is foundNavigationService.getFolderTree(com.saperion.ngc.model.FolderId,
com.saperion.rmi.SaQueryInfo)public final FolderNode getFolderByPath(String ddc, String path) throws NavigationException, AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException
getFolderByPath in interface NavigationServiceddc - folder ddcpath - Absolute pathNavigationException - navigation exceptionAuthenticationException - Authentication exceptionSystemException - system exceptionDatabaseException - database exceptionUnknownFolderTypeException - when a folder with an unknown type is foundNavigationService.getFolderByPath(java.lang.String,
java.lang.String)public FolderNode getFolderById(FolderId id) throws AuthenticationException, SystemException, NavigationException, DatabaseException, UnknownFolderTypeException
getFolderById in interface NavigationServiceid - folder idAuthenticationException - Authentication exceptionSystemException - system exceptionNavigationException - navigation exceptionDatabaseException - database exceptionUnknownFolderTypeException - when a folder with an unknown type is foundNavigationService.getFolderById(com.saperion.ngc.model.FolderId)public final FolderId resolveLink(FolderId linkId) throws NavigationException, AuthenticationException
resolveLink in interface NavigationServicelinkId - Link folder idNavigationException - navigation exceptionAuthenticationException - Authentication exceptionNavigationService.resolveLink(com.saperion.ngc.model.FolderId)public NavigationNode getNextLevelFolders(NavigationNode node, com.saperion.rmi.SaQueryInfo filter, int allowedMaxNrOfNodesPerLevel) throws NavigationException, AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException
getNextLevelFolders in interface NavigationServicenode - nodefilter - filterallowedMaxNrOfNodesPerLevel - allowedMaxNrOfNodesPerLevelNavigationException - navigation exceptionAuthenticationException - authentication exceptionSystemException - system exceptionDatabaseException - database exceptionUnknownFolderTypeException - when a folder with an unknown type is found#getNextLevelFolders(com.saperion.ngc.model.navigation.intf.NavigationNode,
com.saperion.rmi.SaQueryInfo, int)public void deleteFolder(NavigationNode node) throws AuthenticationException, SystemException
deleteFolder in interface NavigationServicenode - navigation nodeAuthenticationException - authentication exceptionSystemException - system exception(com.saperion.ngc.model.navigation.intf.NavigationNode)public NavigationNode addFolder(NavigationNode node, String childName, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, Properties properties) throws AuthenticationException, SystemException, NavigationException, DatabaseException, UnknownFolderTypeException
addFolder in interface NavigationServicenode - parent nodechildName - name of new child node to addnodeType - node typeproperties - node propertiesAuthenticationException - authentication exceptionSystemException - system exceptionNavigationException - navigation exceptionDatabaseException - database exceptionUnknownFolderTypeException - when a folder with an unknown type is found(com.saperion.ngc.model.navigation.intf.NavigationNode, java.lang.String,
com.saperion.constants.SaFolderConstants.FOLDER_TYPE, java.util.Properties)public NavigationNode addLinkFolder(NavigationNode node, String childName, FolderId destination) throws SystemException, AuthenticationException, DatabaseException, UnknownFolderTypeException, InvalidFolderNameException
addLinkFolder in interface NavigationServicenode - parent nodechildName - name of new child node to adddestination - Destination folder idSystemException - system exceptionAuthenticationException - authentication exceptionDatabaseException - database exceptionUnknownFolderTypeException - when a folder with an unknown type is foundInvalidFolderNameException - when the folder name contained an invalid character#addLinkFolder(com.saperion.ngc.model.navigation.intf.NavigationNode, java.lang.String,
com.saperion.ngc.model.FolderId)public NavigationNode addWebpartFolder(NavigationNode node, String childName, String destination) throws SystemException, AuthenticationException, DatabaseException, UnknownFolderTypeException, InvalidFolderNameException
addWebpartFolder in interface NavigationServicenode - parent nodechildName - name of new child node to adddestination - Destination webpart idSystemException - system exceptionAuthenticationException - authentication exceptionDatabaseException - database exceptionUnknownFolderTypeException - when a folder with an unknown type is foundInvalidFolderNameException - when the folder name contained an invalid character#addWebpartFolder(com.saperion.ngc.model.navigation.intf.NavigationNode,
java.lang.String, java.lang.String)public NavigationNode renameFolder(NavigationNode node, String name) throws NavigationException, SystemException
renameFolder in interface NavigationServicenode - Nodename - NameNavigationException - navigation exceptionSystemException - system exception(com.saperion.ngc.model.navigation.intf.NavigationNode, java.lang.String)public void moveFolder(FolderId folderId, FolderId targetFolderId, FolderId beforeFolderId) throws FolderMoveException, DuplicateFolderException
moveFolder in interface NavigationServicefolderId - folder idtargetFolderId - target folderbeforeFolderId - before folderFolderMoveException - if moving failed or is not allowedDuplicateFolderException - if a node with the same name already existsNavigationService.moveFolder(com.saperion.ngc.model.FolderId,
com.saperion.ngc.model.FolderId, com.saperion.ngc.model.FolderId)public NavigationNode copyFolder(FolderId folderId, NavigationNode destinationNode, FolderId beforeChildId, boolean withDocuments) throws SystemException, AuthenticationException, NavigationException, DatabaseException, UnknownFolderTypeException
copyFolder in interface NavigationServicefolderId - id of the folder to copydestinationNode - the destination folderbeforeChildId - id of the child to insert the copied folder beforewithDocuments - documents will be copied, tooSystemException - system exceptionAuthenticationException - authentication exceptionNavigationException - navigation exceptionDatabaseException - database exceptionUnknownFolderTypeException - when a folder with an unknown type is foundNavigationService.copyFolder(com.saperion.ngc.model.FolderId,
com.saperion.ngc.model.navigation.intf.NavigationNode, com.saperion.ngc.model.FolderId,
boolean)public FolderId addFavoriteFolder(String name, Properties props, String content) throws AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException, InvalidFolderNameException
addFavoriteFolder in interface NavigationServicename - Folder nameprops - Propertiescontent - ContentAuthenticationException - authentication exceptionSystemException - system exceptionDatabaseException - database exceptionUnknownFolderTypeException - when a folder with an unknown type is foundInvalidFolderNameException - when the folder name contained an invalid characterNavigationService.addFavoriteFolder(java.lang.String,
java.util.Properties, java.lang.String)public void addToFolder(Set<FolderId> folderIds, Set<DocumentId> documentIDs) throws SystemException, AuthenticationException, DatabaseException, NavigationException
addToFolder in interface NavigationServicefolderIds - folder idsdocumentIDs - ids of documentsDatabaseExceptionSystemException - system exceptionAuthenticationException - authentication exceptionNavigationException - navigation exceptionNavigationService.addToFolder(java.util.Set,
java.util.Set)public void removeFromFolder(Set<FolderId> folderSysRowIds, DocumentId documentId) throws SystemException, AuthenticationException
removeFromFolder in interface NavigationServicefolderSysRowIds - folders to remove fromdocumentId - ID of document to removeSystemException - system exceptionAuthenticationException - authentication exceptionNavigationService.removeFromFolder(java.util.Set,
com.saperion.ngc.model.document.DocumentId)public List<FolderId> getDocumentFolders(DocumentId id) throws SystemException, AuthenticationException
getDocumentFolders in interface NavigationServiceid - document's idSystemException - system exceptionAuthenticationException - authentication exception(com.saperion.ngc.model.document.DocumentId)public long getDocumentFolderCount(DocumentId id) throws SystemException, AuthenticationException
getDocumentFolderCount in interface NavigationServiceid - document's idSystemException - system exceptionAuthenticationException - authentication exception(com.saperion.ngc.model.document.DocumentId)public void setFolderAcl(FolderId folderId, String acl) throws SystemException, AuthenticationException
setFolderAcl in interface NavigationServicefolderId - folderIdacl - set of ACL namesSystemException - system exceptionAuthenticationException - authentication exceptionNavigationService.setFolderAcl(com.saperion.ngc.model.FolderId,
java.lang.String)public List<String> getFolderAcl(FolderId folderId) throws SystemException, AuthenticationException
getFolderAcl in interface NavigationServicefolderId - folderIdSystemException - system exceptionAuthenticationException - authentication exceptionNavigationService.getFolderAcl(com.saperion.ngc.model.FolderId)public List<String> getFolderTables() throws SystemException, AuthenticationException
getFolderTables in interface NavigationServiceSystemException - System exceptionAuthenticationException - authentication exceptionNavigationService.getFolderTables()public boolean hasFolder(String folderId) throws SystemException, AuthenticationException
hasFolder in interface NavigationServicefolderId - Folder IDSystemException - System exceptionAuthenticationException - authentication exceptionNavigationService.hasFolder(java.lang.String)public FolderInfo getFolderInfo(FolderId id) throws SystemException, AuthenticationException, DatabaseException, NavigationException
getFolderInfo in interface NavigationServiceid - folder idSystemException - system exceptionAuthenticationException - authentication exceptionDatabaseException - database exceptionNavigationException - navigation exceptionNavigationService.getFolderInfo(com.saperion.ngc.model.FolderId)public void updateFolder(FolderId id, Properties nameValuePairs) throws SystemException, AuthenticationException, DatabaseException
updateFolder in interface NavigationServiceid - id of the folder to updatenameValuePairs - properties to updateSystemException - system exceptionAuthenticationException - authentication exceptionDatabaseException - database exceptionNavigationService.updateFolder(com.saperion.ngc.model.FolderId,
java.util.Properties)public FolderClass getFolderClass(String className) throws SystemException, AuthenticationException, DatabaseException
getFolderClass in interface NavigationServiceclassName - class nameSystemException - system exceptionAuthenticationException - authentication exceptionDatabaseException - database exceptionNavigationService.getFolderClass(java.lang.String)public Set<FolderClass> getFolderClassesForDDC(String ddcName, com.saperion.constants.SaFolderConstants.CLASS_TYPE classType) throws SystemException, AuthenticationException
getFolderClassesForDDC in interface NavigationServiceddcName - DDC nameclassType - the type of class to search forSystemException - system exceptionAuthenticationException - authentication exceptionNavigationService.getFolderClassesForDDC(java.lang.String,
com.saperion.constants.SaFolderConstants.CLASS_TYPE)public void deleteFolderById(FolderId id) throws SystemException, AuthenticationException, DatabaseException, NavigationException
deleteFolderById in interface NavigationServiceid - folder idSystemException - system exceptionAuthenticationException - authentication exceptionDatabaseException - database exceptionNavigationException - navigation exceptionNavigationService.deleteFolderById(com.saperion.ngc.model.FolderId)public List<FolderInfo> getFolderChildren(FolderId id) throws SystemException, AuthenticationException, DatabaseException, NavigationException
getFolderChildren in interface NavigationServiceid - folder idSystemException - system exceptionAuthenticationException - authentication exceptionDatabaseException - database exceptionNavigationException - navigation exceptionNavigationService.getFolderChildren(com.saperion.ngc.model.FolderId)public Set<com.saperion.folder.FolderUpdateInfo> getFolderUpdateInfo(Map<String,Long> folderIds) throws SystemException, AuthenticationException
getFolderUpdateInfo in interface NavigationServicefolderIds - Map of SYSROWIDs with time stamps of last refresh to check.SystemException - general errorAuthenticationException - error on the authentification / insufficient rightsNavigationService.getFolderUpdateInfo(java.util.Map)public com.saperion.wf.BoxCount getTaskCounts()
throws AuthenticationException,
SystemException
getTaskCounts in interface NavigationServiceAuthenticationException - not logged in or not allowedSystemException - system error when checking for tasksNavigationService.getTaskCounts()Copyright © 2016 SAPERION AG. All rights reserved.