Examples of GetSearchFavouritesResponse


Examples of org.geomajas.widget.searchandfilter.command.dto.GetSearchFavouritesResponse

    GwtCommand command = new GwtCommand(GetSearchFavouritesRequest.COMMAND);
    command.setCommandRequest(new GetSearchFavouritesRequest());
    GwtCommandDispatcher.getInstance().execute(command, new CommandCallback() {
      public void execute(CommandResponse response) {
        if (response instanceof GetSearchFavouritesResponse) {
          GetSearchFavouritesResponse resp = (GetSearchFavouritesResponse) response;
          if (onFinished != null) {
            int size = resp.getPrivateSearchFavourites().size() + resp.getSharedSearchFavourites().size();
            List<SearchFavourite> result = new ArrayList<SearchFavourite>(size);
            result.addAll(resp.getPrivateSearchFavourites());
            result.addAll(resp.getSharedSearchFavourites());
            onFinished.execute(result);
          }
        }
      }
    });
View Full Code Here

Examples of org.geomajas.widget.searchandfilter.command.dto.GetSearchFavouritesResponse

    response.setPrivateSearchFavourites(searchFavouritesService.getPrivateSearchFavourites(user));
    response.setSharedSearchFavourites(searchFavouritesService.getSharedSearchFavourites());
  }

  public GetSearchFavouritesResponse getEmptyCommandResponse() {
    return new GetSearchFavouritesResponse();
  }
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.