Class ApplicationMenuToNodeConverter


  • public class ApplicationMenuToNodeConverter
    extends java.lang.Object
    Author:
    Emmanuel Duchastenier
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApplicationMenuToNodeConverter

        public ApplicationMenuToNodeConverter​(ApplicationService applicationService)
    • Method Detail

      • buildApplicationMenusQueryOptions

        protected QueryOptions buildApplicationMenusQueryOptions​(long applicationId,
                                                                 java.lang.Long parentMenuId,
                                                                 int startIndex,
                                                                 int maxResults)
        Parameters:
        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.
        Returns:
        the newly built QueryOptions
      • addMenusToApplicationNode

        public 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
        RECURSIVELY add menu elements (and sub-menus) to xml node, from menu identified by parentMenuId.
        Parameters:
        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.
        Throws:
        SBonitaReadException
        SObjectNotFoundException