Esempio n. 1
0
  public void displayCustomPage(
      final HttpServletRequest request,
      final HttpServletResponse response,
      final APISession apiSession,
      final String pageName)
      throws CompilationFailedException, InstantiationException, IllegalAccessException,
          IOException, BonitaException {

    final PageResourceProvider pageResourceProvider =
        getPageResourceProvider(pageName, apiSession.getTenantId());
    displayCustomPage(request, response, apiSession, pageResourceProvider);
  }
Esempio n. 2
0
 public PageResourceProvider getPageResourceProvider(
     final long pageId, final APISession apiSession) throws BonitaException {
   final Page page = customPageService.getPage(apiSession, pageId);
   return new PageResourceProvider(page, apiSession.getTenantId());
 }