jpl.mipl.mdms.FileService.komodo.client
Class ACLProcessor

java.lang.Object
  extended by jpl.mipl.mdms.FileService.komodo.client.CLProcessor
      extended by jpl.mipl.mdms.FileService.komodo.client.ACLProcessor

public class ACLProcessor
extends CLProcessor

This class implements the Administrator client side command line interpreter

Version:
$Id: ACLProcessor.java,v 1.36 2009/09/18 00:38:24 ntt Exp $
Author:
G. Turek

Nested Class Summary
 
Nested classes/interfaces inherited from class jpl.mipl.mdms.FileService.komodo.client.CLProcessor
CLProcessor.ScheduledBatch, CLProcessor.ShutDownHandler
 
Field Summary
 
Fields inherited from class jpl.mipl.mdms.FileService.komodo.client.CLProcessor
_abort, _autocommit, _autoDel, _batch, _batchFileName, _batchFileReaders, _batchTimer, _checksum, _cmdCharCount, _cmdHistory, _cmdHistoryMax, _commandsFile, _connections, _currentBatchFile, _currentDir, _dateFormatter, _diff, _domainFile, _done, _echo, _eightArgWithQuotedString, _endTcpPort, _exitAfterBatch, _fiveArg, _fourArg, _fourArgWithQuotedString, _init, _interpreter, _log, _logFile, _loginFileType, _newConn, _nineArgWithQuotedString, _noArg, _noArgWithInvoke, _noArgWithQuotedString, _oneArg, _oneArgWithDate, _oneArgWithInvoke, _oneArgWithQuotedString, _oneDate, _oneDateWithInvoke, _preserve, _prompt, _pw, _receipt, _repeatFlag, _replaceFile, _replicate, _restart, _safeRead, _secure, _securityType, _session, _signed, _silent, _startTcpPort, _startTime, _supportOS, _tenArgWithQuotedString, _test, _threeArg, _threeArgWithQuotedString, _timer, _toBatch, _tokenCount, _tokenizer, _ttyInput, _twoArg, _twoArgWithQuotedString, _twoDate, _twoDateWithInvoke, _verbose, _version, _versionFile, _veryverbose
 
Constructor Summary
ACLProcessor(boolean ssl, String batchFileName, boolean silent, boolean exitAfterBatch)
          Constructor
 
Method Summary
 void addFileType()
          Processes "addFileType" command
 void addFileTypeToRole()
          Method to processes "addFileTypeToRole" command
 void addRole()
          Processes "addRole" command to add a new user role
 void addUser()
          Processes "addUser" command.
 void addUserToRole()
          Processes "addUserToRole" command
 void changePassword()
          Change a user's password.
 void connect()
          Processes "connect" command
 void connections()
          Processes "connections" command
 void delFileType()
          Processes "delFileType" command to remove file type
 void delFileTypeFromRole()
          Processes "delFileTypeFromRole" command
 void delRole()
          Processes "delRole" command to remove a user role
 void delUser()
          Processes "delUser" command to remove a user.
 void delUserFromRole()
          Processes "delUserFromRole" command
 void dSync()
          Processes "dSync" command
 void focus()
          Processes "focus" command
 void fSync()
          Processes "fSync" command.
 void hotboot()
          Processes "hotboot" command similar to SIG HUP in UNIX.
 void login()
          Process admin login and reinitialize internal admin object reference.
 void loginUsingCache()
          Process admin login using login file and reinitialize internal admin object reference.
 void logMessage()
          Writes a message to server log
 void modifyFileType()
          Modifies a setting for a filetype.
 void modifyRole()
          Modify capabilities associated with a role
 void modifyUserAccess()
          Modifies access level associated with a user name
 void move()
          Checks the user authentication in session object, contacts MDMS PWDServer if password is null
 void setLock()
          Modifies access level associated with a user name
 void showConnections()
          Processes "showConnections" command
 void showFileTypes()
          Processes "showConnections" command
 void showFiletypesForRole()
          Processes "showFiletypesForRoles" command
 void showLocks()
          Processes "showLocks" command
 void showMemory()
          Processes "showMemory" command
 void showRoles()
          Processes "showRoles" command
 void showRolesForFileType()
          Processes "showRolesForFileType" command
 void showRolesForUser()
          Processes "showRolesForUser" command
 void showServerParameters()
          Processes "showServerParameters" command
 void showServers()
          Processes "showServers" command
 void showUsers()
          Processes "showUsers" command
 void showUsersForRole()
          Processes "showUsersForRole" command
 void shutdown()
          Processes "shutdown" command
 
Methods inherited from class jpl.mipl.mdms.FileService.komodo.client.CLProcessor
_checkFile, _getDate, _getResults, _getResults, _handleError, _handlePrompt, _mapCommands, _readInput, _readTTYLine, _setVersion, _startBatch, _writeTTYLine, addToCommandHistory, batch, changeDir, dateFormat, exit, help, history, logCmds, logFile, ls, notImplemented, pause, processInput, processTtyInput, pwd, set, showDomainFile, version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACLProcessor

public ACLProcessor(boolean ssl,
                    String batchFileName,
                    boolean silent,
                    boolean exitAfterBatch)
             throws Exception
Constructor

Parameters:
ssl - SSL flag set to true to enable SSL support
batchFileName - batch file name
silent - true if client invoked with -b
Throws:
Exception - command processing failure
Method Detail

