Class NavigationClassicConnectorService
- java.lang.Object
-
- com.saperion.ngc.model.ClassicConnectorService
-
- com.saperion.ngc.model.navigation.NavigationClassicConnectorService
-
- All Implemented Interfaces:
NavigationService,Service
public class NavigationClassicConnectorService extends ClassicConnectorService implements NavigationService
Navigation service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNavigationClassicConnectorService.DefinedTreePartsTree parts.
-
Field Summary
-
Fields inherited from class com.saperion.ngc.model.ClassicConnectorService
ddcCache
-
Fields inherited from interface com.saperion.ngc.model.navigation.NavigationService
NO_LIMIT_MAX_NR_OF_NODES_PER_LEVEL
-
-
Constructor Summary
Constructors Constructor Description NavigationClassicConnectorService()Creates a new DefClassicConnectorService.NavigationClassicConnectorService(ClassicConnectorProvider conProvider)Constructor - used for mock tests.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FolderIdaddFavoriteFolder(java.lang.String name, java.util.Properties props, java.lang.String content)Adds a new node to the favorite folder with the given name, properties and content.NavigationNodeaddFolder(NavigationNode node, java.lang.String childName, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, java.util.Properties properties)Adds a folder with the given name to the node and returns the result containing the new child.NavigationNodeaddLinkFolder(NavigationNode node, java.lang.String childName, FolderId destination)Adds a link folder with the given name to the node and returns the result containing the new child.voidaddToFolder(java.util.Set<FolderId> folderIds, java.util.Set<DocumentId> documentIDs)Adds documents to the specified folders.NavigationNodeaddWebpartFolder(NavigationNode node, java.lang.String childName, java.lang.String destination)Adds a webpart folder with the given name to the node and returns the result containing the new child.NavigationNodecopyFolder(FolderId folderId, NavigationNode destinationNode, FolderId beforeChildId, boolean withDocuments)Copies a folder to the specified location.voiddeleteFolder(NavigationNode node)Deletes the given folder.voiddeleteFolderById(FolderId id)Deletes the folder identified by the specified id.java.lang.LonggetBoxCount(int boxId)Deprecated.usegetBoxTotalAndUnreadCount(int, Filter)insteadcom.saperion.wf.BoxCountgetBoxTotalAndUnreadCount(int boxId, WorkflowNodeInfo.Filter boxFilter)Returns the count of all elements and of all unread elements in the given box.java.util.Map<java.lang.Integer,com.saperion.wf.BoxCount>getBoxTotalAndUnreadCounts(java.util.Set<java.lang.Integer> boxIds)Returns the count of all elements and of all unread elements in the given boxes.longgetDocumentFolderCount(DocumentId id)Retrieves the count over all folders the document is contained in.java.util.List<FolderId>getDocumentFolders(DocumentId id)Retrieves the folders that contain the specified document.java.util.List<java.lang.String>getFolderAcl(FolderId folderId)Gets ACL for folder.FolderNodegetFolderById(FolderId id)Search a folder by id.FolderNodegetFolderByPath(java.lang.String ddc, java.lang.String path)Search a folder by path.java.util.List<FolderInfo>getFolderChildren(FolderId id)Retrieves the children of the folder identified by the specified id.FolderClassgetFolderClass(java.lang.String className)Returns the folder class with the specified name or null if no such class exists.java.util.Set<FolderClass>getFolderClassesForDDC(java.lang.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.FolderInfogetFolderInfo(FolderId id)Retrieves information about the specified folder.java.util.List<java.lang.String>getFolderTables()Reads all folder table names.NavigationTreegetFolderTree(FolderId root, com.saperion.rmi.SaQueryInfo filter)Generates a folder tree stated at. java.util.Set<com.saperion.folder.FolderUpdateInfo>getFolderUpdateInfo(java.util.Map<java.lang.String,java.lang.Long> folderIds)Get Set of folders to refresh on client side.intgetInboxId()Reads the inbox id for the current user.com.saperion.ngc.iform.xml.FormgetMaskDefinition(java.lang.String maskName)Retrieves the mask definition with the given name.com.saperion.ngc.iform.xml.FormgetMaskDefinition(java.lang.String maskName, boolean ignoreCompatibility)Retrieves the mask definition with the given name.NavigationTreegetNavigationTree(java.lang.String folderDDC, com.saperion.rmi.SaQueryInfo filter)Returns the navigation tree.NavigationNodegetNextLevelFolders(NavigationNode node, com.saperion.rmi.SaQueryInfo filter, int allowedMaxNrOfNodesPerLevel)Returns the folders of the next level.com.saperion.wf.BoxCountgetTaskCounts()Returns the number or read and unread tasks for the current user.NavigationNodegetWorkflowNodes(NavigationNode navigationNode)Reads the workflow tree part.booleanhasFolder(java.lang.String folderId)voidmoveFolder(FolderId folderId, FolderId targetFolderId, FolderId beforeFolderId)Moves folder.voidremoveFromFolder(java.util.Set<FolderId> folderSysRowIds, DocumentId documentId)Removes the specified document from a folder.NavigationNoderenameFolder(NavigationNode node, java.lang.String name)Renames folder.FolderIdresolveLink(FolderId linkId)Resolves a link folder and returns the link destination.voidsetFolderAcl(FolderId folderId, java.lang.String acl)Sets ACL for folder.voidstoreMaskDefinition(java.lang.String maskName, com.saperion.ngc.iform.xml.Form mask)Deprecated.method no longer supportedvoidupdateFolder(FolderId id, java.util.Properties nameValuePairs)Updates the properties of a folder.-
Methods inherited from class com.saperion.ngc.model.ClassicConnectorService
convertAuthenticationException, getCachedDDC, getConnectionProvider, getCurrentUserFromSession, getSession, getWfConnectionProvider, isActive
-
-
-
-
Constructor Detail
-
NavigationClassicConnectorService
public NavigationClassicConnectorService()
Creates a new DefClassicConnectorService.
-
NavigationClassicConnectorService
public NavigationClassicConnectorService(ClassicConnectorProvider conProvider)
Constructor - used for mock tests.- Parameters:
conProvider- Connection provider
-
-
Method Detail
-
getMaskDefinition
public final com.saperion.ngc.iform.xml.Form getMaskDefinition(java.lang.String maskName) throws SystemException, UnsupportedFormException, AuthenticationExceptionRetrieves the mask definition with the given name.- Specified by:
getMaskDefinitionin interfaceNavigationService- Parameters:
maskName- Mask definition name- Returns:
- Form
- Throws:
SystemException- system exceptionUnsupportedFormException- when the form can not be used in WebClientAuthenticationException- authentication exception- See Also:
NavigationService.getMaskDefinition(java.lang.String)
-
getMaskDefinition
public com.saperion.ngc.iform.xml.Form getMaskDefinition(java.lang.String maskName, boolean ignoreCompatibility) throws SystemException, UnsupportedFormException, AuthenticationExceptionRetrieves the mask definition with the given name. If ignoreCompatibility is set to true, masks that are not compatible with web client are returened, too.- Specified by:
getMaskDefinitionin interfaceNavigationService- 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- See Also:
NavigationService.getMaskDefinition(java.lang.String, boolean)
-
storeMaskDefinition
@Deprecated public void storeMaskDefinition(java.lang.String maskName, com.saperion.ngc.iform.xml.Form mask) throws javax.xml.bind.JAXBExceptionDeprecated.method no longer supportedStores the given form as mask with the given name.- Specified by:
storeMaskDefinitionin interfaceNavigationService- Parameters:
maskName- Mask namemask- Mask form- Throws:
javax.xml.bind.JAXBException- JAXBException- See Also:
NavigationService.storeMaskDefinition(java.lang.String, com.saperion.ngc.iform.xml.Form)
-
getInboxId
public int getInboxId() throws AuthenticationException, SystemExceptionReads the inbox id for the current user.- Specified by:
getInboxIdin interfaceNavigationService- Returns:
- Inbox id
- Throws:
AuthenticationException- authentication exceptionSystemException- system exception- See Also:
NavigationService.getInboxId()
-
getBoxCount
@Deprecated public java.lang.Long getBoxCount(int boxId) throws com.saperion.exception.SaAuthenticationException, com.saperion.exception.SaSystemExceptionDeprecated.usegetBoxTotalAndUnreadCount(int, Filter)insteadLoads and returns the box count for the given box.- Specified by:
getBoxCountin interfaceNavigationService- 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.- See Also:
NavigationService.getBoxCount(int)
-
getBoxTotalAndUnreadCount
public com.saperion.wf.BoxCount getBoxTotalAndUnreadCount(int boxId, WorkflowNodeInfo.Filter boxFilter) throws com.saperion.exception.SaAuthenticationException, com.saperion.exception.SaSystemExceptionReturns the count of all elements and of all unread elements in the given box.- Specified by:
getBoxTotalAndUnreadCountin interfaceNavigationService- Parameters:
boxId- The if of the box to get the cout from.boxFilter- filter type of the workflow box to get count for- 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.- See Also:
NavigationService.getBoxTotalAndUnreadCount(int, Filter)
-
getBoxTotalAndUnreadCounts
public java.util.Map<java.lang.Integer,com.saperion.wf.BoxCount> getBoxTotalAndUnreadCounts(java.util.Set<java.lang.Integer> boxIds) throws com.saperion.exception.SaAuthenticationException, com.saperion.exception.SaSystemExceptionReturns the count of all elements and of all unread elements in the given boxes.- Specified by:
getBoxTotalAndUnreadCountsin interfaceNavigationService- Parameters:
boxIds- 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.- See Also:
NavigationService.getBoxTotalAndUnreadCounts(java.util.Set)
-
getNavigationTree
public final NavigationTree getNavigationTree(java.lang.String folderDDC, com.saperion.rmi.SaQueryInfo filter) throws NavigationException, AuthenticationException, SystemException, DocumentIdentificationException, DatabaseException, UnknownFolderTypeException
Returns the navigation tree.- Specified by:
getNavigationTreein interfaceNavigationService- Parameters:
folderDDC- Folder DDCfilter- Filter object- Returns:
NavigationTreeobject- Throws:
NavigationException- 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 found- See Also:
NavigationService.getNavigationTree(java.lang.String, com.saperion.rmi.SaQueryInfo)
-
getWorkflowNodes
public final NavigationNode getWorkflowNodes(NavigationNode navigationNode) throws NavigationException, AuthenticationException, SystemException, DatabaseException
Reads the workflow tree part.- Specified by:
getWorkflowNodesin interfaceNavigationService- Parameters:
navigationNode- parent node- Returns:
- Workflow tree
- Throws:
NavigationException- navigation exceptionAuthenticationException- Authentication exceptionSystemException- system exceptionDatabaseException- database exception- See Also:
(com.saperion.ngc.model.navigation.intf.NavigationNode)
-
getFolderTree
public final NavigationTree getFolderTree(FolderId root, com.saperion.rmi.SaQueryInfo filter) throws NavigationException, AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException
Generates a folder tree stated at. - Specified by:
getFolderTreein interfaceNavigationService- 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- See Also:
NavigationService.getFolderTree(com.saperion.ngc.model.FolderId, com.saperion.rmi.SaQueryInfo)
-
getFolderByPath
public final FolderNode getFolderByPath(java.lang.String ddc, java.lang.String path) throws NavigationException, AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException
Search a folder by path.- Specified by:
getFolderByPathin interfaceNavigationService- 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- See Also:
NavigationService.getFolderByPath(java.lang.String, java.lang.String)
-
getFolderById
public FolderNode getFolderById(FolderId id) throws AuthenticationException, SystemException, NavigationException, DatabaseException, UnknownFolderTypeException
Search a folder by id.- Specified by:
getFolderByIdin interfaceNavigationService- 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- See Also:
NavigationService.getFolderById(com.saperion.ngc.model.FolderId)
-
resolveLink
public final FolderId resolveLink(FolderId linkId) throws NavigationException, AuthenticationException
Resolves a link folder and returns the link destination.- Specified by:
resolveLinkin interfaceNavigationService- Parameters:
linkId- Link folder id- Returns:
- Destination folder id
- Throws:
NavigationException- navigation exceptionAuthenticationException- Authentication exception- See Also:
NavigationService.resolveLink(com.saperion.ngc.model.FolderId)
-
getNextLevelFolders
public NavigationNode getNextLevelFolders(NavigationNode node, com.saperion.rmi.SaQueryInfo filter, int allowedMaxNrOfNodesPerLevel) throws NavigationException, AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException
Returns the folders of the next level.- Specified by:
getNextLevelFoldersin interfaceNavigationService- Parameters:
node- nodefilter- filterallowedMaxNrOfNodesPerLevel- allowedMaxNrOfNodesPerLevel- Returns:
- navigation node containing next level child nodes
- Throws:
NavigationException- navigation exceptionAuthenticationException- authentication exceptionSystemException- system exceptionDatabaseException- database exceptionUnknownFolderTypeException- when a folder with an unknown type is found- See Also:
#getNextLevelFolders(com.saperion.ngc.model.navigation.intf.NavigationNode, com.saperion.rmi.SaQueryInfo, int)
-
deleteFolder
public void deleteFolder(NavigationNode node) throws AuthenticationException, SystemException
Deletes the given folder.- Specified by:
deleteFolderin interfaceNavigationService- Parameters:
node- navigation node- Throws:
AuthenticationException- authentication exceptionSystemException- system exception- See Also:
(com.saperion.ngc.model.navigation.intf.NavigationNode)
-
addFolder
public NavigationNode addFolder(NavigationNode node, java.lang.String childName, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, java.util.Properties properties) throws AuthenticationException, SystemException, NavigationException, DatabaseException, UnknownFolderTypeException
Adds a folder with the given name to the node and returns the result containing the new child.- Specified by:
addFolderin interfaceNavigationService- Parameters:
node- parent nodechildName- name of new child node to addnodeType- node typeproperties- node properties- Returns:
- node containing new child
- Throws:
AuthenticationException- authentication exceptionSystemException- system exceptionNavigationException- navigation exceptionDatabaseException- database exceptionUnknownFolderTypeException- when a folder with an unknown type is found- See Also:
(com.saperion.ngc.model.navigation.intf.NavigationNode, java.lang.String, com.saperion.constants.SaFolderConstants.FOLDER_TYPE, java.util.Properties)
-
addLinkFolder
public NavigationNode addLinkFolder(NavigationNode node, java.lang.String childName, FolderId destination) throws SystemException, AuthenticationException, DatabaseException, UnknownFolderTypeException, InvalidFolderNameException
Adds a link folder with the given name to the node and returns the result containing the new child.- Specified by:
addLinkFolderin interfaceNavigationService- Parameters:
node- parent nodechildName- name of new child node to adddestination- Destination folder id- Returns:
- node containing new child
- 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- See Also:
#addLinkFolder(com.saperion.ngc.model.navigation.intf.NavigationNode, java.lang.String, com.saperion.ngc.model.FolderId)
-
addWebpartFolder
public NavigationNode addWebpartFolder(NavigationNode node, java.lang.String childName, java.lang.String destination) throws SystemException, AuthenticationException, DatabaseException, UnknownFolderTypeException, InvalidFolderNameException
Adds a webpart folder with the given name to the node and returns the result containing the new child.- Specified by:
addWebpartFolderin interfaceNavigationService- Parameters:
node- parent nodechildName- name of new child node to adddestination- Destination webpart id- Returns:
- node containing new child
- 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- See Also:
#addWebpartFolder(com.saperion.ngc.model.navigation.intf.NavigationNode, java.lang.String, java.lang.String)
-
renameFolder
public NavigationNode renameFolder(NavigationNode node, java.lang.String name) throws NavigationException, SystemException
Renames folder.- Specified by:
renameFolderin interfaceNavigationService- Parameters:
node- Nodename- Name- Returns:
- renamed folder
- Throws:
NavigationException- navigation exceptionSystemException- system exception- See Also:
(com.saperion.ngc.model.navigation.intf.NavigationNode, java.lang.String)
-
moveFolder
public void moveFolder(FolderId folderId, FolderId targetFolderId, FolderId beforeFolderId) throws FolderMoveException, DuplicateFolderException
Moves folder.- Specified by:
moveFolderin interfaceNavigationService- 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- See Also:
NavigationService.moveFolder(com.saperion.ngc.model.FolderId, com.saperion.ngc.model.FolderId, com.saperion.ngc.model.FolderId)
-
copyFolder
public NavigationNode copyFolder(FolderId folderId, NavigationNode destinationNode, FolderId beforeChildId, boolean withDocuments) throws SystemException, AuthenticationException, NavigationException, DatabaseException, UnknownFolderTypeException
Copies a folder to the specified location.- Specified by:
copyFolderin interfaceNavigationService- Parameters:
folderId- id of the folder to copydestinationNode- the destination folderbeforeChildId- id of the child to insert the copied folder beforewithDocuments- documents will be copied, too- Returns:
- the new child
- Throws:
SystemException- system exceptionAuthenticationException- authentication exceptionNavigationException- navigation exceptionDatabaseException- database exceptionUnknownFolderTypeException- when a folder with an unknown type is found- See Also:
NavigationService.copyFolder(com.saperion.ngc.model.FolderId, com.saperion.ngc.model.navigation.intf.NavigationNode, com.saperion.ngc.model.FolderId, boolean)
-
addFavoriteFolder
public FolderId addFavoriteFolder(java.lang.String name, java.util.Properties props, java.lang.String content) throws AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException, InvalidFolderNameException
Adds a new node to the favorite folder with the given name, properties and content.- Specified by:
addFavoriteFolderin interfaceNavigationService- Parameters:
name- Folder nameprops- Propertiescontent- Content- Returns:
- Folder id
- Throws:
AuthenticationException- authentication exceptionSystemException- system exceptionDatabaseException- database exceptionUnknownFolderTypeException- when a folder with an unknown type is foundInvalidFolderNameException- when the folder name contained an invalid character- See Also:
NavigationService.addFavoriteFolder(java.lang.String, java.util.Properties, java.lang.String)
-
addToFolder
public void addToFolder(java.util.Set<FolderId> folderIds, java.util.Set<DocumentId> documentIDs) throws SystemException, AuthenticationException, DatabaseException, NavigationException
Adds documents to the specified folders.- Specified by:
addToFolderin interfaceNavigationService- Parameters:
folderIds- folder idsdocumentIDs- ids of documents- Throws:
DatabaseExceptionSystemException- system exceptionAuthenticationException- authentication exceptionNavigationException- navigation exception- See Also:
NavigationService.addToFolder(java.util.Set, java.util.Set)
-
removeFromFolder
public void removeFromFolder(java.util.Set<FolderId> folderSysRowIds, DocumentId documentId) throws SystemException, AuthenticationException
Removes the specified document from a folder.- Specified by:
removeFromFolderin interfaceNavigationService- Parameters:
folderSysRowIds- folders to remove fromdocumentId- ID of document to remove- Throws:
SystemException- system exceptionAuthenticationException- authentication exception- See Also:
NavigationService.removeFromFolder(java.util.Set, com.saperion.ngc.model.document.DocumentId)
-
getDocumentFolders
public java.util.List<FolderId> getDocumentFolders(DocumentId id) throws SystemException, AuthenticationException
Retrieves the folders that contain the specified document.- Specified by:
getDocumentFoldersin interfaceNavigationService- Parameters:
id- document's id- Returns:
- list of folder document infos
- Throws:
SystemException- system exceptionAuthenticationException- authentication exception- See Also:
(com.saperion.ngc.model.document.DocumentId)
-
getDocumentFolderCount
public long getDocumentFolderCount(DocumentId id) throws SystemException, AuthenticationException
Retrieves the count over all folders the document is contained in.- Specified by:
getDocumentFolderCountin interfaceNavigationService- Parameters:
id- document's id- Returns:
- folder count
- Throws:
SystemException- system exceptionAuthenticationException- authentication exception- See Also:
(com.saperion.ngc.model.document.DocumentId)
-
setFolderAcl
public void setFolderAcl(FolderId folderId, java.lang.String acl) throws SystemException, AuthenticationException
Sets ACL for folder.- Specified by:
setFolderAclin interfaceNavigationService- Parameters:
folderId- folderIdacl- set of ACL names- Throws:
SystemException- system exceptionAuthenticationException- authentication exception- See Also:
NavigationService.setFolderAcl(com.saperion.ngc.model.FolderId, java.lang.String)
-
getFolderAcl
public java.util.List<java.lang.String> getFolderAcl(FolderId folderId) throws SystemException, AuthenticationException
Gets ACL for folder.- Specified by:
getFolderAclin interfaceNavigationService- Parameters:
folderId- folderId- Returns:
- list of ACL names
- Throws:
SystemException- system exceptionAuthenticationException- authentication exception- See Also:
NavigationService.getFolderAcl(com.saperion.ngc.model.FolderId)
-
getFolderTables
public java.util.List<java.lang.String> getFolderTables() throws SystemException, AuthenticationExceptionReads all folder table names.- Specified by:
getFolderTablesin interfaceNavigationService- Returns:
- List of folder table names
- Throws:
SystemException- System exceptionAuthenticationException- authentication exception- See Also:
NavigationService.getFolderTables()
-
hasFolder
public boolean hasFolder(java.lang.String folderId) throws SystemException, AuthenticationException- Specified by:
hasFolderin interfaceNavigationService- Parameters:
folderId- Folder ID- Returns:
- True, if folder exists.
- Throws:
SystemException- System exceptionAuthenticationException- authentication exception- See Also:
NavigationService.hasFolder(java.lang.String)
-
getFolderInfo
public FolderInfo getFolderInfo(FolderId id) throws SystemException, AuthenticationException, DatabaseException, NavigationException
Retrieves information about the specified folder.- Specified by:
getFolderInfoin interfaceNavigationService- Parameters:
id- folder id- Returns:
- folder info
- Throws:
SystemException- system exceptionAuthenticationException- authentication exceptionDatabaseException- database exceptionNavigationException- navigation exception- See Also:
NavigationService.getFolderInfo(com.saperion.ngc.model.FolderId)
-
updateFolder
public void updateFolder(FolderId id, java.util.Properties nameValuePairs) throws SystemException, AuthenticationException, DatabaseException
Updates the properties of a folder.- Specified by:
updateFolderin interfaceNavigationService- Parameters:
id- id of the folder to updatenameValuePairs- properties to update- Throws:
SystemException- system exceptionAuthenticationException- authentication exceptionDatabaseException- database exception- See Also:
NavigationService.updateFolder(com.saperion.ngc.model.FolderId, java.util.Properties)
-
getFolderClass
public FolderClass getFolderClass(java.lang.String className) throws SystemException, AuthenticationException, DatabaseException
Returns the folder class with the specified name or null if no such class exists.- Specified by:
getFolderClassin interfaceNavigationService- Parameters:
className- class name- Returns:
- folder class or null if not found
- Throws:
SystemException- system exceptionAuthenticationException- authentication exceptionDatabaseException- database exception- See Also:
NavigationService.getFolderClass(java.lang.String)
-
getFolderClassesForDDC
public java.util.Set<FolderClass> getFolderClassesForDDC(java.lang.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.- Specified by:
getFolderClassesForDDCin interfaceNavigationService- Parameters:
ddcName- DDC nameclassType- the type of class to search for- Returns:
- set of folder classes
- Throws:
SystemException- system exceptionAuthenticationException- authentication exception- See Also:
NavigationService.getFolderClassesForDDC(java.lang.String, com.saperion.constants.SaFolderConstants.CLASS_TYPE)
-
deleteFolderById
public void deleteFolderById(FolderId id) throws SystemException, AuthenticationException, DatabaseException, NavigationException
Deletes the folder identified by the specified id.- Specified by:
deleteFolderByIdin interfaceNavigationService- Parameters:
id- folder id- Throws:
SystemException- system exceptionAuthenticationException- authentication exceptionDatabaseException- database exceptionNavigationException- navigation exception- See Also:
NavigationService.deleteFolderById(com.saperion.ngc.model.FolderId)
-
getFolderChildren
public java.util.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.- Specified by:
getFolderChildrenin interfaceNavigationService- Parameters:
id- folder id- Returns:
- list of children
- Throws:
SystemException- system exceptionAuthenticationException- authentication exceptionDatabaseException- database exceptionNavigationException- navigation exception- See Also:
NavigationService.getFolderChildren(com.saperion.ngc.model.FolderId)
-
getFolderUpdateInfo
public java.util.Set<com.saperion.folder.FolderUpdateInfo> getFolderUpdateInfo(java.util.Map<java.lang.String,java.lang.Long> folderIds) throws SystemException, AuthenticationExceptionGet Set of folders to refresh on client side.- Specified by:
getFolderUpdateInfoin interfaceNavigationService- Parameters:
folderIds- Map of SYSROWIDs with time stamps of last refresh to check.- Returns:
- Set of folders that shall be refreshed.
- Throws:
SystemException- general errorAuthenticationException- error on the authentification / insufficient rights- See Also:
NavigationService.getFolderUpdateInfo(java.util.Map)
-
getTaskCounts
public com.saperion.wf.BoxCount getTaskCounts() throws AuthenticationException, SystemExceptionReturns the number or read and unread tasks for the current user. The count is created by summing up the counts of all workflow boxes.- Specified by:
getTaskCountsin interfaceNavigationService- Returns:
- global count
- Throws:
AuthenticationException- not logged in or not allowedSystemException- system error when checking for tasks- See Also:
NavigationService.getTaskCounts()
-
-