Class ApplicationAPIImpl

java.lang.Object
org.bonitasoft.engine.api.impl.ApplicationAPIImpl
All Implemented Interfaces:
org.bonitasoft.engine.api.ApplicationAPI

public class ApplicationAPIImpl extends Object implements org.bonitasoft.engine.api.ApplicationAPI
Author:
Elias Ricken de Medeiros
  • Constructor Details

    • ApplicationAPIImpl

      public ApplicationAPIImpl()
  • Method Details

    • createApplication

      @Deprecated(since="9.0.0") public org.bonitasoft.engine.business.application.Application createApplication(org.bonitasoft.engine.business.application.ApplicationCreator applicationCreator) throws org.bonitasoft.engine.exception.CreationException
      Deprecated.
      Specified by:
      createApplication in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • createApplicationLink

      @Deprecated(since="10.2.0") public org.bonitasoft.engine.business.application.ApplicationLink createApplicationLink(org.bonitasoft.engine.business.application.ApplicationLinkCreator applicationLinkCreator) throws org.bonitasoft.engine.exception.CreationException
      Deprecated.
      Specified by:
      createApplicationLink in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • getApplicationModelConverter

      protected ApplicationModelConverter getApplicationModelConverter(PageService pageService)
    • getNodeToApplicationConverter

      protected NodeToApplicationConverter getNodeToApplicationConverter(PageService pageService, ProfileService profileService, ApplicationImportValidator importValidator)
    • getIApplication

      public org.bonitasoft.engine.business.application.IApplication getIApplication(long applicationId) throws org.bonitasoft.engine.business.application.ApplicationNotFoundException
      Specified by:
      getIApplication in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.business.application.ApplicationNotFoundException
    • getIApplicationByToken

      public org.bonitasoft.engine.business.application.IApplication getIApplicationByToken(String applicationToken) throws org.bonitasoft.engine.business.application.ApplicationNotFoundException
      Specified by:
      getIApplicationByToken in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.business.application.ApplicationNotFoundException
    • deleteApplication

      public void deleteApplication(long applicationId) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteApplication in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • updateApplication

      @Deprecated(since="9.0.0") public org.bonitasoft.engine.business.application.Application updateApplication(long applicationId, org.bonitasoft.engine.business.application.ApplicationUpdater updater) throws org.bonitasoft.engine.business.application.ApplicationNotFoundException, org.bonitasoft.engine.exception.UpdateException, org.bonitasoft.engine.exception.AlreadyExistsException
      Deprecated.
      Specified by:
      updateApplication in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.business.application.ApplicationNotFoundException
      org.bonitasoft.engine.exception.UpdateException
      org.bonitasoft.engine.exception.AlreadyExistsException
    • updateApplicationLink

      @Deprecated(since="10.2.0") public org.bonitasoft.engine.business.application.ApplicationLink updateApplicationLink(long applicationId, org.bonitasoft.engine.business.application.ApplicationLinkUpdater updater) throws org.bonitasoft.engine.business.application.ApplicationNotFoundException, org.bonitasoft.engine.exception.UpdateException, org.bonitasoft.engine.exception.AlreadyExistsException
      Deprecated.
      Specified by:
      updateApplicationLink in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.business.application.ApplicationNotFoundException
      org.bonitasoft.engine.exception.UpdateException
      org.bonitasoft.engine.exception.AlreadyExistsException
    • getServiceAccessor

      protected ServiceAccessor getServiceAccessor()
    • searchApplications

      @Deprecated(since="10.2.0") public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.business.application.Application> searchApplications(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Deprecated.
      as of 10.2.0, use searchIApplications(SearchOptions) instead to include application links.
      Specified by:
      searchApplications in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • searchIApplications

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.business.application.IApplication> searchIApplications(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchIApplications in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • internalSearchIApplications

      protected org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.business.application.IApplication> internalSearchIApplications(ServiceAccessor serviceAccessor, SearchApplicationDescriptor appSearchDescriptor, org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • createApplicationPage

      @Deprecated(since="9.0.0") public org.bonitasoft.engine.business.application.ApplicationPage createApplicationPage(long applicationId, long pageId, String token) throws org.bonitasoft.engine.exception.CreationException
      Deprecated.
      Specified by:
      createApplicationPage in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • getApplicationPage

      public org.bonitasoft.engine.business.application.ApplicationPage getApplicationPage(String applicationName, String applicationPageToken) throws org.bonitasoft.engine.business.application.ApplicationPageNotFoundException
      Specified by:
      getApplicationPage in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.business.application.ApplicationPageNotFoundException
    • searchApplicationPages

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.business.application.ApplicationPage> searchApplicationPages(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchApplicationPages in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • getApplicationPage

      public org.bonitasoft.engine.business.application.ApplicationPage getApplicationPage(long applicationPageId) throws org.bonitasoft.engine.business.application.ApplicationPageNotFoundException
      Specified by:
      getApplicationPage in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.business.application.ApplicationPageNotFoundException
    • deleteApplicationPage

      public void deleteApplicationPage(long applicationPageId) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteApplicationPage in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • setApplicationHomePage

      @Deprecated(since="9.0.0") public void setApplicationHomePage(long applicationId, long applicationPageId) throws org.bonitasoft.engine.exception.UpdateException, org.bonitasoft.engine.business.application.ApplicationNotFoundException
      Deprecated.
      Specified by:
      setApplicationHomePage in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.UpdateException
      org.bonitasoft.engine.business.application.ApplicationNotFoundException
    • getApplicationHomePage

      public org.bonitasoft.engine.business.application.ApplicationPage getApplicationHomePage(long applicationId) throws org.bonitasoft.engine.business.application.ApplicationPageNotFoundException
      Specified by:
      getApplicationHomePage in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.business.application.ApplicationPageNotFoundException
    • createApplicationMenu

      @Deprecated(since="9.0.0") public org.bonitasoft.engine.business.application.ApplicationMenu createApplicationMenu(org.bonitasoft.engine.business.application.ApplicationMenuCreator applicationMenuCreator) throws org.bonitasoft.engine.exception.CreationException
      Deprecated.
      Specified by:
      createApplicationMenu in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.CreationException
    • updateApplicationMenu

      @Deprecated(since="9.0.0") public org.bonitasoft.engine.business.application.ApplicationMenu updateApplicationMenu(long applicationMenuId, org.bonitasoft.engine.business.application.ApplicationMenuUpdater updater) throws org.bonitasoft.engine.business.application.ApplicationMenuNotFoundException, org.bonitasoft.engine.exception.UpdateException
      Deprecated.
      Specified by:
      updateApplicationMenu in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.business.application.ApplicationMenuNotFoundException
      org.bonitasoft.engine.exception.UpdateException
    • getApplicationMenu

      public org.bonitasoft.engine.business.application.ApplicationMenu getApplicationMenu(long applicationMenuId) throws org.bonitasoft.engine.business.application.ApplicationMenuNotFoundException
      Specified by:
      getApplicationMenu in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.business.application.ApplicationMenuNotFoundException
    • deleteApplicationMenu

      public void deleteApplicationMenu(long applicationMenuId) throws org.bonitasoft.engine.exception.DeletionException
      Specified by:
      deleteApplicationMenu in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.DeletionException
    • searchApplicationMenus

      public org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.business.application.ApplicationMenu> searchApplicationMenus(org.bonitasoft.engine.search.SearchOptions searchOptions) throws org.bonitasoft.engine.exception.SearchException
      Specified by:
      searchApplicationMenus in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.SearchException
    • getAllPagesForProfile

      public List<String> getAllPagesForProfile(long profileId)
      Specified by:
      getAllPagesForProfile in interface org.bonitasoft.engine.api.ApplicationAPI
    • getAllPagesForProfile

      public List<String> getAllPagesForProfile(String profile)
      Specified by:
      getAllPagesForProfile in interface org.bonitasoft.engine.api.ApplicationAPI
    • exportApplications

      public byte[] exportApplications(long... applicationIds) throws org.bonitasoft.engine.exception.ExportException
      Specified by:
      exportApplications in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.ExportException
    • importApplications

      @Deprecated(since="9.0.0") public List<org.bonitasoft.engine.api.ImportStatus> importApplications(byte[] xmlContent, org.bonitasoft.engine.business.application.ApplicationImportPolicy policy) throws org.bonitasoft.engine.exception.ImportException, org.bonitasoft.engine.exception.AlreadyExistsException
      Deprecated.
      Specified by:
      importApplications in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.exception.ImportException
      org.bonitasoft.engine.exception.AlreadyExistsException
    • getIconOfApplication

      public org.bonitasoft.engine.business.application.Icon getIconOfApplication(long applicationId) throws org.bonitasoft.engine.business.application.ApplicationNotFoundException
      Specified by:
      getIconOfApplication in interface org.bonitasoft.engine.api.ApplicationAPI
      Throws:
      org.bonitasoft.engine.business.application.ApplicationNotFoundException