com.altair.hwm.fileserver.server
Class HWMPurgeFile

java.lang.Object
  extended by com.altair.hwm.fileserver.server.HWMPurgeFile

public class HWMPurgeFile
extends java.lang.Object

Title: HWMPurgeFile

Description: Remove the file with given revision, file id or version

a> If only file id is given: Remove all the revisions and versions under each of the revision b> If file id and revision is given: Remove the revision and the versions under the revision b> If file id, revision and version is given: Remove the version only. Company: Altair Engineering, Inc.


Constructor Summary
HWMPurgeFile(HWMFileServer hwmFS)
          Constructor
 
Method Summary
 void Purge(int nFileID)
          Remove all the files associated with the given file id
 void Purge(int nFileID, java.lang.String strRevision)
          Remove the given revision and versions under the revision of file associated with the given file id
 void Purge(int nFileID, java.lang.String strRevision, int nVersion)
          Remove the version under the given revision of file associated with the given file id
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMPurgeFile

public HWMPurgeFile(HWMFileServer hwmFS)
Constructor

Parameters:
hwmFS - The file server object that initailizes the file server and contains the db cxn pool
Method Detail

Purge

public void Purge(int nFileID)
           throws java.lang.Exception
Remove all the files associated with the given file id

Parameters:
nFileID - The file id to remove
Throws:
java.lang.Exception

Purge

public void Purge(int nFileID,
                  java.lang.String strRevision)
           throws java.lang.Exception
Remove the given revision and versions under the revision of file associated with the given file id

Parameters:
nFileID - The file id to remove
strRevision - The revision to remove
Throws:
java.lang.Exception

Purge

public void Purge(int nFileID,
                  java.lang.String strRevision,
                  int nVersion)
           throws java.lang.Exception
Remove the version under the given revision of file associated with the given file id

Parameters:
nFileID - The file id to remove
strRevision - The revision to remove
nVersion - The version to remove
Throws:
java.lang.Exception