Package org.geomajas.command.dto

Examples of org.geomajas.command.dto.SearchAttributesResponse


  @Test
  public void testSearchAttributes() throws Exception {
    SearchAttributesRequest request = new SearchAttributesRequest();
    request.setLayerId(LAYER_ID);
    request.setAttributePath("manyToOneAttr");
    SearchAttributesResponse response = (SearchAttributesResponse) dispatcher.execute(
        SearchAttributesRequest.COMMAND, request, null, "en");
    if (response.isError()) {
      response.getErrors().get(0).printStackTrace();
    }
    Assert.assertFalse(response.isError());
    List<Attribute<?>> attributes = response.getAttributes();
    Assert.assertNotNull(attributes);
    Assert.assertEquals(2, attributes.size());
  }
View Full Code Here


      public void execute(CommandResponse response) {
        if (response.isError()) {
          callBack.onError(response.getErrorMessages());
        } else if (response instanceof SearchAttributesResponse) {
          SearchAttributesResponse sar = (SearchAttributesResponse) response;
          callBack.onSuccess(sar.getAttributes());
        }
      }
    });
  }
View Full Code Here

  @Autowired
  private VectorLayerService layerService;

  public SearchAttributesResponse getEmptyCommandResponse() {
    return new SearchAttributesResponse();
  }
View Full Code Here

TOP

Related Classes of org.geomajas.command.dto.SearchAttributesResponse

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.