com.altair.hwm.fileserver.server
Class HWMReviseFile

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

public class HWMReviseFile
extends java.lang.Object

Title: HWMReviseFile

Description: This class provides the revision functionality where a new revision can be created. To revise a file the following data is required:

a> file id, user name, version description, revision name of the file to revise and new revision name. b> file id, user name, version description, revision name of the file to revise, version of the file to revise and new revision name. Company: Altair Engineering, Inc.


Constructor Summary
HWMReviseFile(HWMFileServer hwmFS)
          Constructor
 
Method Summary
 HWMFileInfo Revise(int nFileID, java.lang.String strRevision, int nVersion, java.lang.String strUser, java.lang.String strNewRevision, java.lang.String strVerDesc)
          Create a new revision for the file with given attributes.
 HWMFileInfo Revise(int nFileID, java.lang.String strRevision, java.lang.String strUser, java.lang.String strNewRevision, java.lang.String strVerDesc)
          Create a new revision for the file with given attributes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMReviseFile

public HWMReviseFile(HWMFileServer hwmFS)
Constructor

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

Revise

public HWMFileInfo Revise(int nFileID,
                          java.lang.String strRevision,
                          java.lang.String strUser,
                          java.lang.String strNewRevision,
                          java.lang.String strVerDesc)
                   throws java.lang.Exception
Create a new revision for the file with given attributes.

Parameters:
nFileID - The ID of the file to revise
strRevision - The revision name of the file to revise
strUser - The user name whois creating a new revision
strNewRevision - The new revision name
strVerDesc - The version description to use for the first version of the new file.
Throws:
java.lang.Exception

Revise

public HWMFileInfo Revise(int nFileID,
                          java.lang.String strRevision,
                          int nVersion,
                          java.lang.String strUser,
                          java.lang.String strNewRevision,
                          java.lang.String strVerDesc)
                   throws java.lang.Exception
Create a new revision for the file with given attributes.

Parameters:
nFileID - The ID of the file to revise
strRevision - The revision name of the file to revise
nVersion - The version # to revise
strUser - The user name whois creating a new revision
strNewRevision - The new revision name
strVerDesc - The version description to use for the first version of the new file.
Throws:
java.lang.Exception