Examples of BaseAction


Examples of com.pugh.sockso.web.action.BaseAction

    public BaseAction getAction( final Request req ) {

        final String command = req.getUrlParam( 0 );
        final String host = getHost();

        BaseAction action = null;
       
        if ( command.equals("file") ) {
            final String fileType = req.getUrlParam( 1 );
            if ( fileType != null && fileType.equals("cover") ) {
                action = getCoverer();
View Full Code Here

Examples of com.pugh.sockso.web.action.BaseAction

        expect( req.getUrlParam(0) ).andReturn( "--DOES-NOT-EXIST--" );
        replay( req );

        final Dispatcher d = new Dispatcher( injector, new StringProperties() );
        d.init( "http", 4444 );
        final BaseAction a = d.getAction( req );
       
        assertNull( a );
       
        verify( req );
       
View Full Code Here

Examples of jetbrains.communicator.idea.actions.BaseAction

  }

  private Component createBottomPanel() {
    DefaultActionGroup actions = new DefaultActionGroup();
    for (Class<? extends NamedUserCommand> toolbarAction : getToolbarActions()) {
      actions.add(new BaseAction(toolbarAction));
    }
    final ActionToolbar actionToolbar = ActionManager.getInstance().createActionToolbar("BottomToolbar", actions, true);
    actionToolbar.setLayoutPolicy(ActionToolbar.NOWRAP_LAYOUT_POLICY);
    return actionToolbar.getComponent();
  }
View Full Code Here

Examples of org.openhab.binding.dmx.internal.action.BaseAction

    if (!switchedOn) {
      return DMX_MIN_VALUE;
    }

    if (hasRunningActions()) {
      BaseAction action = actions.get(0);
      value = action.getNewValue(this, calculationTime);
      if (action.isCompleted()) {
        switchToNextAction();
      }
    }

    return value;
View Full Code Here

Examples of org.openhab.binding.dmx.internal.action.BaseAction

   */
  public synchronized void switchToNextAction() {

    logger.trace("Switching to next action on channel {}", getChannelId());
    // push action to the back of the action list
    BaseAction action = actions.get(0);
    actions.remove(0);
    action.reset();
    actions.add(action);
  }
View Full Code Here

Examples of pl.smsapi.api.action.BaseAction

  public void userAddTest() throws ClientException {

    UserFactory smsApi = new UserFactory(client());

    UserResponse item;
    BaseAction action = smsApi.actionAdd()
        .setUsername(userTest)
        .setPassword(Client.MD5Digest("100costma100"))
        .setPasswordApi(Client.MD5Digest("200costam200"))
        .setActive(true)
        .setLimit(5.5)
View Full Code Here

Examples of pl.smsapi.api.action.BaseAction

    final long time = (new Date().getTime() / 1000) + 86400;

    final String tts = "to jest test";

    StatusResponse result;
    BaseAction action = smsApi.actionSend()
        .setTts(tts)
        .setTo(numberTest)
        .setDateSent(time);

    result = (StatusResponse) executeAction(action);
View Full Code Here

Examples of pl.smsapi.api.action.BaseAction

    final File fileAudio = new File("voice_small.wav");

    if (fileAudio.exists()) {

      StatusResponse result;
      BaseAction action = smsApi.actionSend()
          .setFile(fileAudio)
          .setTo(numberTest)
          .setDateSent(time);

      result = (StatusResponse) executeAction(action);
View Full Code Here

Examples of pl.smsapi.api.action.BaseAction

    System.out.println("VmsGet:");
    ids = readIds();

    if (ids != null) {
      StatusResponse result;
      BaseAction action = smsApi.actionGet().ids(ids);

      result = (StatusResponse) executeAction(action);

      for (MessageResponse item : result.getList()) {
        renderMessageItem(item);
View Full Code Here

Examples of pl.smsapi.api.action.BaseAction

    System.out.println("VmsDelete:");
    ids = readIds();

    if (ids != null) {
      CountableResponse item;
      BaseAction action = smsApi.actionDelete().ids(ids);;

      item = (CountableResponse) executeAction(action);

      System.out.println("Delete: " + item.getCount());
    }
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.