addFileTypeToRole

public final void addFileTypeToRole()
                             throws SessionException
Method to processes "addFileTypeToRole" command

Throws:
SessionException - when add file type role session fail

addUser

public final void addUser()
                   throws SessionException
Processes "addUser" command. If in batch mode parses line for arguments, but otherwise prompts for each argument

Throws:
SessionException - when processing session fail

addUserToRole

public final void addUserToRole()
                         throws SessionException
Processes "addUserToRole" command

Throws:
SessionException - when processing session fail

changePassword

public void changePassword()
                    throws SessionException
Change a user's password. Used by Komodo administrator to reset a password for a user who has forgotten it.

Throws:
SessionException - when processing session fail

connect

public final void connect()
Processes "connect" command


connections

public final void connections()
Processes "connections" command


dSync

public final void dSync()
                 throws SessionException
Processes "dSync" command

Throws:
SessionException - when processing session fail

focus

public final void focus()
Processes "focus" command


fSync

public final void fSync()
                 throws SessionException
Processes "fSync" command. The file sync command to make sure files are being written to disk and not being buffered in memory by in network.

Throws:
SessionException - when processing session fail

hotboot

public final void hotboot()
                   throws SessionException
Processes "hotboot" command similar to SIG HUP in UNIX.

Throws:
SessionException - when processing session fail

login

public final void login()
Process admin login and reinitialize internal admin object reference.

Overrides:
login in class CLProcessor

loginUsingCache

public final void loginUsingCache()
Process admin login using login file and reinitialize internal admin object reference.

Overrides:
loginUsingCache in class CLProcessor

addFileType

public final void addFileType()
                       throws SessionException
Processes "addFileType" command

Throws:
SessionException - when processing session fail

addRole

public final void addRole()
                   throws SessionException
Processes "addRole" command to add a new user role

Throws:
SessionException - when processing session fail

delRole

public final void delRole()
                   throws SessionException
Processes "delRole" command to remove a user role

Throws:
SessionException - when processing session fail

delUser

public final void delUser()
                   throws SessionException
Processes "delUser" command to remove a user.

Throws:
SessionException - when processing session fail

delFileType

public final void delFileType()
                       throws SessionException
Processes "delFileType" command to remove file type

Throws:
SessionException - when processing session fail

delFileTypeFromRole

public final void delFileTypeFromRole()
                               throws SessionException
Processes "delFileTypeFromRole" command

Throws:
SessionException - when processing session fail

delUserFromRole

public final void delUserFromRole()
                           throws SessionException
Processes "delUserFromRole" command

Throws:
SessionException - when processing session fail

showConnections

public final void showConnections()
                           throws SessionException
Processes "showConnections" command

Throws:
SessionException - when processing session fail

showFileTypes

public final void showFileTypes()
                         throws SessionException
Processes "showConnections" command

Throws:
SessionException - when processing session fail

showMemory

public final void showMemory()
                      throws SessionException
Processes "showMemory" command

Throws:
SessionException - when processing session fail

showLocks

public final void showLocks()
                     throws SessionException
Processes "showLocks" command

Throws:
SessionException - when processing session fail

showServerParameters

public final void showServerParameters()
                                throws SessionException
Processes "showServerParameters" command

Throws:
SessionException - when processing session fail

showServers

public final void showServers()
                       throws SessionException
Processes "showServers" command

Throws:
SessionException - when processing session fail

showRoles

public final void showRoles()
                     throws SessionException
Processes "showRoles" command

Throws:
SessionException - when processing session fail

showRolesForFileType

public final void showRolesForFileType()
                                throws SessionException
Processes "showRolesForFileType" command

Throws:
SessionException - when processing session fail

showFiletypesForRole

public final void showFiletypesForRole()
                                throws SessionException
Processes "showFiletypesForRoles" command

Throws:
SessionException - when processing session fail

showRolesForUser

public final void showRolesForUser()
                            throws SessionException
Processes "showRolesForUser" command

Throws:
SessionException - when processing session fail

showUsersForRole

public final void showUsersForRole()
                            throws SessionException
Processes "showUsersForRole" command

Throws:
SessionException - when processing session fail

showUsers

public final void showUsers()
                     throws SessionException
Processes "showUsers" command

Throws:
SessionException - when processing session fail

shutdown

public final void shutdown()
                    throws SessionException
Processes "shutdown" command

Throws:
SessionException - when processing session fail

move

public final void move()
                throws SessionException
Checks the user authentication in session object, contacts MDMS PWDServer if password is null

Parameters:
group - Name of FEI server group
Throws:
SessionException - when invalid login

modifyFileType

public final void modifyFileType()
                          throws SessionException
Modifies a setting for a filetype.

Throws:
SessionException - when invalid login

logMessage

public final void logMessage()
                      throws SessionException
Writes a message to server log

Throws:
SessionException - when invalid login

modifyRole

public final void modifyRole()
                      throws SessionException
Modify capabilities associated with a role

Throws:
SessionException - when invalid login

modifyUserAccess

public final void modifyUserAccess()
                            throws SessionException
Modifies access level associated with a user name

Throws:
SessionException - when invalid login

setLock

public final void setLock()
                   throws SessionException
Modifies access level associated with a user name

Throws:
SessionException - when invalid login