public class ApplicationMenuToNodeConverter extends Object
| Constructor and Description |
|---|
ApplicationMenuToNodeConverter(ApplicationService applicationService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMenusToApplicationNode(long applicationId,
Long parentMenuId,
ApplicationNode applicationNode,
ApplicationMenuNode menuNode)
RECURSIVELY add menu elements (and sub-menus) to xml node, from menu identified by parentMenuId.
|
protected QueryOptions |
buildApplicationMenusQueryOptions(long applicationId,
Long parentMenuId,
int startIndex,
int maxResults) |
protected ApplicationMenuNode |
toMenu(SApplicationMenu menu)
RECURSIVELY convert menu (and sub-menus) to xml node.
|
public ApplicationMenuToNodeConverter(ApplicationService applicationService)
protected ApplicationMenuNode toMenu(SApplicationMenu menu) throws SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
menu - the menu to convertorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundException - if the referenced menu does not exist.SBonitaReadException - if the referenced menu cannot be retrieved.protected QueryOptions buildApplicationMenusQueryOptions(long applicationId, Long parentMenuId, int startIndex, int maxResults)
applicationId - application ID.parentMenuId - Id of the parent menu, use null for explicit no parent.startIndex - pagination start index.maxResults - pagination max results to retrieve.QueryOptionspublic void addMenusToApplicationNode(long applicationId,
Long parentMenuId,
ApplicationNode applicationNode,
ApplicationMenuNode menuNode)
throws SBonitaReadException,
org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
applicationId - ID of the application.parentMenuId - Id of the parent menu, use null for explicit no parent.applicationNode - menuNode - the menu node to add new menu elements to. Pass null if new menu node must be added to root application node.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.