public class ApplicationMenuToNodeConverter
extends java.lang.Object
| Constructor and Description |
|---|
ApplicationMenuToNodeConverter(ApplicationService applicationService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMenusToApplicationNode(long applicationId,
java.lang.Long parentMenuId,
org.bonitasoft.engine.business.application.xml.ApplicationNode applicationNode,
org.bonitasoft.engine.business.application.xml.ApplicationMenuNode menuNode)
RECURSIVELY add menu elements (and sub-menus) to xml node, from menu identified by parentMenuId.
|
protected QueryOptions |
buildApplicationMenusQueryOptions(long applicationId,
java.lang.Long parentMenuId,
int startIndex,
int maxResults) |
protected org.bonitasoft.engine.business.application.xml.ApplicationMenuNode |
toMenu(SApplicationMenu menu)
RECURSIVELY convert menu (and sub-menus) to xml node.
|
public ApplicationMenuToNodeConverter(ApplicationService applicationService)
protected org.bonitasoft.engine.business.application.xml.ApplicationMenuNode toMenu(SApplicationMenu menu) throws SBonitaReadException, SObjectNotFoundException
menu - the menu to convertSObjectNotFoundException - if the referenced menu does not exist.SBonitaReadException - if the referenced menu cannot be retrieved.protected QueryOptions buildApplicationMenusQueryOptions(long applicationId, java.lang.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,
java.lang.Long parentMenuId,
org.bonitasoft.engine.business.application.xml.ApplicationNode applicationNode,
org.bonitasoft.engine.business.application.xml.ApplicationMenuNode menuNode)
throws SBonitaReadException,
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.SBonitaReadExceptionSObjectNotFoundException