Package ch.ralscha.extdirectspring.bean

Examples of ch.ralscha.extdirectspring.bean.ExtDirectStoreReadRequest


  }

  @Test
  public void testNoArgumentsWithRequestParameters() {

    ExtDirectStoreReadRequest storeRead = new ExtDirectStoreReadRequest();
    storeRead.setQuery("ralph");

    ExtDirectStoreResult<Row> rows = (ExtDirectStoreResult<Row>) ControllerUtil
        .sendAndReceive(mockMvc, "remoteProviderStoreRead", "method1",
            new TypeReference<ExtDirectStoreResult<Row>>() {/* nothing_here */
            }, storeRead);
View Full Code Here


    assert100Rows(rows, "");
  }

  @Test
  public void testNoArgumentsWithRequestParameters() {
    ExtDirectStoreReadRequest storeRead = new ExtDirectStoreReadRequest();
    storeRead.setQuery("ralph");

    List<Row> rows = (List<Row>) ControllerUtil.sendAndReceive(mockMvc,
        "remoteProviderStoreRead", "method1", new TypeReference<List<Row>>() {/*
                                           * nothing
                                           * here
 
View Full Code Here

  private Object processRemotingRequest(final HttpServletRequest request, final HttpServletResponse response,
      final Locale locale, final ExtDirectRequest directRequest, final MethodInfo methodInfo) throws Exception {

    int jsonParamIndex = 0;
    Map<String, Object> remainingParameters = null;
    ExtDirectStoreReadRequest directStoreReadRequest = null;

    List<Object> directStoreModifyRecords = null;
    Class<?> directStoreEntryClass;

    if (methodInfo.isType(ExtDirectMethodType.STORE_READ) || methodInfo.isType(ExtDirectMethodType.FORM_LOAD)
        || methodInfo.isType(ExtDirectMethodType.TREE_LOADER)
        || methodInfo.isType(ExtDirectMethodType.TREE_LOAD)) {

      List<Object> data = (List<Object>) directRequest.getData();

      if (data != null && data.size() > 0) {
        if (methodInfo.isType(ExtDirectMethodType.STORE_READ)) {
          directStoreReadRequest = new ExtDirectStoreReadRequest();
          remainingParameters = fillReadRequestFromMap(directStoreReadRequest,
              (Map<String, Object>) data.get(0));
        } else {
          remainingParameters = (Map<String, Object>) data.get(0);
        }
View Full Code Here

    ExtDirectMethodType type = annotation.value();

    int jsonParamIndex = 0;
    Annotation[][] parameterAnnotations = methodInfo.getParameterAnnotations();
    Map<String, Object> remainingParameters = null;
    ExtDirectStoreReadRequest directStoreReadRequest = null;

    List<Object> directStoreModifyRecords = null;
    Class<?> directStoreEntryClass;

    if (type == ExtDirectMethodType.STORE_READ || type == ExtDirectMethodType.FORM_LOAD) {

      if (directRequest.getData() != null && directRequest.getData().length > 0) {
        if (type == ExtDirectMethodType.STORE_READ) {
          directStoreReadRequest = new ExtDirectStoreReadRequest();
          remainingParameters = fillObjectFromMap(directStoreReadRequest, (Map) directRequest.getData()[0]);
        } else {
          remainingParameters = (Map) directRequest.getData()[0];
        }
        jsonParamIndex = 1;
View Full Code Here

  private Object processRemotingRequest(final HttpServletRequest request, final HttpServletResponse response,
      final Locale locale, final ExtDirectRequest directRequest, final MethodInfo methodInfo) throws Exception {

    int jsonParamIndex = 0;
    Map<String, Object> remainingParameters = null;
    ExtDirectStoreReadRequest directStoreReadRequest = null;

    List<Object> directStoreModifyRecords = null;
    Class<?> directStoreEntryClass;

    if (methodInfo.isType(ExtDirectMethodType.STORE_READ) || methodInfo.isType(ExtDirectMethodType.FORM_LOAD)
        || methodInfo.isType(ExtDirectMethodType.TREE_LOADER)
        || methodInfo.isType(ExtDirectMethodType.TREE_LOAD)) {

      List<Object> data = (List<Object>) directRequest.getData();

      if (data != null && data.size() > 0) {
        if (methodInfo.isType(ExtDirectMethodType.STORE_READ)) {
          directStoreReadRequest = new ExtDirectStoreReadRequest();
          remainingParameters = fillReadRequestFromMap(directStoreReadRequest,
              (Map<String, Object>) data.get(0));
        } else {
          remainingParameters = (Map<String, Object>) data.get(0);
        }
View Full Code Here

  public Object[] resolveParameters(HttpServletRequest request, HttpServletResponse response, Locale locale,
      ExtDirectRequest directRequest, MethodInfo methodInfo) throws Exception {

    int jsonParamIndex = 0;
    Map<String, Object> remainingParameters = null;
    ExtDirectStoreReadRequest extDirectStoreReadRequest = null;

    List<Object> directStoreModifyRecords = null;
    Class<?> directStoreEntryClass;

    if (methodInfo.isType(ExtDirectMethodType.STORE_READ) || methodInfo.isType(ExtDirectMethodType.FORM_LOAD)
        || methodInfo.isType(ExtDirectMethodType.TREE_LOAD)) {

      List<Object> data = (List<Object>) directRequest.getData();

      if (data != null && data.size() > 0) {
        if (methodInfo.isType(ExtDirectMethodType.STORE_READ)) {
          extDirectStoreReadRequest = new ExtDirectStoreReadRequest();
          remainingParameters = fillReadRequestFromMap(extDirectStoreReadRequest,
              (Map<String, Object>) data.get(0));
        } else {
          remainingParameters = (Map<String, Object>) data.get(0);
        }
View Full Code Here

  public Object[] resolveParameters(HttpServletRequest request, HttpServletResponse response, Locale locale,
      ExtDirectRequest directRequest, MethodInfo methodInfo) throws Exception {

    int jsonParamIndex = 0;
    Map<String, Object> remainingParameters = null;
    ExtDirectStoreReadRequest extDirectStoreReadRequest = null;

    List<Object> directStoreModifyRecords = null;
    Class<?> directStoreEntryClass;

    if (methodInfo.isType(ExtDirectMethodType.STORE_READ) || methodInfo.isType(ExtDirectMethodType.FORM_LOAD)
        || methodInfo.isType(ExtDirectMethodType.TREE_LOAD)) {

      List<Object> data = (List<Object>) directRequest.getData();

      if (data != null && data.size() > 0) {
        if (methodInfo.isType(ExtDirectMethodType.STORE_READ)) {
          extDirectStoreReadRequest = new ExtDirectStoreReadRequest();
          remainingParameters = fillReadRequestFromMap(extDirectStoreReadRequest,
              (Map<String, Object>) data.get(0));
        } else {
          remainingParameters = (Map<String, Object>) data.get(0);
        }
View Full Code Here

  public Object[] resolveParameters(HttpServletRequest request, HttpServletResponse response, Locale locale,
      ExtDirectRequest directRequest, MethodInfo methodInfo) throws Exception {

    int jsonParamIndex = 0;
    Map<String, Object> remainingParameters = null;
    ExtDirectStoreReadRequest extDirectStoreReadRequest = null;

    List<Object> directStoreModifyRecords = null;
    Class<?> directStoreEntryClass;

    if (methodInfo.isType(ExtDirectMethodType.STORE_READ) || methodInfo.isType(ExtDirectMethodType.FORM_LOAD)
        || methodInfo.isType(ExtDirectMethodType.TREE_LOAD)) {

      List<Object> data = (List<Object>) directRequest.getData();

      if (data != null && data.size() > 0) {
        if (methodInfo.isType(ExtDirectMethodType.STORE_READ)) {
          extDirectStoreReadRequest = new ExtDirectStoreReadRequest();
          remainingParameters = fillReadRequestFromMap(extDirectStoreReadRequest,
              (Map<String, Object>) data.get(0));
        } else {
          remainingParameters = (Map<String, Object>) data.get(0);
        }
View Full Code Here

  private Object processRemotingRequest(final HttpServletRequest request, final HttpServletResponse response,
      final Locale locale, final ExtDirectRequest directRequest, final MethodInfo methodInfo) throws Exception {

    int jsonParamIndex = 0;
    Map<String, Object> remainingParameters = null;
    ExtDirectStoreReadRequest directStoreReadRequest = null;

    List<Object> directStoreModifyRecords = null;
    Class<?> directStoreEntryClass;

    if (methodInfo.isType(ExtDirectMethodType.STORE_READ) || methodInfo.isType(ExtDirectMethodType.FORM_LOAD)
        || methodInfo.isType(ExtDirectMethodType.TREE_LOADER)
        || methodInfo.isType(ExtDirectMethodType.TREE_LOAD)) {

      List<Object> data = (List<Object>) directRequest.getData();

      if (data != null && data.size() > 0) {
        if (methodInfo.isType(ExtDirectMethodType.STORE_READ)) {
          directStoreReadRequest = new ExtDirectStoreReadRequest();
          remainingParameters = fillReadRequestFromMap(directStoreReadRequest,
              (Map<String, Object>) data.get(0));
        } else {
          remainingParameters = (Map<String, Object>) data.get(0);
        }
View Full Code Here

  public Object[] resolveParameters(HttpServletRequest request, HttpServletResponse response, Locale locale,
      ExtDirectRequest directRequest, MethodInfo methodInfo) throws Exception {

    int jsonParamIndex = 0;
    Map<String, Object> remainingParameters = null;
    ExtDirectStoreReadRequest extDirectStoreReadRequest = null;

    List<Object> directStoreModifyRecords = null;
    Class<?> directStoreEntryClass;

    if (methodInfo.isType(ExtDirectMethodType.STORE_READ) || methodInfo.isType(ExtDirectMethodType.FORM_LOAD)
        || methodInfo.isType(ExtDirectMethodType.TREE_LOAD)) {

      List<Object> data = (List<Object>) directRequest.getData();

      if (data != null && data.size() > 0) {
        if (methodInfo.isType(ExtDirectMethodType.STORE_READ)) {
          extDirectStoreReadRequest = new ExtDirectStoreReadRequest();
          remainingParameters = fillReadRequestFromMap(extDirectStoreReadRequest,
              (Map<String, Object>) data.get(0));
        } else {
          remainingParameters = (Map<String, Object>) data.get(0);
        }
View Full Code Here

TOP

Related Classes of ch.ralscha.extdirectspring.bean.ExtDirectStoreReadRequest

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.