Package org.firebirdsql.management

Examples of org.firebirdsql.management.FBUser


    Collection<FBUser> listUsers = (Collection<FBUser>)mapUsers.values();
    vecTableUsers = new Vector<Vector<Object>>();
    Vector<Object> vecRow = null;
    for (Iterator iter = listUsers.iterator(); iter.hasNext();) {
      FBUser fbUser = (FBUser) iter.next();
      vecRow = new Vector<Object>();
      vecRow.add(fbUser.getUserName());
      vecRow.add(fbUser.getUserId());
      vecRow.add(fbUser.getGroupId());
      vecRow.add(fbUser.getFirstName());
      vecRow.add(fbUser.getMiddleName());
      vecRow.add(fbUser.getLastName());
      vecTableUsers.add(vecRow);
    }
   
    if (vecTableUsersHeader == null) {
      vecTableUsersHeader = new Vector<String>();
View Full Code Here


    return UNIQUE_USER;
  }
 

  private FBUser fillUser() {
    FBUser fbUser = new FBUser();
    fbUser.setUserName(jtextfieldUsername.getText().trim());
    fbUser.setUserId(FirebirdManagerHelper.convertStringToIntDef(jtextfieldUserId.getText(), 0));
    fbUser.setGroupId(FirebirdManagerHelper.convertStringToIntDef(jtextfieldGroupId.getText(), 0));
    if (mode == FirebirdManagerHelper.NEW_MODE
        || new String(jpasswordField1.getPassword()).trim().length() > 0) {
      fbUser.setPassword(new String(jpasswordField1.getPassword()).trim());
    }
    fbUser.setFirstName(jtextfieldFirstName.getText());
    fbUser.setMiddleName(jtextfieldMiddleName.getText());
    fbUser.setLastName(jtextfieldLastName.getText());
   
    return fbUser;
  }
View Full Code Here

  private void deleteUser() {
    int row = jtableUsers.getSelectedRow();
    if (row > -1
        && JOptionPane.showConfirmDialog(null, i18n.QUESTION_DELETE_USER, i18n.QUESTION_TITLE_DELETE_USER,
            JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {
      FBUser fbUser = mapUsers.get(jtextfieldUsername.getText());
      try {
        fbUserManager.delete(fbUser);
        readUsers();
      } catch (Exception e) {
        JOptionPane.showMessageDialog(null, i18n.ERROR_DELETE_USER);
View Full Code Here

TOP

Related Classes of org.firebirdsql.management.FBUser

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.