sharpster.daemon.commandmanagement
Class InternalCommandManager

java.lang.Object
  |
  +--sharpster.daemon.commandmanagement.InternalCommandManager

public class InternalCommandManager
extends java.lang.Object

Interface of the Command Management Module. It is used by the Client Communication Module to invoke the execution of commands, requested by the user of the client.


Constructor Summary
InternalCommandManager()
           
 
Method Summary
 sharpster.common.ResponseCollection groupCommand(sharpster.common.GroupCommand command)
           
 void initialize(sharpster.daemon.filemanagement.FileManager fmi, sharpster.daemon.sharemanagement.ShareManager smi, sharpster.daemon.usermanagement.UserManager umi, sharpster.daemon.externalcommunication.ExternalCommunication eci, sharpster.common.Mutex globalMutex, sharpster.daemon.groupmanagement.GroupController gci)
          Constructs an object
 sharpster.common.ResponseCollection localDoCVS(java.lang.String command, java.lang.String workingDirectory)
          Excecutes a localDoCVS call received from the client.
 sharpster.common.ResponseCollection remoteAddFiles(sharpster.common.FileCollection files, java.lang.String fromUser, java.lang.String workingDirectory)
          Excecutes a remoteAddFiles call received from the client.
 sharpster.common.ResponseCollection remoteCheckoutFiles(sharpster.common.FileCollection files, java.lang.String fromUser, java.lang.String workingDirectory, java.lang.String role)
          Excecutes a remoteCheckoutFiles call received from the client.
 sharpster.common.ResponseCollection remoteCommitFiles(sharpster.common.FileCollection files, java.lang.String fromUser, java.lang.String workingDirectory, java.lang.String role)
          Excecutes a remoteCommitFiles call received from the client.
 sharpster.common.ResponseCollection remoteRemoveFiles(sharpster.common.FileCollection files, java.lang.String fromUser, java.lang.String workingDirectory)
          Excecutes a remoteRemoveFiles call received from the client.
 sharpster.common.ResponseCollection remoteUpdateFiles(sharpster.common.FileCollection files, java.lang.String fromUser, java.lang.String workingDirectory)
          Excecutes a remoteUpdateFiles call received from the client.
 sharpster.common.ResponseCollection shareFiles(sharpster.common.FileCollection files, java.lang.String workingDirectory)
          Executes a shareFiles call received from the client.
 sharpster.common.ResponseCollection synchronizeCVS(java.lang.String workingDirectory)
          Excecutes a synchronizeCVS call received from the client.
 sharpster.common.ResponseCollection unshareFiles(sharpster.common.FileCollection files, java.lang.String workingDirectory)
          Executes a unshareFiles call received from the client.
 sharpster.common.ResponseCollection viewFileAccess()
          Excecutes a viewFileAccess call received from the client.
 sharpster.common.ResponseCollection viewFileSharing()
          Excecutes a viewFileSharing call received from the client.
 sharpster.common.ResponseCollection viewUsers()
          Excecutes a viewUsers call received from the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalCommandManager

public InternalCommandManager()
Method Detail

initialize

public void initialize(sharpster.daemon.filemanagement.FileManager fmi,
                       sharpster.daemon.sharemanagement.ShareManager smi,
                       sharpster.daemon.usermanagement.UserManager umi,
                       sharpster.daemon.externalcommunication.ExternalCommunication eci,
                       sharpster.common.Mutex globalMutex,
                       sharpster.daemon.groupmanagement.GroupController gci)
Constructs an object


shareFiles

public sharpster.common.ResponseCollection shareFiles(sharpster.common.FileCollection files,
                                                      java.lang.String workingDirectory)
Executes a shareFiles call received from the client.


unshareFiles

public sharpster.common.ResponseCollection unshareFiles(sharpster.common.FileCollection files,
                                                        java.lang.String workingDirectory)
Executes a unshareFiles call received from the client.


localDoCVS

public sharpster.common.ResponseCollection localDoCVS(java.lang.String command,
                                                      java.lang.String workingDirectory)
Excecutes a localDoCVS call received from the client.


remoteCheckoutFiles

public sharpster.common.ResponseCollection remoteCheckoutFiles(sharpster.common.FileCollection files,
                                                               java.lang.String fromUser,
                                                               java.lang.String workingDirectory,
                                                               java.lang.String role)
Excecutes a remoteCheckoutFiles call received from the client.


remoteUpdateFiles

public sharpster.common.ResponseCollection remoteUpdateFiles(sharpster.common.FileCollection files,
                                                             java.lang.String fromUser,
                                                             java.lang.String workingDirectory)
Excecutes a remoteUpdateFiles call received from the client.


remoteCommitFiles

public sharpster.common.ResponseCollection remoteCommitFiles(sharpster.common.FileCollection files,
                                                             java.lang.String fromUser,
                                                             java.lang.String workingDirectory,
                                                             java.lang.String role)
Excecutes a remoteCommitFiles call received from the client.


groupCommand

public sharpster.common.ResponseCollection groupCommand(sharpster.common.GroupCommand command)

remoteAddFiles

public sharpster.common.ResponseCollection remoteAddFiles(sharpster.common.FileCollection files,
                                                          java.lang.String fromUser,
                                                          java.lang.String workingDirectory)
Excecutes a remoteAddFiles call received from the client.


remoteRemoveFiles

public sharpster.common.ResponseCollection remoteRemoveFiles(sharpster.common.FileCollection files,
                                                             java.lang.String fromUser,
                                                             java.lang.String workingDirectory)
Excecutes a remoteRemoveFiles call received from the client.


viewFileSharing

public sharpster.common.ResponseCollection viewFileSharing()
Excecutes a viewFileSharing call received from the client.


viewUsers

public sharpster.common.ResponseCollection viewUsers()
Excecutes a viewUsers call received from the client.


viewFileAccess

public sharpster.common.ResponseCollection viewFileAccess()
Excecutes a viewFileAccess call received from the client.


synchronizeCVS

public sharpster.common.ResponseCollection synchronizeCVS(java.lang.String workingDirectory)
Excecutes a synchronizeCVS call received from the client.