Examples of doExecute()


Examples of org.apache.struts2.views.freemarker.FreemarkerResult.doExecute()

                result.setWriter(response.getWriter());

                Container container = ctx.getContainer();
                container.inject(result);

                result.doExecute(include, invocation);
            } catch (Exception e) {
                LOG.error("Error invoking Freemarker template", e);
                throw new IOException("Error invoking Freemarker template." + e.getMessage());
            }
        } else {
View Full Code Here

Examples of org.jahia.bin.Action.doExecute()

                urlPathInfo += "/*";
            }

            URLResolverFactory f = (URLResolverFactory) SpringContextSingleton.getBean("urlResolverFactory");
            URLResolver resolver = f.createURLResolver(urlPathInfo, request.getServerName(), request);
            return action.doExecute(request, renderContext, resource, JCRSessionFactory.getInstance().getCurrentUserSession(workspace, locale), formDatas, resolver);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
View Full Code Here

Examples of org.openiaml.model.custom.actions.RemovePhantomEdgesAction.doExecute()

    // copy files
    copyFiles();
   
    // do the phantom edges action
    RemovePhantomEdgesAction act = new RemovePhantomEdgesAction();
    act.doExecute(targetModel, new NullProgressMonitor());

    // try and load the file directly
    ResourceSet resourceSet = new ResourceSetImpl();
    Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(targetModel.getFullPath().toString(), false), true);   
    InternetApplication model = (InternetApplication) resource.getContents().get(0);
View Full Code Here

Examples of org.springframework.data.jpa.repository.query.JpaQueryExecution.PagedExecution.doExecute()

    when(jpaQuery.createCountQuery(Mockito.any(Object[].class))).thenReturn(countQuery);
    when(jpaQuery.createQuery(Mockito.any(Object[].class))).thenReturn(query);
    when(countQuery.getResultList()).thenReturn(Arrays.asList(20L));

    PagedExecution execution = new PagedExecution(parameters);
    execution.doExecute(jpaQuery, new Object[] { new PageRequest(2, 10) });

    verify(query, times(0)).getResultList();
  }

  public static void sampleMethod(Pageable pageable) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.