com.altair.hwm.fileserver.server
Class HWMAddFile

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

public class HWMAddFile
extends java.lang.Object

Title: HWMAddFile

Description: Adds a file into the file server. The call takes in the following parameters: file name, file type, revision, user, file description, version description, file object

Company: Altair Engineering, Inc.


Constructor Summary
HWMAddFile(HWMFileServer hwmFS)
          Constructor
 
Method Summary
 HWMFileInfo AddFile(java.lang.String strFName, java.lang.String strFType, java.lang.String strRevision, java.lang.String strUser, java.lang.String strFDesc, java.lang.String strVerDesc, java.io.ByteArrayInputStream bis)
          Adds the file into the database
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMAddFile

public HWMAddFile(HWMFileServer hwmFS)
Constructor

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

AddFile

public HWMFileInfo AddFile(java.lang.String strFName,
                           java.lang.String strFType,
                           java.lang.String strRevision,
                           java.lang.String strUser,
                           java.lang.String strFDesc,
                           java.lang.String strVerDesc,
                           java.io.ByteArrayInputStream bis)
                    throws java.lang.Exception
Adds the file into the database

Parameters:
strFName - The file name to add
strFType - The file type
strRevision - The revision name for the new file
strUser - The user who wants to add the file
strFDesc - The description for this new file
strVerDesc - The description for the first version
bis - The byte array input stream to the file
Returns:
HWMFileInfo The file information
Throws:
java.lang.Exception