Package ch.ralscha.extdirectspring.bean.api

Examples of ch.ralscha.extdirectspring.bean.api.Action


      for (ParameterInfo parameter : this.parameters) {
        if (!parameter.isSupportedParameter() && !parameter.isHasRequestHeaderAnnotation()) {
          paramLength++;
        }
      }
      this.action = new Action(method.getName(), paramLength, null);
      break;
    case SIMPLE_NAMED:
      List<String> parameterNames = new ArrayList<String>();
      for (ParameterInfo parameter : this.parameters) {
        if (!parameter.isSupportedParameter() && !parameter.isHasRequestHeaderAnnotation()) {
          parameterNames.add(parameter.getName());
        }
      }
      this.action = new Action(method.getName(), parameterNames);
      break;
    case FORM_LOAD:
    case STORE_READ:
    case STORE_MODIFY:
    case TREE_LOAD:
      this.action = new Action(method.getName(), 1, null);
      break;
    case FORM_POST:
      this.action = new Action(method.getName(), 0, true);
      break;
    case POLL:
      this.pollingProvider = new PollingProvider(beanName, method.getName(), extDirectMethodAnnotation.event());
      break;
    case SSE:
View Full Code Here


      for (ParameterInfo parameter : this.parameters) {
        if (!parameter.isSupportedParameter() && !parameter.isHasRequestHeaderAnnotation()) {
          paramLength++;
        }
      }
      this.action = new Action(method.getName(), paramLength, null);
      break;
    case SIMPLE_NAMED:
      List<String> parameterNames = new ArrayList<String>();
      for (ParameterInfo parameter : this.parameters) {
        if (!parameter.isSupportedParameter() && !parameter.isHasRequestHeaderAnnotation()) {
          parameterNames.add(parameter.getName());
        }
      }
      this.action = new Action(method.getName(), parameterNames);
      break;
    case FORM_LOAD:
    case STORE_READ:
    case STORE_MODIFY:
    case TREE_LOAD:
      this.action = new Action(method.getName(), 1, null);
      break;
    case FORM_POST:
      this.action = new Action(method.getName(), 0, true);
      break;
    case POLL:
      this.pollingProvider = new PollingProvider(beanName, method.getName(), extDirectMethodAnnotation.event());
      break;
    }
View Full Code Here

      for (ParameterInfo parameter : this.parameters) {
        if (!parameter.isSupportedParameter() && !parameter.isHasRequestHeaderAnnotation()) {
          paramLength++;
        }
      }
      this.action = new Action(method.getName(), paramLength, null);
      break;
    case SIMPLE_NAMED:
      List<String> parameterNames = new ArrayList<String>();
      for (ParameterInfo parameter : this.parameters) {
        if (!parameter.isSupportedParameter() && !parameter.isHasRequestHeaderAnnotation()) {
          parameterNames.add(parameter.getName());
        }
      }
      this.action = new Action(method.getName(), parameterNames);
      break;
    case FORM_LOAD:
    case STORE_READ:
    case STORE_MODIFY:
    case TREE_LOAD:
      this.action = new Action(method.getName(), 1, null);
      break;
    case FORM_POST:
      this.action = new Action(method.getName(), 0, true);
      break;
    case POLL:
      this.pollingProvider = new PollingProvider(beanName, method.getName(), extDirectMethodAnnotation.event());
      break;
    case SSE:
View Full Code Here

      for (ParameterInfo parameter : this.parameters) {
        if (!parameter.isSupportedParameter() && !parameter.isHasRequestHeaderAnnotation()) {
          paramLength++;
        }
      }
      this.action = new Action(method.getName(), paramLength, null);
      break;
    case SIMPLE_NAMED:
      List<String> parameterNames = new ArrayList<String>();
      for (ParameterInfo parameter : this.parameters) {
        if (!parameter.isSupportedParameter() && !parameter.isHasRequestHeaderAnnotation()) {
          parameterNames.add(parameter.getName());
        }
      }
      this.action = new Action(method.getName(), parameterNames);
      break;
    case FORM_LOAD:
    case STORE_READ:
    case STORE_MODIFY:
    case TREE_LOAD:
      this.action = new Action(method.getName(), 1, null);
      break;
    case FORM_POST:
      this.action = new Action(method.getName(), 0, true);
      break;
    case POLL:
      this.pollingProvider = new PollingProvider(beanName, method.getName(), extDirectMethodAnnotation.event());
      break;
    }
