sharpster.daemon.commandmanagement
Class ExternalCommandManager

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

public class ExternalCommandManager
extends java.lang.Object

Interface of the Command Management Module. It is used by the External Communication Module to invoke the execution of commands, requested by a remote user.


Constructor Summary
ExternalCommandManager()
           
 
Method Summary
 sharpster.common.ResponseCollection getFileAccess(java.lang.String user)
          Returns information about which files the external user has access to.
 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 mutex)
          Constructs an object
 sharpster.common.ResponseCollection remoteAddFiles(sharpster.common.FileCollection files, java.lang.String user)
          Excecutes a remoteAddFiles call received from an remote user.
 sharpster.common.ResponseCollection remoteCheckoutFiles(sharpster.common.FileCollection files, java.lang.String user, java.lang.String role)
          Excecutes a remoteCheckoutFiles call received from an remote user.
 sharpster.common.ResponseCollection remoteCommitFiles(sharpster.common.FileCollection files, java.lang.String user, java.lang.String role)
          Excecutes a remoteCommitFiles call received from an remote user.
 sharpster.common.ResponseCollection remoteRemoveFiles(sharpster.common.FileCollection files, java.lang.String user)
          Excecutes a remoteRemoveFiles call received from an remote user.
 sharpster.common.ResponseCollection remoteUpdateFiles(sharpster.common.FileCollection files, java.lang.String user)
          Excecutes a remoteUpdateFiles call received from an remote user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalCommandManager

public ExternalCommandManager()
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 mutex)
Constructs an object


remoteCheckoutFiles

public sharpster.common.ResponseCollection remoteCheckoutFiles(sharpster.common.FileCollection files,
                                                               java.lang.String user,
                                                               java.lang.String role)
Excecutes a remoteCheckoutFiles call received from an remote user.


remoteUpdateFiles

public sharpster.common.ResponseCollection remoteUpdateFiles(sharpster.common.FileCollection files,
                                                             java.lang.String user)
Excecutes a remoteUpdateFiles call received from an remote user.


remoteCommitFiles

public sharpster.common.ResponseCollection remoteCommitFiles(sharpster.common.FileCollection files,
                                                             java.lang.String user,
                                                             java.lang.String role)
Excecutes a remoteCommitFiles call received from an remote user.


remoteAddFiles

public sharpster.common.ResponseCollection remoteAddFiles(sharpster.common.FileCollection files,
                                                          java.lang.String user)
Excecutes a remoteAddFiles call received from an remote user.


remoteRemoveFiles

public sharpster.common.ResponseCollection remoteRemoveFiles(sharpster.common.FileCollection files,
                                                             java.lang.String user)
Excecutes a remoteRemoveFiles call received from an remote user.


getFileAccess

public sharpster.common.ResponseCollection getFileAccess(java.lang.String user)
Returns information about which files the external user has access to.