Examples of Action


Examples of org.raml.model.Action

    public void roundtrip()
    {
        MimeType mimeType = new MimeType();
        mimeType.setFormParameters(buildMap(Collections.singletonList(new FormParameter())));

        Action action = new Action();
        action.setBody(buildMap(mimeType));
        action.setResponses(buildMap(new Response()));

        Resource resource = new Resource();
        resource.setActions(buildMap(ActionType.GET, action));

        SecuritySchemeDescriptor describedBy = new SecuritySchemeDescriptor();
View Full Code Here

Examples of org.rlcommunity.rlglue.codec.types.Action

        algorithm.save();
    }
   
    private Action createRLGlueAction(RAction action)
    {
        Action ret = new Action();
        ret.charArray = action.getGroundFact().toString().toCharArray();
        return ret;
    }
View Full Code Here

Examples of org.rstudio.studio.client.workbench.views.vcs.common.events.DiffChunkActionEvent.Action

            if (el != null)
            {
               event.preventDefault();
               event.stopPropagation();

               Action action = Action.valueOf(el.getAttribute("data-action"));

               if (value.getChunk() != null)
                  fireEvent(new DiffChunkActionEvent(action, value.getChunk()));
               else
                  fireEvent(new DiffLinesActionEvent(action));
View Full Code Here

Examples of org.rzo.yajsw.action.Action

  }

  public void wrapperThreadDump()
  {
    Message m = new Message(Constants.WRAPPER_MSG_THREAD_DUMP, null);
    Action a = ActionFactory.getAction(m);
    try
    {
      ByteArrayOutputStream str = new ByteArrayOutputStream();
      PrintStream pr = new PrintStream(str);
      a.execute(m, null, pr, null);
      pr.flush();
      getWrapperLogger().info(str.toString());
    }
    catch (IOException e)
    {
View Full Code Here

Examples of org.sonar.api.issue.action.Action

      .setComponentKey("sample:src/main/xoo/sample/Sample.xoo")
      .setProjectKey("sample")
      .setRuleKey(RuleKey.of("squid", "AvoidCycle"));

    MockUserSession.set().setLogin("john");
    Action action = mock(Action.class);
    when(action.key()).thenReturn("link-to-jira");
    when(actionService.listAvailableActions(eq(issue))).thenReturn(newArrayList(action));

    testActions(issue,
      "{\"actions\": " +
        "[" +
View Full Code Here

Examples of org.sonar.api.server.ws.WebService.Action

    assertThat(controller).isNotNull();
    assertThat(controller.path()).isEqualTo("api/qualitygates");
    assertThat(controller.description()).isNotEmpty();
    assertThat(controller.actions()).hasSize(15);

    Action list = controller.action("list");
    assertThat(list).isNotNull();
    assertThat(list.handler()).isNotNull();
    assertThat(list.since()).isEqualTo("4.3");
    assertThat(list.isPost()).isFalse();
    assertThat(list.isInternal()).isFalse();

    Action show = controller.action("show");
    assertThat(show).isNotNull();
    assertThat(show.handler()).isNotNull();
    assertThat(show.since()).isEqualTo("4.3");
    assertThat(show.isPost()).isFalse();
    assertThat(show.param("id")).isNotNull();
    assertThat(show.isInternal()).isFalse();

    Action create = controller.action("create");
    assertThat(create).isNotNull();
    assertThat(create.handler()).isNotNull();
    assertThat(create.since()).isEqualTo("4.3");
    assertThat(create.isPost()).isTrue();
    assertThat(create.param("name")).isNotNull();
    assertThat(create.isInternal()).isFalse();

    Action copy = controller.action("copy");
    assertThat(copy).isNotNull();
    assertThat(copy.handler()).isNotNull();
    assertThat(copy.since()).isEqualTo("4.3");
    assertThat(copy.isPost()).isTrue();
    assertThat(copy.param("id")).isNotNull();
    assertThat(copy.param("name")).isNotNull();
    assertThat(copy.isInternal()).isFalse();

    Action destroy = controller.action("destroy");
    assertThat(destroy).isNotNull();
    assertThat(destroy.handler()).isNotNull();
    assertThat(destroy.since()).isEqualTo("4.3");
    assertThat(destroy.isPost()).isTrue();
    assertThat(destroy.param("id")).isNotNull();
    assertThat(destroy.isInternal()).isFalse();

    Action rename = controller.action("rename");
    assertThat(rename).isNotNull();
    assertThat(rename.handler()).isNotNull();
    assertThat(rename.since()).isEqualTo("4.3");
    assertThat(rename.isPost()).isTrue();
    assertThat(rename.param("id")).isNotNull();
    assertThat(rename.param("name")).isNotNull();
    assertThat(rename.isInternal()).isFalse();

    Action setDefault = controller.action("set_as_default");
    assertThat(setDefault).isNotNull();
    assertThat(setDefault.handler()).isNotNull();
    assertThat(setDefault.since()).isEqualTo("4.3");
    assertThat(setDefault.isPost()).isTrue();
    assertThat(setDefault.param("id")).isNotNull();
    assertThat(setDefault.isInternal()).isFalse();

    Action unsetDefault = controller.action("unset_default");
    assertThat(unsetDefault).isNotNull();
    assertThat(unsetDefault.handler()).isNotNull();
    assertThat(unsetDefault.since()).isEqualTo("4.3");
    assertThat(unsetDefault.isPost()).isTrue();
    assertThat(unsetDefault.isInternal()).isFalse();

    Action createCondition = controller.action("create_condition");
    assertThat(createCondition).isNotNull();
    assertThat(createCondition.handler()).isNotNull();
    assertThat(createCondition.since()).isEqualTo("4.3");
    assertThat(createCondition.isPost()).isTrue();
    assertThat(createCondition.param("gateId")).isNotNull();
    assertThat(createCondition.param("metric")).isNotNull();
    assertThat(createCondition.param("op")).isNotNull();
    assertThat(createCondition.param("warning")).isNotNull();
    assertThat(createCondition.param("error")).isNotNull();
    assertThat(createCondition.param("period")).isNotNull();
    assertThat(createCondition.isInternal()).isFalse();

    Action updateCondition = controller.action("update_condition");
    assertThat(updateCondition).isNotNull();
    assertThat(updateCondition.handler()).isNotNull();
    assertThat(updateCondition.since()).isEqualTo("4.3");
    assertThat(updateCondition.isPost()).isTrue();
    assertThat(updateCondition.param("id")).isNotNull();
    assertThat(updateCondition.param("metric")).isNotNull();
    assertThat(updateCondition.param("op")).isNotNull();
    assertThat(updateCondition.param("warning")).isNotNull();
    assertThat(updateCondition.param("error")).isNotNull();
    assertThat(updateCondition.param("period")).isNotNull();
    assertThat(updateCondition.isInternal()).isFalse();

    Action deleteCondition = controller.action("delete_condition");
    assertThat(deleteCondition).isNotNull();
    assertThat(deleteCondition.handler()).isNotNull();
    assertThat(deleteCondition.since()).isEqualTo("4.3");
    assertThat(deleteCondition.isPost()).isTrue();
    assertThat(deleteCondition.param("id")).isNotNull();
    assertThat(deleteCondition.isInternal()).isFalse();

    Action appInit = controller.action("app");
    assertThat(appInit.isInternal()).isTrue();
  }
View Full Code Here

Examples of org.sonatype.nexus.proxy.access.Action

    final RepositoryItemUidLock uidUploaderLock = uploaderUid.getLock();

    uidUploaderLock.lock(Action.create);

    final Action action = getResultingActionOnWrite(item.getResourceStoreRequest());

    try {
      // NEXUS-4550: we are shared-locking the actual UID (to not prevent downloaders while
      // we save to temporary location. But this depends on actual LS backend actually...)
      // but we exclusive lock uploaders to serialize them!
View Full Code Here

Examples of org.soybeanMilk.core.exe.Action

  @Test
  public void parse_executables_emptyName() throws Exception
  {
    config=new ConfigurationParser().parse("org/soybeanMilk/test/unit/core/TestConfigurationParser-main.xml");
   
    Action exe0=(Action)config.getExecutable("global_");
    Assert.assertNotNull(exe0);
   
    Action exe1=(Action)config.getExecutable("m1_");
    Assert.assertNotNull(exe1);
   
    Action exe2=(Action)config.getExecutable("m2_");
    Assert.assertNotNull(exe2);
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.internal.model.Action

    data1 = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    data1.widthHint = 120;
    addActionButton.setLayoutData(data1);
    addActionButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        Action action = new Action();
        action.createNew(parentElement);
        action.setType(type);
        if (DialogUtils.openPropertiesDialog(parentElement, action, true) == Dialog.OK) {
          actions.add(action);
          configsViewer.refresh();
        }
      }
    });
    if (WebflowModelXmlUtils.isVersion1Flow(parentElement)) {
      addBeanActionButton = new Button(buttonArea, SWT.PUSH);
      addBeanActionButton.setText("Add Bean Action");
      data1 = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
      data1.widthHint = 120;
      addBeanActionButton.setLayoutData(data1);
      addBeanActionButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {
          BeanAction action = new BeanAction();
          action.createNew(parentElement);
          action.setType(type);
          if (DialogUtils.openPropertiesDialog(parentElement, action, true) == Dialog.OK) {
            actions.add(action);
            configsViewer.refresh();
          }
        }
      });
    }
    addEvaluationButton = new Button(buttonArea, SWT.PUSH);
    if (WebflowModelXmlUtils.isVersion1Flow(parentElement)) {
      addEvaluationButton.setText("Add Evaluation Action");
    }
    else {
      addEvaluationButton.setText("Add Evaluate");
    }
    data1 = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    data1.widthHint = 120;
    addEvaluationButton.setLayoutData(data1);
    addEvaluationButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        EvaluateAction action = new EvaluateAction();
        action.createNew(parentElement);
        action.setType(type);
        if (DialogUtils.openPropertiesDialog(parentElement, action, true) == Dialog.OK) {
          actions.add(action);
          configsViewer.refresh();
        }
      }
    });
    addSetButton = new Button(buttonArea, SWT.PUSH);
    addSetButton.setText("Add Set");
    data1 = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    data1.widthHint = 120;
    addSetButton.setLayoutData(data1);
    addSetButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        Set action = new Set();
        action.createNew(parentElement);
        action.setType(type);
        if (DialogUtils.openPropertiesDialog(parentElement, action, true) == Dialog.OK) {
          actions.add(action);
          configsViewer.refresh();
        }
      }
View Full Code Here

Examples of org.springframework.roo.addon.tailor.actions.Action

        }
        logInDevelopmentMode(Level.INFO,
                "Tailor: detected " + commandTrafo.getInputCommand());

        for (final ActionConfig config : commandConfig.getActions()) {
            final Action component = actionLocator.getAction(config
                    .getActionTypeId());
            if (component != null) {
                logInDevelopmentMode(Level.INFO,
                        "\tTailoring: " + component.getDescription(config));
                component.execute(commandTrafo, config);
            }
            else {
                logInDevelopmentMode(
                        Level.WARNING,
                        "\tTailoring: Couldn't find action '"
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.