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 org.bonitasoft.engine.persistence.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 org.bonitasoft.engine.persistence.SBonitaReadException, org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
menu - the menu to convertorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundException - if the referenced menu does not exist.org.bonitasoft.engine.persistence.SBonitaReadException - if the referenced menu cannot be retrieved.protected org.bonitasoft.engine.persistence.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 org.bonitasoft.engine.persistence.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.org.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionCopyright © 2015 Bonitasoft S.A.. All rights reserved.