Package org.geomajas.command.dto

Examples of org.geomajas.command.dto.GetClientUserDataRequest


  @Autowired
  private CommandDispatcher dispatcher;

  @Test
  public void testFetchCorrectObject() {
    GetClientUserDataRequest request = new GetClientUserDataRequest();
    request.setIdentifier(ALLOWED_BEAN_ID);
    request.setClassName(ClientUserDataObject.class.getName());

    GetClientUserDataResponse response = (GetClientUserDataResponse) dispatcher.execute(
        GetClientUserDataRequest.COMMAND, request, null, "en");
    if (response.isError()) {
      response.getErrors().get(0).printStackTrace();
View Full Code Here


    Assert.assertNotNull(response.getInformation());
  }

  @Test
  public void testFetchWrongObject() {
    GetClientUserDataRequest request = new GetClientUserDataRequest();
    request.setIdentifier(DISALLOWED_BEAN_ID);
    request.setClassName("org.geomajas.configuration.RasterLayerInfo");

    GetClientUserDataResponse response = (GetClientUserDataResponse) dispatcher.execute(
        GetClientUserDataRequest.COMMAND, request, null, "en");
    if (response.isError()) {
      response.getErrors().get(0).printStackTrace();
View Full Code Here

  public RibbonTabLayout(final MapWidget mapWidget, String beanId) {
    tabs = new TabSet();
    tabs.setPaneMargin(0);
    addMember(tabs);

    GetClientUserDataRequest request = new GetClientUserDataRequest();
    request.setIdentifier(beanId);
    request.setClassName(RibbonInfo.class.getName());
    GwtCommand command = new GwtCommand(GetClientUserDataRequest.COMMAND);
    command.setCommandRequest(request);
    GwtCommandDispatcher.getInstance().execute(command, new CommandCallback<GetClientUserDataResponse>() {

      public void execute(GetClientUserDataResponse response) {
View Full Code Here

   *            fetched and applied.
   */
  public RibbonBarLayout(final MapWidget mapWidget, String beanId) {
    this();

    GetClientUserDataRequest request = new GetClientUserDataRequest();
    request.setIdentifier(beanId);
    request.setClassName(RibbonBarInfo.class.getName());
    GwtCommand command = new GwtCommand(GetClientUserDataRequest.COMMAND);
    command.setCommandRequest(request);
    GwtCommandDispatcher.getInstance().execute(command, new CommandCallback<GetClientUserDataResponse>() {

      public void execute(GetClientUserDataResponse response) {
View Full Code Here

TOP

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

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.