sshvncfileaccessablility
Class listPanel.ButtonListener

java.lang.Object
  extended by sshvncfileaccessablility.listPanel.ButtonListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Enclosing class:
listPanel

public class listPanel.ButtonListener
extends java.lang.Object
implements java.awt.event.ActionListener

when submit button is clicked check for the user or group in the /etc/group file for group and the /etc/passwd for user, then once confirmed user attempt to set acl to --- for all files selected


Constructor Summary
listPanel.ButtonListener()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent E)
          verfies that the user or group is in the system then sets all the acls when the submit button is clicked
private  boolean isUserGroup(java.lang.String Name, boolean isGroup)
          checks the name to see if it is in the system Group or User depending of the selection of the user
private  boolean setAcl(java.lang.String Name, boolean isGroup)
          set all the check and unchecked acls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

listPanel.ButtonListener

public listPanel.ButtonListener()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent E)
verfies that the user or group is in the system then sets all the acls when the submit button is clicked

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
E - the action event that was performed

setAcl

private boolean setAcl(java.lang.String Name,
                       boolean isGroup)
set all the check and unchecked acls. When checked the group or user specified will have its accessability rights taken away When unchecked the group or user specified will have its accessability rights returned

Parameters:
Name - a String for the user name or group name
isGroup - a boolean value to determine if the Name paramater is a group or a user
Returns:
a boolean value true if all acl's updated properly and false if they didn't

isUserGroup

private boolean isUserGroup(java.lang.String Name,
                            boolean isGroup)
checks the name to see if it is in the system Group or User depending of the selection of the user

Parameters:
Name - a String for the user name or group name
isGroup - a boolean value to determine if the Name paramater is a group or a user
Returns:
true if the Name is found in the appropreiate file