com.adventnet.agent.tl1.security
Class CommandSecurityHandler

java.lang.Object
  |
  +--com.adventnet.agent.tl1.security.CommandSecurityHandler

public class CommandSecurityHandler
extends java.lang.Object

This class is used to read the informations from the text file and creates an object of TL1CommandSecurity for each entry in it.


Constructor Summary
CommandSecurityHandler(java.lang.String fileName)
          This constructor receives the path of the text file which contains command security related informations.
 
Method Summary
 java.util.Hashtable getCommandViewTable()
          Returns the table of TL1CommandSecurity objects.
 void setCommandViewTable(TL1CommandSecurity security)
          This method sets the TL1CommandSecurity objects in the commandViewTable.
static void writeIntoFile(java.util.Enumeration enumerator)
          This method takes the elements form the Enumeration and writes the contents in the text file.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandSecurityHandler

public CommandSecurityHandler(java.lang.String fileName)
This constructor receives the path of the text file which contains command security related informations.
Parameters:
fileName - - Name of the file where the command security related informations are stored
Method Detail

setCommandViewTable

public void setCommandViewTable(TL1CommandSecurity security)
This method sets the TL1CommandSecurity objects in the commandViewTable.

getCommandViewTable

public java.util.Hashtable getCommandViewTable()
Returns the table of TL1CommandSecurity objects.

writeIntoFile

public static void writeIntoFile(java.util.Enumeration enumerator)
This method takes the elements form the Enumeration and writes the contents in the text file.