Interface NavigationService
- All Superinterfaces:
Service
- All Known Implementing Classes:
NavigationClassicConnectorService
Interface for navigation services.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Constraint, which defines the max limit of nodes per level. -
Method Summary
Modifier and TypeMethodDescriptionaddFavoriteFolder
(String name, Properties props, String content) Adds a new node to the favorite folder with the given name, properties and content.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.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.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.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
Deletes the folder identified by the specified id.getBoxCount
(int boxId) Deprecated.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.getBoxTotalAndUnreadCounts
(Set<Integer> boxId) Returns the count of all elements and of all unread elements in the given boxes.long
Retrieves the count over all folders the document is contained in.Retrieves the folders that contain the specified document.getFolderAcl
(FolderId folderId) Gets ACL for folder.Search a folder by id.getFolderByPath
(String ddc, String path) Search a folder by path.Retrieves the children of the folder identified by the specified id.getFolderClass
(String className) Returns the folder class with the specified name or null if no such class exists.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.Retrieves information about the specified folder.Reads all folder table names.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
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.getNavigationTree
(String folderDDC, com.saperion.rmi.SaQueryInfo filter) Returns the navigation tree.getNextLevelFolders
(NavigationNode node, com.saperion.rmi.SaQueryInfo filter, int allowedMaxNrOfNodesPerLevel) Returns the folders of the next level.com.saperion.wf.BoxCount
Returns the number or read and unread tasks for the current user.getWorkflowNodes
(NavigationNode navigationNode) Reads the workflow tree part.boolean
void
moveFolder
(FolderId folderId, FolderId targetFolderId, FolderId beforeFolderId) Moves folder.void
removeFromFolder
(Set<FolderId> folderIds, DocumentId documentId) Removes the specified document from a folder.renameFolder
(NavigationNode node, String name) Renames folder.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) Stores the given form as mask with the given name.void
updateFolder
(FolderId id, Properties nameValuePairs) Updates the properties of a folder.
-
Field Details
-
NO_LIMIT_MAX_NR_OF_NODES_PER_LEVEL
static final int NO_LIMIT_MAX_NR_OF_NODES_PER_LEVELConstraint, which defines the max limit of nodes per level.- See Also:
-
-
Method Details
-
getMaskDefinition
com.saperion.ngc.iform.xml.Form getMaskDefinition(String maskName) throws SystemException, UnsupportedFormException, AuthenticationException Retrieves the mask definition with the given name.- Parameters:
maskName
- Mask definition name- Returns:
- Form
- Throws:
SystemException
- system exceptionUnsupportedFormException
- when the form can not be used in WebClientAuthenticationException
- authentication exception
-
getMaskDefinition
com.saperion.ngc.iform.xml.Form getMaskDefinition(String maskName, boolean ignoreCompatibility) throws SystemException, UnsupportedFormException, AuthenticationException Retrieves the mask definition with the given name. If ignoreCompatibility is set to true, masks that are not compatible with web client are returened, too.- Parameters:
maskName
- Mask definition nameignoreCompatibility
- if true, masks that are not compatible with the web client are returned- Returns:
- Form
- Throws:
SystemException
- system exceptionUnsupportedFormException
- when the form can not be used in WebClientAuthenticationException
- authentication exception
-
storeMaskDefinition
void storeMaskDefinition(String maskName, com.saperion.ngc.iform.xml.Form mask) throws jakarta.xml.bind.JAXBException Stores the given form as mask with the given name.- Parameters:
maskName
- Mask namemask
- Mask form- Throws:
jakarta.xml.bind.JAXBException
- JAXBException
-
getInboxId
Reads the inbox id for the current user.- Returns:
- Inbox id
- Throws:
SystemException
- system exceptionAuthenticationException
- authentication exception
-
getFolderTree
NavigationTree getFolderTree(FolderId root, com.saperion.rmi.SaQueryInfo filter) throws NavigationException, AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException Generates a folder tree stated at. - Parameters:
root
- Root nodefilter
- Filter object- Returns:
- Folder tree
- Throws:
NavigationException
- navigation exceptionAuthenticationException
- Authentication exceptionSystemException
- system exceptionDatabaseException
- database exceptionUnknownFolderTypeException
- when a folder with an unknown type is found
-
getFolderByPath
FolderNode getFolderByPath(String ddc, String path) throws NavigationException, AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException Search a folder by path.- Parameters:
ddc
- folder ddcpath
- Absolute path- Returns:
- FolderNode or null, if not found.
- Throws:
NavigationException
- navigation exceptionAuthenticationException
- Authentication exceptionSystemException
- system exceptionDatabaseException
- database exceptionUnknownFolderTypeException
- when a folder with an unknown type is found
-
getFolderById
FolderNode getFolderById(FolderId id) throws AuthenticationException, SystemException, NavigationException, DatabaseException, UnknownFolderTypeException Search a folder by id.- Parameters:
id
- folder id- Returns:
- folder node or null, if not found
- Throws:
AuthenticationException
- Authentication exceptionSystemException
- system exceptionNavigationException
- navigation exceptionDatabaseException
- database exceptionUnknownFolderTypeException
- when a folder with an unknown type is found
-
resolveLink
Resolves a link folder and returns the link destination.- Parameters:
linkId
- Link folder id- Returns:
- Destination folder id
- Throws:
NavigationException
- navigation exceptionAuthenticationException
- Authentication exception
-
moveFolder
void moveFolder(FolderId folderId, FolderId targetFolderId, FolderId beforeFolderId) throws FolderMoveException, DuplicateFolderException Moves folder.- Parameters:
folderId
- folder idtargetFolderId
- target folderbeforeFolderId
- before folder- Throws:
FolderMoveException
- if moving failed or is not allowedDuplicateFolderException
- if a node with the same name already exists
-
addFavoriteFolder
FolderId addFavoriteFolder(String name, Properties props, String content) throws AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException, InvalidFolderNameException Adds a new node to the favorite folder with the given name, properties and content.- Parameters:
name
- Folder nameprops
- Propertiescontent
- Content- Returns:
- Folder id
- Throws:
SystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exceptionUnknownFolderTypeException
- when a folder with an unknown type is foundInvalidFolderNameException
- when the folder name contained an invalid character
-
addToFolder
void addToFolder(Set<FolderId> folderIds, Set<DocumentId> documentIDs) throws SystemException, AuthenticationException, DatabaseException, NavigationException Adds documents to the specified folders.- Parameters:
folderIds
- folder idsdocumentIDs
- ids of documents- Throws:
SystemException
- system exceptionAuthenticationException
- authentication exceptionNavigationException
- navigation exceptionDatabaseException
- database exception
-
removeFromFolder
void removeFromFolder(Set<FolderId> folderIds, DocumentId documentId) throws SystemException, AuthenticationException Removes the specified document from a folder.- Parameters:
folderIds
- folders to remove fromdocumentId
- ID of document to remove- Throws:
SystemException
- system exceptionAuthenticationException
- authentication exception
-
getBoxCount
@Deprecated Long getBoxCount(int boxId) throws com.saperion.exception.SaAuthenticationException, com.saperion.exception.SaSystemException Deprecated.usegetBoxTotalAndUnreadCount(int, Filter)
insteadLoads and returns the box count for the given box.- Parameters:
boxId
- The if of the box to get the cout from.- Returns:
- the number of box workflow items.
- Throws:
com.saperion.exception.SaAuthenticationException
- If an authentication exception occurs.com.saperion.exception.SaSystemException
- If a system exception occurs.
-
getBoxTotalAndUnreadCounts
Map<Integer,com.saperion.wf.BoxCount> getBoxTotalAndUnreadCounts(Set<Integer> boxId) throws com.saperion.exception.SaAuthenticationException, com.saperion.exception.SaSystemException Returns the count of all elements and of all unread elements in the given boxes.- Parameters:
boxId
- The if of the box to get the cout from.- Returns:
- the number of all elements and of all unread element
- Throws:
com.saperion.exception.SaAuthenticationException
- If an authentication exception occurs.com.saperion.exception.SaSystemException
- If a system exception occurs.
-
getDocumentFolders
Retrieves the folders that contain the specified document.- Parameters:
id
- document's id- Returns:
- list of folder document infos
- Throws:
SystemException
- system exceptionAuthenticationException
- authentication exception
-
getDocumentFolderCount
Retrieves the count over all folders the document is contained in.- Parameters:
id
- document's id- Returns:
- folder count
- Throws:
SystemException
- system exceptionAuthenticationException
- authentication exception
-
setFolderAcl
Sets ACL for folder.- Parameters:
folderId
- folderIdacl
- set of ACL names- Throws:
SystemException
- system exceptionAuthenticationException
- authentication exception
-
getFolderAcl
Gets ACL for folder.- Parameters:
folderId
- folderId- Returns:
- list of ACL names
- Throws:
SystemException
- system exceptionAuthenticationException
- authentication exception
-
getFolderTables
Reads all folder table names.- Returns:
- List of folder table names
- Throws:
SystemException
- System exceptionAuthenticationException
- authentication exception
-
hasFolder
- Parameters:
folderId
- Folder ID- Returns:
- True, if folder exists.
- Throws:
SystemException
- System exceptionAuthenticationException
- authentication exception
-
getFolderInfo
FolderInfo getFolderInfo(FolderId id) throws SystemException, AuthenticationException, DatabaseException, NavigationException Retrieves information about the specified folder.- Parameters:
id
- folder id- Returns:
- folder info
- Throws:
SystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exceptionNavigationException
- navigation exception
-
updateFolder
void updateFolder(FolderId id, Properties nameValuePairs) throws SystemException, AuthenticationException, DatabaseException Updates the properties of a folder.- Parameters:
id
- id of the folder to updatenameValuePairs
- properties to update- Throws:
SystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exception
-
getFolderClass
FolderClass getFolderClass(String className) throws SystemException, AuthenticationException, DatabaseException Returns the folder class with the specified name or null if no such class exists.- Parameters:
className
- class name- Returns:
- folder class or null if not found
- Throws:
SystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exception
-
getFolderClassesForDDC
Set<FolderClass> getFolderClassesForDDC(String ddcName, com.saperion.constants.SaFolderConstants.CLASS_TYPE classType) throws SystemException, AuthenticationException Returns all folder classes of a certain type that can be used for the specified DDC.- Parameters:
ddcName
- DDC nameclassType
- the type of class to search for- Returns:
- set of folder classes
- Throws:
SystemException
- system exceptionAuthenticationException
- authentication exception
-
deleteFolderById
void deleteFolderById(FolderId id) throws SystemException, AuthenticationException, DatabaseException, NavigationException Deletes the folder identified by the specified id.- Parameters:
id
- folder id- Throws:
NavigationException
- navigation exceptionDatabaseException
- database exceptionAuthenticationException
- authentication exceptionSystemException
- system exception
-
getFolderChildren
List<FolderInfo> getFolderChildren(FolderId id) throws SystemException, AuthenticationException, DatabaseException, NavigationException Retrieves the children of the folder identified by the specified id. Only the direct descendants of the node are returned.- Parameters:
id
- folder id- Returns:
- list of children
- Throws:
SystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exceptionNavigationException
- navigation exception
-
getFolderUpdateInfo
Set<com.saperion.folder.FolderUpdateInfo> getFolderUpdateInfo(Map<String, Long> folderIds) throws SystemException, AuthenticationExceptionGet Set of folders to refresh on client side.- Parameters:
folderIds
- Map of SYSROWIDs with time stamps of last refresh to check.- Returns:
- Set of folders that shall be refreshed.
- Throws:
AuthenticationException
- error on the authentification / insufficient rightsSystemException
- general error
-
getTaskCounts
Returns the number or read and unread tasks for the current user. The count is created by summing up the counts of all workflow boxes.- Returns:
- global count
- Throws:
AuthenticationException
- not logged in or not allowedSystemException
- system error when checking for tasks
-
getBoxTotalAndUnreadCount(int, Filter)
instead