Examples of update()


Examples of org.graylog2.restclient.models.User.update()

        for (String dashboardeditpermissions : formData.dashboardeditpermissions) {
            permissions.add(RestPermissions.DASHBOARDS_EDIT + ":" + dashboardeditpermissions);
        }
        final ChangeUserRequest changeRequest = formData.toApiRequest();
        changeRequest.permissions = Lists.newArrayList(permissions);
        user.update(changeRequest);

        return redirect(routes.UsersController.index());
    }

    private boolean checkRequireOldPassword(String username) {
View Full Code Here

Examples of org.graylog2.restclient.models.dashboards.Dashboard.update()

        udr.title = params.get("title");
        udr.description = params.get("description");

        try {
            Dashboard dashboard = dashboardService.get(id);
            dashboard.update(udr);
        } catch (APIException e) {
            String message = "Could not update dashboard. We expected HTTP 200, but got a HTTP " + e.getHttpCode() + ".";
            return status(504, views.html.errors.error.render(message, e, request()));
        } catch (IOException e) {
            return status(504, views.html.errors.error.render(ApiClient.ERROR_MSG_IO, e, request()));
View Full Code Here

Examples of org.groovymud.object.alive.Player.update()

        return items;
      }
    };
    handler = (IObservable) item;
    event = new MessageEvent();
    item.update(item, event);
    playerCtrl.setVoidCallable(1);
    playerCtrl.replay();
    reg.notifyContents((IObservable) item, event);
    playerCtrl.verify();
  }
View Full Code Here

Examples of org.gudy.azureus2.core3.util.SHA1.update()

         buffer.flip();
        
         byte[] raw = new byte[ buffer.limit() ];
         System.arraycopy( buffer.array(), 0, raw, 0, raw.length );

         sha1Gudy.update( buffer );
         sha1Gudy.saveState();
         ByteBuffer bb = ByteBuffer.wrap( new byte[56081] );
         sha1Gudy.digest( bb );
         sha1Gudy.restoreState();
        
View Full Code Here

Examples of org.gudy.azureus2.core3.util.SHA1Hasher.update()

  {
    for (int i=0;i<secrets.length;i++){
     
      SHA1Hasher hasher = new SHA1Hasher();
        
         hasher.update( REQ2_IV );
         hasher.update( secrets[i] );
        
         byte[]  encoded = hasher.getDigest();
                         
      synchronized( global_shared_secrets ){
View Full Code Here

Examples of org.gwtlib.client.table.ui.PagingTable.update()

      hpanel.add(checkbox);
      final int ii = i;
      checkbox.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          table.show(ii, checkbox.getValue());
          table.update();
        }
      });
    }
    grid.setWidget(1, 0, hpanel);
    hpanel = new HorizontalPanel();
View Full Code Here

Examples of org.gwtlib.client.table.ui.Table.update()

      new Column(1, false, "Last Name", "50%")
    };
    Table table = new Table(new ColumnLayout(columns));
    table.setSize("100%", "100%");
    table.setContentProvider(new PersonContentProvider(table));
    table.update();
    root.add(table);
  }
}
View Full Code Here

Examples of org.h2.command.Prepared.update()

        }
    }

    private void execute(String sql, boolean ddl) {
        Prepared command = session.prepare(sql);
        command.update();
        if (ddl) {
            session.commit(true);
        }
    }
View Full Code Here

Examples of org.h2.command.dml.Insert.update()

                    insert.setSortedInsertMode(sortedInsertMode);
                    insert.setQuery(asQuery);
                    insert.setTable(table);
                    insert.setInsertFromSelect(true);
                    insert.prepare();
                    insert.update();
                } finally {
                    session.setUndoLogEnabled(old);
                }
            }
        } catch (DbException e) {
View Full Code Here

Examples of org.h2.engine.Database.update()

        for (int j = 0; j < columns.length; j++) {
            int selectivity = result.currentRow()[j].getInt();
            columns[j].setSelectivity(selectivity);
        }
        if (manual) {
            db.update(session, table);
        } else {
            Session s = db.getSystemSession();
            if (s != session) {
                // if the current session is the system session
                // (which is the case if we are within a trigger)
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.