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 class
NavigationClassicConnectorService.DefinedTreeParts
Tree 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 FolderId
addFavoriteFolder(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.NavigationNode
addFolder(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.NavigationNode
addLinkFolder(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.void
addToFolder(java.util.Set<FolderId> folderIds, java.util.Set<DocumentId> documentIDs)
Adds documents to the specified folders.NavigationNode
addWebpartFolder(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.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.java.lang.Long
getBoxCount(int boxId)
Deprecated.usegetBoxTotalAndUnreadCount(int, Filter)
insteadcom.saperion.wf.BoxCount
getBoxTotalAndUnreadCount(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.long
getDocumentFolderCount(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.FolderNode
getFolderById(FolderId id)
Search a folder by id.FolderNode
getFolderByPath(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.FolderClass
getFolderClass(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.FolderInfo
getFolderInfo(FolderId id)
Retrieves information about the specified folder.java.util.List<java.lang.String>
getFolderTables()
Reads all folder table names.NavigationTree
getFolderTree(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.int
getInboxId()
Reads the inbox id for the current user.com.saperion.ngc.iform.xml.Form
getMaskDefinition(java.lang.String maskName)
Retrieves the mask definition with the given name.com.saperion.ngc.iform.xml.Form
getMaskDefinition(java.lang.String maskName, boolean ignoreCompatibility)
Retrieves the mask definition with the given name.NavigationTree
getNavigationTree(java.lang.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(java.lang.String folderId)
void
moveFolder(FolderId folderId, FolderId targetFolderId, FolderId beforeFolderId)
Moves folder.void
removeFromFolder(java.util.Set<FolderId> folderSysRowIds, DocumentId documentId)
Removes the specified document from a folder.NavigationNode
renameFolder(NavigationNode node, java.lang.String name)
Renames folder.FolderId
resolveLink(FolderId linkId)
Resolves a link folder and returns the link destination.void
setFolderAcl(FolderId folderId, java.lang.String acl)
Sets ACL for folder.void
storeMaskDefinition(java.lang.String maskName, com.saperion.ngc.iform.xml.Form mask)
Deprecated.method no longer supportedvoid
updateFolder(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, AuthenticationException
Retrieves the mask definition with the given name.- Specified by:
getMaskDefinition
in 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, 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.- Specified by:
getMaskDefinition
in 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.JAXBException
Deprecated.method no longer supportedStores the given form as mask with the given name.- Specified by:
storeMaskDefinition
in 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, SystemException
Reads the inbox id for the current user.- Specified by:
getInboxId
in 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.SaSystemException
Deprecated.usegetBoxTotalAndUnreadCount(int, Filter)
insteadLoads and returns the box count for the given box.- Specified by:
getBoxCount
in 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.SaSystemException
Returns the count of all elements and of all unread elements in the given box.- Specified by:
getBoxTotalAndUnreadCount
in 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.SaSystemException
Returns the count of all elements and of all unread elements in the given boxes.- Specified by:
getBoxTotalAndUnreadCounts
in 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:
getNavigationTree
in interfaceNavigationService
- Parameters:
folderDDC
- Folder DDCfilter
- Filter object- Returns:
NavigationTree
object- 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:
getWorkflowNodes
in 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:
getFolderTree
in 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:
getFolderByPath
in 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:
getFolderById
in 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:
resolveLink
in 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:
getNextLevelFolders
in 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:
deleteFolder
in 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:
addFolder
in 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:
addLinkFolder
in 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:
addWebpartFolder
in 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:
renameFolder
in 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:
moveFolder
in 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:
copyFolder
in 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:
addFavoriteFolder
in 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:
addToFolder
in interfaceNavigationService
- Parameters:
folderIds
- folder idsdocumentIDs
- ids of documents- Throws:
DatabaseException
SystemException
- 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:
removeFromFolder
in 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:
getDocumentFolders
in 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:
getDocumentFolderCount
in 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:
setFolderAcl
in 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:
getFolderAcl
in 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, AuthenticationException
Reads all folder table names.- Specified by:
getFolderTables
in 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:
hasFolder
in 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:
getFolderInfo
in 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:
updateFolder
in 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:
getFolderClass
in 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:
getFolderClassesForDDC
in 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:
deleteFolderById
in 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:
getFolderChildren
in 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, AuthenticationException
Get Set of folders to refresh on client side.- Specified by:
getFolderUpdateInfo
in 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, SystemException
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.- Specified by:
getTaskCounts
in interfaceNavigationService
- Returns:
- global count
- Throws:
AuthenticationException
- not logged in or not allowedSystemException
- system error when checking for tasks- See Also:
NavigationService.getTaskCounts()
-
-