public interface NavigationService extends Service
Modifier and Type | Field and Description |
---|---|
static int |
NO_LIMIT_MAX_NR_OF_NODES_PER_LEVEL
Constraint, which defines the max limit of nodes per level.
|
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, Filter) 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> boxId)
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> folderIds,
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)
Stores the given form as mask with the given name.
|
void |
updateFolder(FolderId id,
Properties nameValuePairs)
Updates the properties of a folder.
|
static final int NO_LIMIT_MAX_NR_OF_NODES_PER_LEVEL
com.saperion.ngc.iform.xml.Form getMaskDefinition(String maskName) throws SystemException, UnsupportedFormException, AuthenticationException
maskName
- Mask definition nameSystemException
- system exceptionUnsupportedFormException
- when the form can not be used in WebClientAuthenticationException
- authentication exceptioncom.saperion.ngc.iform.xml.Form getMaskDefinition(String maskName, boolean ignoreCompatibility) throws SystemException, UnsupportedFormException, AuthenticationException
maskName
- 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 exceptionvoid storeMaskDefinition(String maskName, com.saperion.ngc.iform.xml.Form mask) throws JAXBException
maskName
- Mask namemask
- Mask formJAXBException
- JAXBExceptionint getInboxId() throws AuthenticationException, SystemException
SystemException
- system exceptionAuthenticationException
- authentication exceptionNavigationTree getNavigationTree(String folderDDC, com.saperion.rmi.SaQueryInfo filter) throws NavigationException, AuthenticationException, SystemException, DocumentIdentificationException, DatabaseException, UnknownFolderTypeException
folderDDC
- 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 foundNavigationNode getWorkflowNodes(NavigationNode navigationNode) throws NavigationException, AuthenticationException, SystemException, DatabaseException
navigationNode
- parent nodeNavigationException
- navigation exceptionAuthenticationException
- Authentication exceptionSystemException
- system exceptionDatabaseException
- database exceptionNavigationTree getFolderTree(FolderId root, com.saperion.rmi.SaQueryInfo filter) throws NavigationException, AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException
root
- Root nodefilter
- Filter objectNavigationException
- navigation exceptionAuthenticationException
- Authentication exceptionSystemException
- system exceptionDatabaseException
- database exceptionUnknownFolderTypeException
- when a folder with an unknown type is foundFolderNode getFolderByPath(String ddc, String path) throws NavigationException, AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException
ddc
- folder ddcpath
- Absolute pathNavigationException
- navigation exceptionAuthenticationException
- Authentication exceptionSystemException
- system exceptionDatabaseException
- database exceptionUnknownFolderTypeException
- when a folder with an unknown type is foundFolderNode getFolderById(FolderId id) throws AuthenticationException, SystemException, NavigationException, DatabaseException, UnknownFolderTypeException
id
- folder idAuthenticationException
- Authentication exceptionSystemException
- system exceptionNavigationException
- navigation exceptionDatabaseException
- database exceptionUnknownFolderTypeException
- when a folder with an unknown type is foundFolderId resolveLink(FolderId linkId) throws NavigationException, AuthenticationException
linkId
- Link folder idNavigationException
- navigation exceptionAuthenticationException
- Authentication exceptionNavigationNode getNextLevelFolders(NavigationNode node, com.saperion.rmi.SaQueryInfo filter, int allowedMaxNrOfNodesPerLevel) throws NavigationException, AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException
node
- nodefilter
- filterallowedMaxNrOfNodesPerLevel
- allowedMaxNrOfNodesPerLevelSystemException
- system exceptionAuthenticationException
- authentication exceptionNavigationException
- navigation exceptionDatabaseException
- database exceptionUnknownFolderTypeException
- when a folder with an unknown type is foundvoid deleteFolder(NavigationNode node) throws AuthenticationException, SystemException
node
- navigation nodeSystemException
- system exceptionAuthenticationException
- authentication exceptionNavigationNode addFolder(NavigationNode node, String childName, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, Properties properties) throws SystemException, AuthenticationException, NavigationException, DatabaseException, UnknownFolderTypeException
node
- 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 foundNavigationNode addLinkFolder(NavigationNode node, String childName, FolderId destination) throws SystemException, AuthenticationException, DatabaseException, UnknownFolderTypeException, InvalidFolderNameException
node
- parent nodechildName
- name of new child node to adddestination
- Destination folder idAuthenticationException
- authentication exceptionSystemException
- system exceptionDatabaseException
- database exceptionUnknownFolderTypeException
- when a folder with an unknown type is foundInvalidFolderNameException
- when the folder name contained an invalid characterNavigationNode addWebpartFolder(NavigationNode node, String childName, String destination) throws SystemException, AuthenticationException, DatabaseException, UnknownFolderTypeException, InvalidFolderNameException
node
- parent nodechildName
- name of new child node to adddestination
- Destination webpart idAuthenticationException
- authentication exceptionSystemException
- system exceptionDatabaseException
- database exceptionUnknownFolderTypeException
- when a folder with an unknown type is foundInvalidFolderNameException
- when the folder name contained an invalid characterNavigationNode renameFolder(NavigationNode node, String name) throws SystemException, NavigationException
node
- Nodename
- NameSystemException
- system exceptionNavigationException
- navigation exceptionvoid moveFolder(FolderId folderId, FolderId targetFolderId, FolderId beforeFolderId) throws FolderMoveException, DuplicateFolderException
folderId
- folder idtargetFolderId
- target folderbeforeFolderId
- before folderFolderMoveException
- if moving failed or is not allowedDuplicateFolderException
- if a node with the same name already existsNavigationNode copyFolder(FolderId folderId, NavigationNode destinationNode, FolderId beforeChildId, boolean withDocuments) throws SystemException, AuthenticationException, NavigationException, DatabaseException, UnknownFolderTypeException
folderId
- 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 foundFolderId addFavoriteFolder(String name, Properties props, String content) throws AuthenticationException, SystemException, DatabaseException, UnknownFolderTypeException, InvalidFolderNameException
name
- Folder nameprops
- Propertiescontent
- ContentSystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exceptionUnknownFolderTypeException
- when a folder with an unknown type is foundInvalidFolderNameException
- when the folder name contained an invalid charactervoid addToFolder(Set<FolderId> folderIds, Set<DocumentId> documentIDs) throws SystemException, AuthenticationException, DatabaseException, NavigationException
folderIds
- folder idsdocumentIDs
- ids of documentsSystemException
- system exceptionAuthenticationException
- authentication exceptionNavigationException
- navigation exceptionDatabaseException
- database exceptionvoid removeFromFolder(Set<FolderId> folderIds, DocumentId documentId) throws SystemException, AuthenticationException
folderIds
- folders to remove fromdocumentId
- ID of document to removeSystemException
- system exceptionAuthenticationException
- authentication exception@Deprecated Long getBoxCount(int boxId) throws com.saperion.exception.SaAuthenticationException, com.saperion.exception.SaSystemException
#getBoxTotalAndUnreadCount(int, Filter)
insteadboxId
- 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.com.saperion.wf.BoxCount getBoxTotalAndUnreadCount(int boxId, WorkflowNodeInfo.Filter boxFilter) throws com.saperion.exception.SaAuthenticationException, com.saperion.exception.SaSystemException
boxId
- 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.Map<Integer,com.saperion.wf.BoxCount> getBoxTotalAndUnreadCounts(Set<Integer> boxId) throws com.saperion.exception.SaAuthenticationException, com.saperion.exception.SaSystemException
boxId
- 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.List<FolderId> getDocumentFolders(DocumentId id) throws SystemException, AuthenticationException
id
- document's idSystemException
- system exceptionAuthenticationException
- authentication exceptionlong getDocumentFolderCount(DocumentId id) throws SystemException, AuthenticationException
id
- document's idSystemException
- system exceptionAuthenticationException
- authentication exceptionvoid setFolderAcl(FolderId folderId, String acl) throws SystemException, AuthenticationException
folderId
- folderIdacl
- set of ACL namesSystemException
- system exceptionAuthenticationException
- authentication exceptionList<String> getFolderAcl(FolderId folderId) throws SystemException, AuthenticationException
folderId
- folderIdSystemException
- system exceptionAuthenticationException
- authentication exceptionList<String> getFolderTables() throws SystemException, AuthenticationException
SystemException
- System exceptionAuthenticationException
- authentication exceptionboolean hasFolder(String folderId) throws SystemException, AuthenticationException
folderId
- Folder IDSystemException
- System exceptionAuthenticationException
- authentication exceptionFolderInfo getFolderInfo(FolderId id) throws SystemException, AuthenticationException, DatabaseException, NavigationException
id
- folder idSystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exceptionNavigationException
- navigation exceptionvoid updateFolder(FolderId id, Properties nameValuePairs) throws SystemException, AuthenticationException, DatabaseException
id
- id of the folder to updatenameValuePairs
- properties to updateSystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exceptionFolderClass getFolderClass(String className) throws SystemException, AuthenticationException, DatabaseException
className
- class nameSystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exceptionSet<FolderClass> getFolderClassesForDDC(String ddcName, com.saperion.constants.SaFolderConstants.CLASS_TYPE classType) throws SystemException, AuthenticationException
ddcName
- DDC nameclassType
- the type of class to search forSystemException
- system exceptionAuthenticationException
- authentication exceptionvoid deleteFolderById(FolderId id) throws SystemException, AuthenticationException, DatabaseException, NavigationException
id
- folder idNavigationException
- navigation exceptionDatabaseException
- database exceptionAuthenticationException
- authentication exceptionSystemException
- system exceptionList<FolderInfo> getFolderChildren(FolderId id) throws SystemException, AuthenticationException, DatabaseException, NavigationException
id
- folder idSystemException
- system exceptionAuthenticationException
- authentication exceptionDatabaseException
- database exceptionNavigationException
- navigation exceptionSet<com.saperion.folder.FolderUpdateInfo> getFolderUpdateInfo(Map<String,Long> folderIds) throws SystemException, AuthenticationException
folderIds
- Map of SYSROWIDs with time stamps of last refresh to check.AuthenticationException
- error on the authentification / insufficient rightsSystemException
- general errorcom.saperion.wf.BoxCount getTaskCounts() throws AuthenticationException, SystemException
AuthenticationException
- not logged in or not allowedSystemException
- system error when checking for tasksCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.