Package com.commander4j.db

Examples of com.commander4j.db.JDBUser


      if (luser_id.equals(Common.userList.getUser(Common.sessionID).getUserId()) == false)
      {
        int n = JOptionPane.showConfirmDialog(Common.mainForm, "Delete User " + luser_id + " ?", "Confirm", JOptionPane.YES_NO_OPTION);
        if (n == 0)
        {
          JDBUser u = new JDBUser(Common.selectedHostID, Common.sessionID);
          u.setUserId(luser_id);
          u.delete();
          populateList("");
        }
      }
      else
      {
View Full Code Here


      if (luser_id_to != null)
      {
        if (luser_id_to.equals("") == false)
        {
          luser_id_to = luser_id_to.toUpperCase();
          JDBUser u = new JDBUser(Common.selectedHostID, Common.sessionID);
          u.setUserId(luser_id_from);
          if (u.renameTo(luser_id_to) == false)
          {
            JUtility.errorBeep();
            JOptionPane.showMessageDialog(Common.mainForm, u.getErrorMessage(), "Error", JOptionPane.ERROR_MESSAGE);
          }
          populateList(luser_id_to);
        }
      }
    }
View Full Code Here

  }

  private void populateList(String defaultitem) {
    DefaultComboBoxModel DefComboBoxMod = new DefaultComboBoxModel();

    JDBUser tempUser = new JDBUser(Common.selectedHostID, Common.sessionID);
    LinkedList<JDBListData> tempUserList = tempUser.getUserIds();

    int sel = -1;
    for (int j = 0; j < tempUserList.size(); j++)
    {
      DefComboBoxMod.addElement(tempUserList.get(j));
View Full Code Here

    JLaunchReport.runReport("RPT_USERS",null,"",null,"");
  }

  private void lock() {
    luser_id = ((JDBListData) jListUsers.getSelectedValue()).toString();
    JDBUser user = new JDBUser(Common.selectedHostID, Common.sessionID);
    user.getUserProperties(luser_id);
    user.setAccountLocked("Y");
    user.update();
    populateList(luser_id);
  }
View Full Code Here

    populateList(luser_id);
  }

  private void unlock() {
    luser_id = ((JDBListData) jListUsers.getSelectedValue()).toString();
    JDBUser user = new JDBUser(Common.selectedHostID, Common.sessionID);
    user.getUserProperties(luser_id);
    user.setAccountLocked("N");
    user.update();
    populateList(luser_id);
  }
View Full Code Here

      JLaunchMenu.runForm("FRM_ADMIN_USER_EDIT", luser_id);
    }
  }

  private void excel() {
    JDBUser user = new JDBUser(Common.selectedHostID, Common.sessionID);
    JExcel export = new JExcel();
    export.saveAs("users.xls", user.getUserDataResultSet(), Common.mainForm);
  }
View Full Code Here

      {
        password = new String(fld_password.getPassword());
        username = fld_userName.getText().toUpperCase();
        String pass1 = new String(fld_new_password.getPassword());
        String pass2 = new String(fld_verify_new_password.getPassword());
        JDBUser user = new JDBUser(Common.selectedHostID, Common.sessionID);

        user.setUserId(username);
        user.setPassword(password);
        user.setPasswordNew(pass1);
        user.setPasswordVerify(pass2);
        if (user.changePassword())
        {
          validated = true;
          Common.userList.addUser(Common.sessionID, user);
          dispose();
        }
        else
        {
          validated = false;
          fld_new_password.setText("");
          fld_verify_new_password.setText("");
          fld_new_password.requestFocus();
          JUtility.errorBeep();
          JOptionPane.showMessageDialog(null, user.getErrorMessage());
        }
      }

      if (event.getSource() == btn_cancel)
      {
View Full Code Here

  }

  public void run() {
    logger.debug("OutboundMessageThread running");
    setSessionID(JUnique.getUniqueID());
    JDBUser user = new JDBUser(getHostID(), getSessionID());
    user.setUserId("INTERFACE");
    user.setPassword("INTERFACE");
    Common.userList.addUser(getSessionID(), user);
    Common.sd.setData(getSessionID(), "silentExceptions", "Yes", true);

    Boolean dbconnected = false;
View Full Code Here

    inputPath = path;
    this.errorPath = errorPath;
    this.backupPath = backupPath;
    setHostID(host);
    setSessionID(JUnique.getUniqueID());
    JDBUser user = new JDBUser(getHostID(), getSessionID());
    user.setUserId("INTERFACE");
    user.setPassword("INTERFACE");
    Common.userList.addUser(getSessionID(), user);
    Common.sd.setData(getSessionID(), "silentExceptions", "Yes", true);
  }
View Full Code Here

    this.sessionID = sessionID;
  }

  public void run() {
    setSessionID(JUnique.getUniqueID());
    JDBUser user = new JDBUser(getHostID(), getSessionID());
    user.setUserId("REPORTING");
    user.setPassword("REPORTING");
    Common.userList.addUser(getSessionID(), user);
    Common.sd.setData(getSessionID(), "silentExceptions", "Yes", true);

    Boolean dbconnected = false;
View Full Code Here

TOP

Related Classes of com.commander4j.db.JDBUser

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.