Package com.google.gwt.user.client.rpc

Examples of com.google.gwt.user.client.rpc.AsyncCallback


  public void desbloquear() {
    if (actual != null) {
      Map params = new HashMap<String, String>();
      params.put(ParamsConst.ID, actual.get(ParamsConst.ID));
      params.put(ServiceNameConst.SERVICIO, ServiceNameConst.UNLOCK);
      DispatcherUtil.getDispatcher().execute(params, new AsyncCallback() {

        @Override
        public void onFailure(Throwable caught) {
          DialogFactory
              .error("No se ha podido desbloquear la tarea.");
View Full Code Here


    Map params = new HashMap();
    params.put(ServiceNameConst.SERVICIO, ServiceNameConst.CHECK_USER);
    params.put(ParamsConst.TRANSACTION_CONTROL, Boolean.FALSE);
   
    mask();
    DispatcherUtil.getDispatcher().execute(params, new AsyncCallback() {

      @Override
      public void onFailure(Throwable caught) {
        DialogFactory.error("Ocurrio un error al intentar verificar el usuario.");
      }
View Full Code Here

  public static void cerrarSesion(){
    Map params = new HashMap();
    params.put(ServiceNameConst.SERVICIO, ServiceNameConst.EXIT);
    params.put(ParamsConst.TRANSACTION_CONTROL, Boolean.FALSE);
   
    DispatcherUtil.getDispatcher().execute(params, new AsyncCallback() {

      @Override
      public void onFailure(Throwable caught) {
        DialogFactory.error("Ocurrio un error al intentar quitar de session el usuario actual");
      }
View Full Code Here

      params.put(ParamsConst.ID, id);
      params.put(ParamsConst.COMMENT, htmlEditor.getValue());
      params.put(ServiceNameConst.SERVICIO,
            ServiceNameConst.ADD_COMMENT);
      DispatcherUtil.getDispatcher().execute(params,
          new AsyncCallback() {

            @Override
            public void onFailure(Throwable caught) {
              DialogError dialogError = new DialogError("No fue posible guardar el comentario.");
              maskDisable();
View Full Code Here

      fldEvent.setEnabled(Boolean.FALSE);
      Map params = new HashMap<String, String>();
      params.put(ServiceNameConst.SERVICIO, serviceKey);
      DispatcherUtil.getDispatcher().execute(params,
          new AsyncCallback() {

            @Override
            public void onFailure(Throwable caught) {
              fldEvent.setEnabled(Boolean.TRUE);
              DialogFactory.error("No se han podido consultar el listado de eventos.");
View Full Code Here

    }
    Map params = new HashMap<String, String>();
    params.put(ParamsConst.IDS, ids);
    params.put(ServiceNameConst.SERVICIO, ServiceNameConst.DELETE_RELATION);
    DispatcherUtil.getDispatcher().execute(params,
        new AsyncCallback() {

          @Override
          public void onFailure(Throwable caught) {
            DialogFactory.error("No se han podido eliminar los eventos. Aguarde un momento y vuelva a intentarlo.");
          }
View Full Code Here

      Context.getInstance().addDetailExecution("Relation Window onSave 6");
      relationWindowOption.onSave(params);
      Context.getInstance().addDetailExecution("Relation Window onSave 7");
     
      DispatcherUtil.getDispatcher().execute(params,
          new AsyncCallback() {

            @Override
            public void onFailure(Throwable caught) {
              Context.getInstance().addDetailExecution("Relation Window onSave 8");
              maskDisable();
View Full Code Here

    fldUser.setEnabled(Boolean.FALSE);
    fldUser.setStore(new ListStore<ModelData>());
    Map params = new HashMap<String, String>();
    params.put(ServiceNameConst.SERVICIO, ServiceNameConst.LIST_USERS);
    DispatcherUtil.getDispatcher().execute(params,
        new AsyncCallback() {

          @Override
          public void onFailure(Throwable caught) {
            Context.getInstance().validateUserExpired(caught);
            DialogFactory.error("No se han podido consultar los usuarios LDAP.");
View Full Code Here

    registerField(fldGroup);
   
    Map params = new HashMap<String, String>();
    params.put(ServiceNameConst.SERVICIO, ServiceNameConst.LIST_GROUPS);
    DispatcherUtil.getDispatcher().execute(params,
        new AsyncCallback() {

          @Override
          public void onFailure(Throwable caught) {
            DialogFactory.error("No se han podido consultar los grupos LDAP.");
          }
View Full Code Here

    }
    Map params = new HashMap<String, String>();
    params.put(ParamsConst.IDS, ids);
    params.put(ServiceNameConst.SERVICIO, ServiceNameConst.DELETE_PROFILE);
    DispatcherUtil.getDispatcher().execute(params,
        new AsyncCallback() {

          @Override
          public void onFailure(Throwable caught) {
            DialogFactory.error("No se han podido eliminar los perfiles. Aguarde un momento y vuelva a intentarlo.");
            maskDisable();
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.rpc.AsyncCallback

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.