Examples of execute()


Examples of org.strecks.action.BasicSubmitAction.execute()

    HttpServletRequest request = createStrictMock(HttpServletRequest.class);

    expect(request.getAttribute(Globals.CANCEL_KEY)).andReturn(null);
    actionBean.preBind();
    form.bindInwards(actionBean);
    expect(actionBean.execute()).andReturn("success");
    expect(mapping.findForward("success")).andReturn(actionForward);

    replay(actionBean);
    replay(mapping);
    replay(form);
View Full Code Here

Examples of org.strecks.action.NavigableAction.execute()

  @Override
  protected ViewAdapter executeAction(Object actionBean, ActionContext context)
  {
    NavigableAction action = (NavigableAction) actionBean;
    action.execute();

    return findActionForward(actionBean, context);
  }

}
View Full Code Here

Examples of org.strecks.action.NavigableFormAction.execute()

    {
      BindingForm bindingForm = (BindingForm) form;
      bindingForm.setBindOutwards(true);
    }

    action.execute();

    if (form instanceof BindingForm)
    {
      BindingForm validBindingForm = (BindingForm) form;
View Full Code Here

Examples of org.strecks.action.NavigableSubmitAction.execute()

      String methodName = getMethodName(context, parameterName);

      if (methodName == null)
      {
        action.execute();
      }
      else
      {
        Method method = getHelper().getMethod(actionBean, methodName);
        ReflectHelper.invokeMethod(actionBean, method, String.class);
View Full Code Here

Examples of org.strecks.action.navigable.impl.NavigableFormRenderBean.execute()

    ActionErrors errors = new ActionErrors();
    errors.add("prop", new ActionMessage("key"));
    expect(request.getAttribute(Globals.ERROR_KEY)).andReturn(errors);
    actionBean.setInputError(true);
    actionBean.execute();
    expect(form.getBindOutwards()).andReturn(false);
    expect(actionBean.getSuccessResult()).andReturn("success");
    expect(mapping.findForward("success")).andReturn(actionForward);

    replay(actionBean);
View Full Code Here

Examples of org.strecks.action.navigable.impl.NavigableFormSubmitBean.execute()

    HttpServletRequest request = createStrictMock(HttpServletRequest.class);

    expect(request.getAttribute(Globals.CANCEL_KEY)).andReturn(null);
    actionBean.preBind();
    form.bindInwards(actionBean);
    actionBean.execute();
    expect(actionBean.getSuccessResult()).andReturn("success");
    expect(mapping.findForward("success")).andReturn(actionForward);

    replay(actionBean);
    replay(mapping);
View Full Code Here

Examples of org.strecks.action.navigable.impl.NavigableReadOnlyBean.execute()

    ActionForward actionForward = new ActionForward();

    NavigableReadOnlyBean actionBean = createMock(NavigableReadOnlyBean.class);
    ActionMapping mapping = createMock(ActionMapping.class);

    actionBean.execute();
    expect(actionBean.getSuccessResult()).andReturn("success");
    expect(mapping.findForward("success")).andReturn(actionForward);

    replay(actionBean);
    replay(mapping);
View Full Code Here

Examples of org.structr.core.graph.CreateRelationshipCommand.execute()

          DOMNode clonedNode = (DOMNode) node.cloneNode(false);

          moveChildNodes(node, clonedNode);
          clonedNode.setProperty(DOMNode.ownerDocument, hiddenDoc);

          createRel.execute((DOMNode) node, clonedNode, Sync.class);
          createRel.execute(clonedNode, (DOMNode) node, Sync.class);
         
        } catch (Exception ex) {
         
          logger.log(Level.SEVERE, "Could not fix component " + node, ex);
View Full Code Here

Examples of org.structr.core.graph.DeleteNodeCommand.execute()

      DeleteNodeCommand deleteCommand = StructrApp.getInstance(securityContext).command(DeleteNodeCommand.class);

      for (AbstractNode contentNode : contentNodes.values()) {

        deleteCommand.execute(contentNode);

      }

    } catch (Throwable t) {
      logger.log(Level.SEVERE, "Exception while deleting nested Components: {0}", t.getMessage());
View Full Code Here

Examples of org.structr.core.graph.MaintenanceCommand.execute()

            MaintenanceCommand cmd = (MaintenanceCommand)StructrApp.getInstance(securityContext).command(taskOrCommand);
            if (cmd.requiresEnclosingTransaction()) {

              try (final Tx tx = app.tx()) {

                cmd.execute(propertySet);
                tx.success();
              }

            } else {
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.