Package org.geomajas.command

Examples of org.geomajas.command.CommandResponse


  @Autowired
  private SecurityContext securityContext;

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


  // assure we are logged in as a specific user to set correct authorizations
  public void login(String name) {
    LoginRequest request = new LoginRequest();
    request.setLogin(name);
    request.setPassword(name);
    CommandResponse response = commandDispatcher.execute(LoginRequest.COMMAND, request, null, "en");
    Assert.assertFalse(response.isError());
    Assert.assertTrue(response instanceof LoginResponse);
    securityManager.createSecurityContext(((LoginResponse)response).getToken());
  }
View Full Code Here

  // assure we are logged in as a specific user to set correct authorizations
  public void login(String name) {
    LoginRequest request = new LoginRequest();
    request.setLogin(name);
    request.setPassword(name);
    CommandResponse response = commandDispatcher.execute(LoginRequest.COMMAND, request, null, "en");
    Assert.assertFalse(response.isError());
    Assert.assertTrue(response instanceof LoginResponse);
    securityManager.createSecurityContext(((LoginResponse)response).getToken());
  }
View Full Code Here

public class SecurityTestCommand implements Command {

  private Runnable test;

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

public class LogCommand implements Command<LogRequest, CommandResponse> {

  private final Logger log = LoggerFactory.getLogger(LogCommand.class);

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

   * Execute a GWT RPC command request, and return the response. These request come from the client, and the response
   * is sent back to the client. We use a {@link CommandDispatcher} to actually execute the command.
   */
  public CommandResponse execute(GwtCommand request) {
    if (request != null) {
      CommandResponse result = null;
      result = commandDispatcher.execute(request.getCommandName(), request.getCommandRequest(), request
          .getUserToken(), request.getLocale());
      return result;
    }
    return null;
View Full Code Here

TOP

Related Classes of org.geomajas.command.CommandResponse

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.