com.altair.hwm.fileserver.server
Class HWMUndoCheckOut

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

public class HWMUndoCheckOut
extends java.lang.Object

Title: HWMUndoCheckOut

Description: Undo check out on the given file. A check out can be undone using:

a> user name and file id only: The check out status on the latest revision of the file with given id is set back to checked in only if the user had checked it out

b> user name, file id and revision: The check out status on the given revision of the file with given id is set back to checked in only if it was checked out by the user

Company: Altair Engineering, Inc.


Constructor Summary
HWMUndoCheckOut(HWMFileServer hwmFS)
          Constructor
 
Method Summary
 void UndoCheckOut(int nFileID, java.lang.String strUser)
          The check out status on the latest revision of the file with given id is set back to checked in if it was checked out by the same user.
 void UndoCheckOut(int nFileID, java.lang.String strRevision, java.lang.String strUser)
          The check out status on the revision of the file with given id is set back to checked in if it was checked out by the same user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMUndoCheckOut

public HWMUndoCheckOut(HWMFileServer hwmFS)
Constructor

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

UndoCheckOut

public void UndoCheckOut(int nFileID,
                         java.lang.String strUser)
                  throws java.lang.Exception
The check out status on the latest revision of the file with given id is set back to checked in if it was checked out by the same user.

Parameters:
nFileID - The file id of the file to undo check out
strUser - The name of the user who wants to undo check out
Throws:
java.lang.Exception

UndoCheckOut

public void UndoCheckOut(int nFileID,
                         java.lang.String strRevision,
                         java.lang.String strUser)
                  throws java.lang.Exception
The check out status on the revision of the file with given id is set back to checked in if it was checked out by the same user.

Parameters:
nFileID - The file id of the file to undo check out
strRevision - The revision to undo check out on
strUser - The name of the user who wants to undo check out
Throws:
java.lang.Exception