com.altair.hwm.fileserver.server
Class HWMGetFileInfo

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

public class HWMGetFileInfo
extends java.lang.Object

Title: HWMGetFileInfo

Description: Get the file information for the given file id. The file info can be retrieved using:

a> file id only: The file info of the latest version under the latest revision of the file with given id is returned

b> file id and revision only: The file info of latest version under the given revision of the file with given id is returned

c> file id, revision and version: The file info of given version under the given revision of the file with given id is returned

Company: Altair Engineering, Inc.


Constructor Summary
HWMGetFileInfo(HWMFileServer hwmFS)
          Constructor
 
Method Summary
 HWMFileInfo GetFileInfo(int nFileID)
          Get the info of the latest version under the latest revision of the file with given id
 HWMFileInfo GetFileInfo(int nFileID, java.lang.String strRevision)
          Get the info of latest version under the given revision of the file with given id
 HWMFileInfo GetFileInfo(int nFileID, java.lang.String strRevision, int nVersion)
          Get the info of given version under the given revision of the file with given id
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMGetFileInfo

public HWMGetFileInfo(HWMFileServer hwmFS)
Constructor

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

GetFileInfo

public HWMFileInfo GetFileInfo(int nFileID)
                        throws java.lang.Exception
Get the info of the latest version under the latest revision of the file with given id

Parameters:
nFileID - The file id of the file to return
Returns:
HWMFileServer The file server object
Throws:
java.lang.Exception

GetFileInfo

public HWMFileInfo GetFileInfo(int nFileID,
                               java.lang.String strRevision)
                        throws java.lang.Exception
Get the info of latest version under the given revision of the file with given id

Parameters:
nFileID - The file id of the file to return
strRevision - The revision of the file to return
Returns:
HWMFileServer The file server object
Throws:
java.lang.Exception

GetFileInfo

public HWMFileInfo GetFileInfo(int nFileID,
                               java.lang.String strRevision,
                               int nVersion)
                        throws java.lang.Exception
Get the info of given version under the given revision of the file with given id

Parameters:
nFileID - The file id of the file to return
strRevision - The revision of the file to return
nVersion - the version to return.
Returns:
HWMFileServer The file server object
Throws:
java.lang.Exception