View Full Code Here

      for (ParameterInfo parameter : this.parameters) {
        if (!parameter.isSupportedParameter() && !parameter.isHasRequestHeaderAnnotation()) {
          paramLength++;
        }
      }
      this.action = new Action(method.getName(), paramLength, null);
      break;
    case SIMPLE_NAMED:
      List<String> parameterNames = new ArrayList<String>();
      for (ParameterInfo parameter : this.parameters) {
        if (!parameter.isSupportedParameter() && !parameter.isHasRequestHeaderAnnotation()) {
          parameterNames.add(parameter.getName());
        }
      }
      this.action = new Action(method.getName(), parameterNames);
      break;
    case FORM_LOAD:
    case STORE_READ:
    case STORE_MODIFY:
    case TREE_LOAD:
      this.action = new Action(method.getName(), 1, null);
      break;
    case FORM_POST:
      this.action = new Action(method.getName(), 0, true);
      break;
    case POLL:
      this.pollingProvider = new PollingProvider(beanName, method.getName(), extDirectMethodAnnotation.event());
      break;
    default:
View Full Code Here

  private final static ObjectMapper mapper = new ObjectMapper();

  private static RemotingApi api() {
    RemotingApi remotingApi = new RemotingApi("remoting", "/controller/router", null);
    remotingApi.addAction("simpleService",
        new Action("toUpperCase", 1, Boolean.FALSE));
    remotingApi.addAction("simpleService",
        new Action("echo", Arrays.asList("userId", "logLevel")));

    PollingProvider pollingProvider = new PollingProvider("simpleService", "poll",
        "poll");
    remotingApi.addPollingProvider(pollingProvider);
View Full Code Here

      for (ParameterInfo parameter : this.parameters) {
        if (parameter.isClientParameter()) {
          paramLength++;
        }
      }
      this.action = new Action(method.getName(), paramLength, null);
      break;
    case SIMPLE_NAMED:
      List<String> parameterNames = new ArrayList<String>();
      for (ParameterInfo parameter : this.parameters) {
        if (parameter.isClientParameter()) {
          parameterNames.add(parameter.getName());
        }
      }
      this.action = new Action(method.getName(), parameterNames);
      break;
    case FORM_LOAD:
    case STORE_READ:
    case STORE_MODIFY:
    case TREE_LOAD:
      this.action = new Action(method.getName(), 1, null);
      break;
    case FORM_POST:
      this.action = new Action(method.getName(), 0, Boolean.TRUE);
      break;
    case FORM_POST_JSON:
      this.action = new Action(method.getName(), 1, null);
      break;
    case POLL:
      this.pollingProvider = new PollingProvider(beanName, method.getName(),
          extDirectMethodAnnotation.event());
      break;
View Full Code Here

    return new RemotingApi("remoting", "/router", namespace);
  }

  static RemotingApi group1Apis(String namespace) {
    RemotingApi remotingApi = new RemotingApi("remoting", "/router", namespace);
    remotingApi.addAction("remoteProviderSimple", new Action("method1", 0,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderTreeLoad", new Action("method1", 1,
        Boolean.FALSE));
    return remotingApi;
  }
View Full Code Here

    return remotingApi;
  }

  static RemotingApi groupApisWithDoc(String namespace) {
    RemotingApi remotingApi = new RemotingApi("remoting", "/router", namespace);
    remotingApi.addAction("remoteProviderSimpleDoc", new Action("method1", 0,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderSimpleDoc", new Action("method2", 0,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderSimpleDoc", new Action("method3", 0,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderSimpleDoc", new Action("method4", 0,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderSimpleDoc", new Action("method5", 0,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderSimpleDoc", new Action("method6", 0,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderSimpleDoc", new Action("method7", 0,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderSimpleDoc", new Action("method8", 0,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderSimpleDoc", new Action("method9", 0,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderSimpleDoc", new Action("method10", 0,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderSimpleDoc", new Action("method11", 0,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderSimpleDoc", new Action("method12", 0,
        Boolean.FALSE));
    return remotingApi;
  }
View Full Code Here

    return remotingApi;
  }

  private static RemotingApi group2Apis(String namespace, String url) {
    RemotingApi remotingApi = new RemotingApi("remoting", url, namespace);
    remotingApi.addAction("remoteProviderSimple", new Action("method3", 3,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderSimple", new Action("method5", 1,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderStoreRead", new Action("method6", 1,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderStoreRead", new Action("method7", 1,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderStoreModify", new Action("update4", 1,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderStoreModifyArray", new Action("update4", 1,
        Boolean.FALSE));
    remotingApi.addAction("remoteProviderStoreModifyInterface", new Action("update4",
        1, Boolean.FALSE));
    remotingApi.addAction("remoteProviderStoreModifySingle", new Action("update4", 1,
        Boolean.FALSE));
    remotingApi
        .addAction("formInfoController", new Action("upload", 0, Boolean.TRUE));
    remotingApi.addAction("uploadService", new Action("upload", 0, Boolean.TRUE));
    remotingApi.addPollingProvider(new PollingProvider("pollProvider",
        "handleMessage1", "message1"));
    remotingApi.addPollingProvider(new PollingProvider("pollProvider",
        "handleMessage2", "message2"));
    remotingApi.addPollingProvider(new PollingProvider("pollProvider", "message6",
View Full Code Here

TOP

Related Classes of ch.ralscha.extdirectspring.bean.api.Action

Copyright © 2018 www.massapicom. 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.