org.objectweb.dsrg.sofa.repository.core
Class SofaRemoteFileDeleter

java.lang.Object
  extended by org.objectweb.dsrg.sofa.repository.core.SofaRemoteFileDeleter

public class SofaRemoteFileDeleter
extends java.lang.Object

SOFA specific class, which deletes data from SofaServlet.


Method Summary
static boolean beginDelete(RepositoryConfiguration rc)
          Begins the deleting process.
static void clear()
          Clears all info about the deleting process.
static void deleteFile(org.eclipse.emf.common.util.URI uri)
          This method adds the uri of the requested file to the queue of uris to be deleted.
static void endDelete()
          Ends the deleting process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deleteFile

public static void deleteFile(org.eclipse.emf.common.util.URI uri)
This method adds the uri of the requested file to the queue of uris to be deleted.

Parameters:
uri -

beginDelete

public static boolean beginDelete(RepositoryConfiguration rc)
Begins the deleting process.

Parameters:
rc - Repository configuration.
Returns:
True if deleting can be started, otherwise false.

endDelete

public static void endDelete()
                      throws java.lang.Exception
Ends the deleting process. Without the call of this method no file will be deleted.

Throws:
java.lang.Exception

clear

public static void clear()
Clears all info about the deleting process.