Модуль программной системы оптимизации работы сети на платформе операционной системы Linux

Дипломная работа - Компьютеры, программирование

Другие дипломы по предмету Компьютеры, программирование

roup.sh";{(ex_com);

} catch (IOException ex) {}}

 

private void gpasswdButtonActionPerformed(java.awt.event.ActionEvent ) {.setVisible(true);}

void deluserButtonActionPerformed(java.awt.event.ActionEvent evt)

{.setVisible(true);}

void adduserButtonActionPerformed(java.awt.event.ActionEvent

evt) {.setVisible(true);}

void usermodButtonActionPerformed(java.awt.event.ActionEvent

evt) {.setVisible(true);}

void usersButtonActionPerformed(java.awt.event.ActionEvent evt) {{[] appendText = getOutput("users");(int i = 0; i < appendText.length; i++).append(appendText[i]);.append("\n\n");}(IOException e) {}}

void etcPasswdButtonActionPerformed(java.awt.event.ActionEvent

evt) {ex_com = "gnome-terminal -x part1/etcPasswd.sh";{(ex_com);

} catch (IOException ex) {}}void passwdButtonActionPerformed(java.awt.event.ActionEvent ) {.setVisible(true);}

void CancelActionPerformed(java.awt.event.ActionEvent evt) {();();.setVisible(false);}

void ClearActionPerformed(java.awt.event.ActionEvent evt) {= 0;= new String[12];();.setText("");(adduserParams);}

void OKActionPerformed(java.awt.event.ActionEvent evt) {file_name = "adduser.sh";[] com = { adduserCommand.getText() };ex_com1 = "chmod +x part1/"+file_name;ex_com2 = "gnome-terminal -x part1/"+file_name;{(file_name,com);(ex_com1);(ex_com2);

} catch (IOException ex) {}}

void Cancel1ActionPerformed(java.awt.event.ActionEvent evt) {();();.setVisible(false);}

void Clear1ActionPerformed(java.awt.event.ActionEvent evt) {();();.setText("");}

void OK1ActionPerformed(java.awt.event.ActionEvent evt) {file_name = "deluser.sh";[] com = { deluserCommand.getText() };ex_com1 = "chmod +x part1/"+file_name;ex_com2 = "gnome-terminal -x part1/"+file_name;{(file_name,com);(ex_com1);(ex_com2);

} catch (IOException ex) {}}

void Cancel2ActionPerformed(java.awt.event.ActionEvent evt) {();();.setText("");.setVisible(false);}

void Clear2ActionPerformed(java.awt.event.ActionEvent evt) {= 0;= new String[12];();.setText("");(umodParams);}void OK2ActionPerformed(java.awt.event.ActionEvent evt) {file_name = "usermod.sh";[] com = { usermodCommand.getText() };ex_com1 = "chmod +x part1/"+file_name;ex_com2 = "gnome-terminal -x part1/"+file_name;{(file_name,com);(ex_com1);(ex_com2);

} catch (IOException ex) {}}

void Cancel3ActionPerformed(java.awt.event.ActionEvent evt) {();();.setText("");.setVisible(false);}

void Clear3ActionPerformed(java.awt.event.ActionEvent evt) {();.setText("");();}

void OK3ActionPerformed(java.awt.event.ActionEvent evt) {file_name = "passwd.sh";[] com = { passwdCommand.getText() };ex_com1 = "chmod +x part1/"+file_name;ex_com2 = "gnome-terminal -x part1/"+file_name;{(file_name,com);(ex_com1);(ex_com2);

} catch (IOException ex) {}}

void Cancel4ActionPerformed(java.awt.event.ActionEvent evt) {();();.setText("");.setVisible(false);}

void Clear4ActionPerformed(java.awt.event.ActionEvent evt) {();();.setText("");}

void OK4ActionPerformed(java.awt.event.ActionEvent evt) {file_name = "gpasswd.sh";[] com = { gpasswdCommand.getText() };ex_com1 = "chmod +x part1/"+file_name;ex_com2 = "gnome-terminal -x part1/"+file_name;{(file_name,com);(ex_com1);(ex_com2);

} catch (IOException ex) {}}

void Cancel5ActionPerformed(java.awt.event.ActionEvent evt) {();.setText("");.setVisible(false);}

 

private void Clear5ActionPerformed(java.awt.event.ActionEvent evt) {();.setText("");}

void OK5ActionPerformed(java.awt.event.ActionEvent evt) {file_name = "addgroup.sh";[] com = { addgroupCommand.getText() };ex_com1 = "chmod +x part1/"+file_name;ex_com2 = "gnome-terminal -x part1/"+file_name;{(file_name,com);(ex_com1);(ex_com2);

} catch (IOException ex) {}}

void Cancel6ActionPerformed(java.awt.event.ActionEvent evt) {.setText("");.setSelectedIndex(0);.setVisible(false);}

void Clear6ActionPerformed(java.awt.event.ActionEvent evt) {.setText("");.setSelectedIndex(0);}

void OK6ActionPerformed(java.awt.event.ActionEvent evt) {file_name = "delgroup.sh";[] com = { delgroupCommand.getText() };ex_com1 = "chmod +x part1/"+file_name;ex_com2 = "gnome-terminal -x part1/"+file_name;{(file_name,com);(ex_com1);(ex_com2);

} catch (IOException ex) {}}

