Examples of save()


Examples of ch.fork.AdHocRailway.technical.configuration.Preferences.save()

        p.setStringValue(DATABASE_HOST, (String) databaseHostField.getText());
        p.setStringValue(DATABASE_NAME, (String) databaseNameField.getText());
        p.setStringValue(DATABASE_USER, (String) databaseUserField.getText());
        p.setStringValue(DATABASE_PWD, (String) databasePasswordField.getText());
        try {
            p.save();
        } catch (FileNotFoundException e) {
            ExceptionProcessor.getInstance().processException(e);
        } catch (IOException e) {
            ExceptionProcessor.getInstance().processException(e);
        }
View Full Code Here

Examples of ch.inftec.ju.db.auth.repo.AuthRoleRepo.save()

    if (roleRepo.getByNameAndUsersId(roleName, user.getId()) == null) {
      // Role hasn't been assigned, so do it
      user.getRoles().add(role);
      role.getUsers().add(user);
      userRepo.save(user);
      roleRepo.save(role);
    }
  }
 
  /**
   * Removes the specified role from the User.
View Full Code Here

Examples of ch.inftec.ju.db.auth.repo.AuthUserRepo.save()

    // Check if the role has already been assigned to the user
    if (roleRepo.getByNameAndUsersId(roleName, user.getId()) == null) {
      // Role hasn't been assigned, so do it
      user.getRoles().add(role);
      role.getUsers().add(user);
      userRepo.save(user);
      roleRepo.save(role);
    }
  }
 
  /**
 
View Full Code Here

Examples of ch.njol.skript.config.Node.save()

  public String toString() {
    final Node n = node;
    if (n == null || level.intValue() < Level.WARNING.intValue())
      return message;
    final Config c = n.getConfig();
    return message + from + " (" + c.getFileName() + ", line " + n.getLine() + ": " + n.save().trim() + "')";
  }
 
}
View Full Code Here

Examples of ch.rakudave.jnetmap.model.Map.save()

        if (map == null) {
          return;
        } else if (Lang.getNoHTML("map.unsaved").equals(map.getFilePath())) {
          saveAs().actionPerformed(null);
        } else {
          if (!map.save()) {
            JOptionPane.showMessageDialog((Component) Controller.getView(), Lang.getNoHTML("message.fail.save"),
                Lang.getNoHTML("message.error"), JOptionPane.ERROR_MESSAGE);
          }
        }
      }
View Full Code Here

Examples of ch.rakudave.jnetmap.view.preferences.PreferencePanel.save()

        ok.setPreferredSize(cancel.getPreferredSize());
        ok.addActionListener(new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            leftInterface.save();
            rightInterface.save();
            //TODO skip new command if nothing has changed
            Controller.getCurrentMap().getHistory().execute(new Command() {
              Connection.Type oltType = c.getType(), newType = (Connection.Type) connectionType.getSelectedItem();
              double oldBandwidth = c.getBandwidth(), newBandwidth;
              @Override
View Full Code Here

Examples of cirrus.hibernate.Session.save()

                Integer quantity = ( Integer ) cart.get( itemId );
                order.add( item, quantity.intValue(  ) );
            }

            /* Save */
            s.save( order );
            tx.commit(  );

            /* Empty the cart */
            getCart(  ).clear(  );

View Full Code Here

Examples of cli_fmw.main.Persistentable.save()

                        try {
                            int res = MessageBox.showConfirmYesNoCancel(
                                    MessageBox.C_SAVE_CHANGES);
                            switch (res) {
                                case MessageBox.ANSWER_YES:
                                    p.save();
                                    break;
                                case MessageBox.ANSWER_NO:
                                    p.restore();
                                    break;
                                case MessageBox.ANSWER_CANCEL:
View Full Code Here

Examples of clock.UserPrefs.save()

        UserPrefs userPrefs = UserPrefs.getPrefsForUser(user);

        try {
            int tzOffset = new Integer(req.getParameter("tz_offset")).intValue();
            userPrefs.setTzOffset(tzOffset);
            userPrefs.save();
        } catch (NumberFormatException nfe) {
            // User entered a value that wasn't an integer.  Ignore for now.
        }

        resp.sendRedirect("/");
View Full Code Here

Examples of cn.iver.model.Topic.save()

    public void save(){
        Topic topic = getModel(Topic.class);
        topic.set("userID", getSessionAttr("userID")).set("id", null);
        Post post = getModel(Post.class);
        post.set("userID", getSessionAttr("userID"));
        topic.save(post);
        redirect("/post/" + topic.getInt("id"));
    }

    @Before(AdminInterceptor.class)
    public void edit(){
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.