Package com.saperion.ngc.navigation
Class NavigationPresenter
java.lang.Object
com.saperion.ngc.navigation.NavigationPresenter
- All Implemented Interfaces:
Presenter
Presenter for navigation component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyNode
(FolderId folderId, NavigationNode parentNode, FolderId beforeChildId, boolean withDocuments) Copies a node.createLinkNode
(NavigationNode parentNode, String name, FolderId destination) createNode
(NavigationNode parentNode, String name, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, Properties properties) createWebpartNode
(NavigationNode parentNode, String name, String destination) void
deleteNode
(NavigationNode node) void
Deletes the specified folder.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.getBoxCounts
(Set<Integer> boxIds) Returns the count of workflow items of the given box.Returns the folder with the specified id.getFolderByPath
(String ddc, String path) Returns the folder with the specified path.getFolderClass
(String className) Returns the folder class for the specified name or null if no such class was found.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.Returns infos about the specified folder.com.saperion.ngc.iform.xml.Form
Returns the mask definition for the specified mask name.org.zkoss.zul.Treeitem
getPathById
(FolderId id) Returns the absolute path of the node with the specified id.com.saperion.wf.BoxCount
boolean
isLookupTable
(String ddcName) void
lockFolder
(FolderId id) Locks the specified folder.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.
-
Constructor Details
-
Method Details
-
getInboxInfo
public org.zkoss.zul.Treeitem getInboxInfo()- Returns:
- Inbox leaf
-
setInboxInfo
public void setInboxInfo(org.zkoss.zul.Treeitem wfInfo) - Parameters:
wfInfo
- Inbox info
-
getBoxCounts
public Map<Integer,com.saperion.wf.BoxCount> getBoxCounts(Set<Integer> boxIds) throws NgcUiException Returns the count of workflow items of the given box.- Parameters:
boxIds
- The id of the workflow box in question.- Returns:
- the count of workflow items of the given box.
- Throws:
NgcUiException
- if an error occurs.
-
getFolderEditForm
public com.saperion.ngc.iform.xml.Form getFolderEditForm(String formName) throws NgcUiException, AuthenticationException Returns the mask definition needed to open the edit mask for the folder.- Parameters:
formName
- form name- Returns:
- mask definition
- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required
-
getFolderClass
Returns the folder class for the specified name or null if no such class was found.- Parameters:
className
- folder class name- Returns:
- folder class or null
- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required
-
getFolderClassesForDDC
public Set<FolderClass> getFolderClassesForDDC(String ddcName, com.saperion.constants.SaFolderConstants.CLASS_TYPE classType) throws NgcUiException, AuthenticationException Returns all folder classes of a certain type that can be used for the specified DDC.- Parameters:
ddcName
- DDC nameclassType
- class type to search for- Returns:
- set of folder classes
- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required
-
filterNonCompatibleClassesForCreate
public Set<FolderClass> filterNonCompatibleClassesForCreate(com.saperion.constants.SaFolderConstants.CLASS_TYPE type, Set<FolderClass> folderClassesForDDC) throws NgcUiException, AuthenticationException Returns a set of folder classes that can be used in the web client to create a new file or register.- Parameters:
type
- class type (file or register)folderClassesForDDC
- classes for the efile ddc- Returns:
- set of compatible classes
- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required
-
getFolderInfo
Returns infos about the specified folder.- Parameters:
id
- folder id- Returns:
- folder infos
- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required
-
updateFolder
public void updateFolder(FolderId id, Properties nameValuePairs, List<com.saperion.bean.ContentStream> thumbnails, int selectedImage) throws NgcUiException, AuthenticationException Updates a folder's properties.- Parameters:
id
- id of the folder to updatenameValuePairs
- properties to updatethumbnails
- list of streams containing thumbnailsselectedImage
- selected thumbnail- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required
-
getFolderByPath
public FolderNode getFolderByPath(String ddc, String path) throws NgcUiException, AuthenticationException Returns the folder with the specified path.- Parameters:
ddc
- folder ddcpath
- folder path- Returns:
- folder node
- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required
-
getFolderById
Returns the folder with the specified id.- Parameters:
id
- folder id- Returns:
- folder node
- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required
-
getPathById
Returns the absolute path of the node with the specified id. "/" is used as separator.- Parameters:
id
- folder id- Returns:
- path
- Throws:
AuthenticationException
- re-logon requiredNgcUiException
- exception to be handled by view
-
deleteNodeById
Deletes the specified folder.- Parameters:
id
- folder id- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required
-
getForm
public com.saperion.ngc.iform.xml.Form getForm(String name) throws NgcUiException, AuthenticationException Returns the mask definition for the specified mask name.- Parameters:
name
- mask name- Returns:
- mask definition
- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required
-
getTaskCounts
- Returns:
- count of tasks over all boxes
- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required
-
isLookupTable
- Parameters:
ddcName
- name of the DDC- Returns:
- true if the DDC is a lookup table
- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required
-
lockFolder
Locks the specified folder.- Parameters:
id
- ID of the folder to lock- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required
-
unlockFolder
Unlocks the specified folder.- Parameters:
id
- ID of the folder to unlock- Throws:
NgcUiException
- exception to be handled by viewAuthenticationException
- re-logon required