void Cancel7ActionPerformed(java.awt.event.ActionEvent evt) {.setSelectedIndex(0);.setText("");.setText("");.setVisible(false);}

void Clear7ActionPerformed(java.awt.event.ActionEvent evt) {.setSelectedIndex(0);.setText("");.setText("");}

void OK7ActionPerformed(java.awt.event.ActionEvent evt) {file_name = "groupmod.sh";[] com = { groupmodCommand.getText() };ex_com1 = "chmod +x part1/"+file_name;ex_com2 = "gnome-terminal -x part1/"+file_name;{(file_name,com);(ex_com1);(ex_com2);

} catch (IOException ex) {}}

void Cancel8ActionPerformed(java.awt.event.ActionEvent evt) {.setText("");.setVisible(false);}void Clear8ActionPerformed(java.awt.event.ActionEvent evt) {.setText("");}

void OK8ActionPerformed(java.awt.event.ActionEvent evt) {usernames = usernameGroups.getText();{[] appendText = getOutput("groups "+usernames);(int i = 0; i < appendText.length; i++).append(appendText[i]);.append("\n\n");}(IOException e) {}}

void userOptsItemStateChanged(java.awt.event.ItemEvent evt) {();(userOpts.getSelectedItem().toString()){"--gid":.setVisible(true);.setVisible(true);;"--home":.setVisible(true);.setVisible(true);.setVisible(true);;"--shell":.setVisible(true);.setVisible(true);;"--ingroup":.setVisible(true);.setVisible(true);;"--uid":.setVisible(true);.setVisible(true);;:();;}.pack();.setEnabled(true);[i] = userOpts.getSelectedItem().toString();(adduserParams);}

void systemUserItemStateChanged(java.awt.event.ItemEvent evt) {(adduserParams);}

void jLabel29MouseClicked(java.awt.event.MouseEvent evt) {+=2;();();}

void adduserDialogWindowOpened(java.awt.event.WindowEvent

evt) {=0;= new String[12];}

void userNameKeyReleased(java.awt.event.KeyEvent evt) {(adduserParams);}

 

private void userOpenDirActionPerformed(java.awt.event.ActionEvent evt)

{.setText(openDirectoryDialog(this.adduserDialog));}

void userHomePathCaretUpdate(javax.swing.event.CaretEvent evt) {[i+1] = userHomePath.getText();(adduserParams);}

void userShellItemStateChanged(java.awt.event.ItemEvent evt) {[i+1] = userShell.getSelectedItem().toString();(adduserParams);}

void userGroupCaretUpdate(javax.swing.event.CaretEvent evt) {[i+1] = userGroup.getText();(adduserParams);}

void userIDCaretUpdate(javax.swing.event.CaretEvent evt) {[i+1] = userID.getText();(adduserParams);}

void deluserOptItemStateChanged(java.awt.event.ItemEvent evt) {(deluserOpt.getSelectedItem().toString().equals("--backup-to")){.setVisible(true);.setVisible(true);.setVisible(true);.setText("");.pack();}();();}void adduserDialogWindowClosing(java.awt.event.WindowEvent ) {();();.setVisible(false);}

void deluserDialogWindowClosing(java.awt.event.WindowEvent

evt) {();();.setText("");.setVisible(false);}

void delUsernameCaretUpdate(javax.swing.event.CaretEvent evt) {();}

void backupPathCaretUpdate(javax.swing.event.CaretEvent evt) {

// TODO add your handling code here:();}

void usermodOptsItemStateChanged(java.awt.event.ItemEvent evt) {();(usermodOpts.getSelectedItem().toString()){"-a -G":("Группа: ");;"-d":.setVisible(true);.setVisible(true);.setVisible(true);.setText("");;"-e":("Дата: ");.setToolTipText("Дата задаётся в формате ГГГГ-ММ-ДД");;"-l":("Новое имя: ");;"-p":("Пароль: ");;"-s":("Оболочка: ");;"-u":("UID: ");;:();;}.pack();.setEnabled(true);[j] = usermodOpts.getSelectedItem().toString();(umodParams);}

void jLabel31MouseClicked(java.awt.event.MouseEvent evt) {+=2;();();}void chooseBackupActionPerformed(java.awt.event.ActionEvent ) {.setText(openDirectoryDialog(this.deluserDialog));}

void userHomePath1CaretUpdate(javax.swing.event.CaretEvent evt)

{[j+1] = userHomePath1.getText();(umodParams); }

void userOpenDir1ActionPerformed(java.awt.event.ActionEvent evt)

{.setText(openDirectoryDialog(this.usermodDialog));}

void usermodDialogWindowOpened(java.awt.event.WindowEvent

evt) {= 0;= new String[12];}

void usermodFieldCaretUpdate(javax.swing.event.CaretEvent evt) {[j+1] = usermodField.getText();(umodParams);}

void usermodNameCaretUpdate(javax.swing.event.CaretEvent evt) {(umodParams);}

void usermodDialogWindowClosing(java.awt.event.WindowEvent

evt) {();();.setText("");.setVisible(false);}

void passwdOptItemStateChanged(java.awt.event.ItemEvent evt) {();(passwdOpt.getSelectedItem().toString()){"-i":.setVisible(true);.setText("Дн?/p>