Modifier | Constructor and Description |
---|---|
protected |
NavigationPresenter(NavigationView navigationView) |
Modifier and Type | Method and Description |
---|---|
NavigationNode |
copyNode(FolderId folderId,
NavigationNode parentNode,
FolderId beforeChildId,
boolean withDocuments)
Copies a node.
|
NavigationNode |
createLinkNode(NavigationNode parentNode,
String name,
FolderId destination) |
NavigationNode |
createNode(NavigationNode parentNode,
String name,
com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType,
Properties properties) |
NavigationNode |
createWebpartNode(NavigationNode parentNode,
String name,
String destination) |
void |
deleteNode(NavigationNode node) |
void |
deleteNodeById(FolderId id)
Deletes the specified folder.
|
Set<FolderClass> |
filterNonCompatibleClassesForCreate(com.saperion.constants.SaFolderConstants.CLASS_TYPE type,
Set<FolderClass> folderClassesForDDC)
Returns a set of folder classes that can be used in the web client to create
a new file or register.
|
com.saperion.wf.BoxCount |
getBoxCount(int boxId,
WorkflowNodeInfo.Filter boxFilter)
Returns the count of workflow items of the given box.
|
Map<Integer,com.saperion.wf.BoxCount> |
getBoxCounts(Set<Integer> boxIds)
Returns the count of workflow items of the given box.
|
FolderNode |
getFolderById(FolderId id)
Returns the folder with the specified id.
|
FolderNode |
getFolderByPath(String ddc,
String path)
Returns the folder with the specified path.
|
FolderClass |
getFolderClass(String className)
Returns the folder class for the specified name or null if no such class was found.
|
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.
|
com.saperion.ngc.iform.xml.Form |
getFolderEditForm(String formName)
Returns the mask definition needed to open the edit mask for the folder.
|
FolderInfo |
getFolderInfo(FolderId id)
Returns infos about the specified folder.
|
com.saperion.ngc.iform.xml.Form |
getForm(String name)
Returns the mask definition for the specified mask name.
|
org.zkoss.zul.Treeitem |
getInboxInfo() |
String |
getPathById(FolderId id)
Returns the absolute path of the node with the specified id.
|
com.saperion.wf.BoxCount |
getTaskCounts() |
boolean |
isLookupTable(String ddcName) |
void |
lockFolder(FolderId id)
Locks the specified folder.
|
NavigationNode |
renameNode(NavigationNode node,
String name) |
void |
setInboxInfo(org.zkoss.zul.Treeitem wfInfo) |
void |
unlockFolder(FolderId id)
Unlocks the specified folder.
|
void |
updateFolder(FolderId id,
Properties nameValuePairs,
List<com.saperion.bean.ContentStream> thumbnails,
int selectedImage)
Updates a folder's properties.
|
protected NavigationPresenter(NavigationView navigationView)
navigationView
- Navigation viewpublic void deleteNode(NavigationNode node) throws AuthenticationException, NgcUiException
node
- Node to deleteAuthenticationException
- authentication exceptionNgcUiException
- exception to be handled by viewpublic NavigationNode createNode(NavigationNode parentNode, String name, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, Properties properties) throws NgcUiException, AuthenticationException
parentNode
- Parent nodename
- NamenodeType
- node typeproperties
- node propertiesAuthenticationException
- authentication exceptionNgcUiException
- exception to be handled by viewpublic NavigationNode createLinkNode(NavigationNode parentNode, String name, FolderId destination) throws NgcUiException, AuthenticationException
parentNode
- Parent nodename
- Namedestination
- Destination folder ifAuthenticationException
- authentication exceptionNgcUiException
- system exceptionpublic NavigationNode createWebpartNode(NavigationNode parentNode, String name, String destination) throws NgcUiException, AuthenticationException
parentNode
- Parent nodename
- Namedestination
- Destination webpart ifAuthenticationException
- authentication exceptionNgcUiException
- exception to be handled by viewpublic NavigationNode copyNode(FolderId folderId, NavigationNode parentNode, FolderId beforeChildId, boolean withDocuments) throws NgcUiException, AuthenticationException
folderId
- id of the node to copyparentNode
- destination nodebeforeChildId
- id of the child to insert the copied node beforewithDocuments
- true if the documents should be contained in the new folderAuthenticationException
- authentication exceptionNgcUiException
- exception to be handled by viewpublic NavigationNode renameNode(NavigationNode node, String name) throws NgcUiException
node
- Nodename
- New nameNgcUiException
- exception to be handled by viewpublic org.zkoss.zul.Treeitem getInboxInfo()
public void setInboxInfo(org.zkoss.zul.Treeitem wfInfo)
wfInfo
- Inbox infopublic com.saperion.wf.BoxCount getBoxCount(int boxId, WorkflowNodeInfo.Filter boxFilter) throws NgcUiException
boxId
- The id of the workflow box in question.boxFilter
- filter type of the workflow box to get count forNgcUiException
- if an error occurs.public Map<Integer,com.saperion.wf.BoxCount> getBoxCounts(Set<Integer> boxIds) throws NgcUiException
boxIds
- The id of the workflow box in question.NgcUiException
- if an error occurs.public com.saperion.ngc.iform.xml.Form getFolderEditForm(String formName) throws NgcUiException, AuthenticationException
formName
- form nameNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic FolderClass getFolderClass(String className) throws NgcUiException, AuthenticationException
className
- folder class nameNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic Set<FolderClass> getFolderClassesForDDC(String ddcName, com.saperion.constants.SaFolderConstants.CLASS_TYPE classType) throws NgcUiException, AuthenticationException
ddcName
- DDC nameclassType
- class type to search forNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic Set<FolderClass> filterNonCompatibleClassesForCreate(com.saperion.constants.SaFolderConstants.CLASS_TYPE type, Set<FolderClass> folderClassesForDDC) throws NgcUiException, AuthenticationException
type
- class type (file or register)folderClassesForDDC
- classes for the efile ddcNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic FolderInfo getFolderInfo(FolderId id) throws NgcUiException, AuthenticationException
id
- folder idNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic void updateFolder(FolderId id, Properties nameValuePairs, List<com.saperion.bean.ContentStream> thumbnails, int selectedImage) throws NgcUiException, AuthenticationException
id
- id of the folder to updatenameValuePairs
- properties to updatethumbnails
- list of streams containing thumbnailsselectedImage
- selected thumbnailNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic FolderNode getFolderByPath(String ddc, String path) throws NgcUiException, AuthenticationException
ddc
- folder ddcpath
- folder pathNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic FolderNode getFolderById(FolderId id) throws NgcUiException, AuthenticationException
id
- folder idNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic String getPathById(FolderId id) throws NgcUiException, AuthenticationException
id
- folder idAuthenticationException
- re-logon requiredNgcUiException
- exception to be handled by viewpublic void deleteNodeById(FolderId id) throws NgcUiException, AuthenticationException
id
- folder idNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic com.saperion.ngc.iform.xml.Form getForm(String name) throws NgcUiException, AuthenticationException
name
- mask nameNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic com.saperion.wf.BoxCount getTaskCounts() throws NgcUiException, AuthenticationException
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic boolean isLookupTable(String ddcName) throws NgcUiException, AuthenticationException
ddcName
- name of the DDCNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic void lockFolder(FolderId id) throws NgcUiException, AuthenticationException
id
- ID of the folder to lockNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic void unlockFolder(FolderId id) throws NgcUiException, AuthenticationException
id
- ID of the folder to unlockNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredCopyright © 2021 Hyland Software Germany GmbH. All rights reserved.