com.altair.hwm.fileserver.server
Class HWMGetFile

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

public class HWMGetFile
extends java.lang.Object

Title: HWMGetFile

Description: Get the file with given attributes. A file can be retrieved using:

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

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

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

Company: Altair Engineering, Inc.


Constructor Summary
HWMGetFile(HWMFileServer hwmFS)
          Constructor
 
Method Summary
 HWMFileInfo Get(int nFileID)
          Get the latest version under the latest revision of the file with given id
 HWMFileInfo Get(int nFileID, java.lang.String strRevision)
          Get the latest version under the given revision of the file with given id
 HWMFileInfo Get(int nFileID, java.lang.String strRevision, int nVersion)
          Get the 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

HWMGetFile

public HWMGetFile(HWMFileServer hwmFS)
Constructor

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

Get

public HWMFileInfo Get(int nFileID)
                throws java.lang.Exception
Get 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

Get

public HWMFileInfo Get(int nFileID,
                       java.lang.String strRevision)
                throws java.lang.Exception
Get the 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

Get

public HWMFileInfo Get(int nFileID,
                       java.lang.String strRevision,
                       int nVersion)
                throws java.lang.Exception
Get the 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