|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.mdms.FileService.komodo.api.Result
public class Result
Result class maintains information about individual files.
| Constructor Summary | |
|---|---|
Result(int ftId,
String name,
String contributor,
long size,
String qaRelease,
byte[] checksum,
String note)
Constructor |
|
Result(int ftId,
String name,
String contributor,
long size,
String qaRelease,
byte[] checksum,
String note,
String serverGroup,
String fileType,
int transId)
Constructor |
|
Result(jpl.mipl.mdms.FileService.komodo.api.Request request,
int errno,
String message)
Constructor |
|
Result(jpl.mipl.mdms.FileService.komodo.api.Request request,
String name)
Constructor |
|
Result(jpl.mipl.mdms.FileService.komodo.api.Request request,
String name,
long size)
Constructor |
|
Result(jpl.mipl.mdms.FileService.komodo.api.Request request,
String name,
long size,
Date datetime)
Constructor |
|
Result(String name,
long size)
Constructor |
|
Result(String vft,
String title,
String comment,
String createdBy,
String created,
String updatedBy,
String updated)
Constructor for vft information. |
|
Result(String vft,
String refName,
String refLink,
String refFileType,
String refFileName,
String comment,
String updateFileType,
String updateFileName,
boolean updateRef)
Constructor for vft reference information. |
|
| Method Summary | |
|---|---|
void |
commit()
Method to commit a transaction into the restart file. |
String |
getArchiveNote()
Method to return the archive note |
byte[] |
getChecksum()
Method to get the file's checksum. |
String |
getChecksumStr()
Method to return the checksum string |
String |
getComment()
Method to return the comment |
String |
getCreated()
Method to get file/vft create time |
String |
getCreatedBy()
Method to get vft the name of the agent that created the VFT. |
Date |
getDate()
Deprecated. Use getFileModificationTime |
int |
getErrno()
Method to get errno for this result |
byte[] |
getFileBuffer()
Method to get file buffer |
long |
getFileBufferSize()
Method to get file buffer size |
String |
getFileContributor()
Method to get contributor name |
Date |
getFileCreationTime()
Method to get file creation time |
long |
getFileId()
Method to return file id |
Date |
getFileModificationTime()
Method to get file's date |
int |
getFtId()
Method to get file's internal DBMS id for the file type. |
String |
getLocalLocation()
Method to return local file location |
String |
getMessage()
Method to return message with time stamp |
String |
getName()
Method to get file name |
String |
getNote()
Method to return the associated note |
String |
getQaRelease()
Method to get the qaDate. |
int |
getReceiptId()
Method to return the receipt ID |
String |
getRefFileName()
Method to get vft reference file name |
String |
getRefFileType()
Method to get vft reference file type |
String |
getRefLink()
Method to get vft reference location |
String |
getRefName()
Method to get vft reference name |
String |
getRemoteLocation()
Method to return file local location |
String |
getServerGroup()
Method to return the request server group |
long |
getSize()
Method to get file size |
String |
getTitle()
Method to return the title |
int |
getTransactionId()
Method to get transaction id |
String |
getType()
Method to return the request file type |
String |
getUpdated()
Method to get vft update time |
String |
getUpdatedBy()
Method to get the name of the agent that updated the file/VFT. |
String |
getUpdateFileName()
Method to get vft update file name. |
String |
getUpdateFileType()
Method to get the file type of the next reference. |
String |
getVFTHeader()
Build a VFT header, using all ancillary information. |
String |
getVFTName()
Method to get vft name |
boolean |
secure()
Was the file transfered is secure mode? |
void |
setChecksum(byte[] checksum)
Method to set checksum byte array |
void |
setChecksum(String checksum)
Method to set checksum value |
void |
setClientRestartCache(ClientRestartCache restartCache)
Method to set restart file |
void |
setComment(String comment)
Method to set comment |
void |
setCreated(String created)
Method to set file/vft createt time |
void |
setDate(Date date)
Deprecated. Use setFileModificationTimeString |
void |
setFileBuffer(byte[] fileBuffer)
Method to set file buffer |
void |
setFileContributor(String contributor)
Method to set the file contributor name |
void |
setFileCreationTime(Date created)
Method to set file creation time |
void |
setFileId(long fileId)
Method to set file id |
void |
setFileModificationTime(Date date)
Method to set date string. |
void |
setFtId(int ftId)
Method to set file's internal DBMS id for the file type. |
void |
setLocalLocation(String location)
Method to set local file location |
void |
setName(String name)
Method to set file name string. |
void |
setNote(String note)
Method to set the associated note |
void |
setRefFileName(String refFileName)
Method to set reference file name |
void |
setRefFileType(String refFileType)
Method to set ref file type |
void |
setRefName(String refName)
Method to set vft reference name |
void |
setRemoteLocation(String location)
Method to set file remote location |
void |
setServerGroup(String serverGroup)
|
void |
setSize(long size)
Method to set file size |
void |
setType(String fileType)
Method to set the request file type. |
void |
setUpdatedBy(String updatedBy)
Method to set the name of the agent that updated the file/vft |
boolean |
updateRef()
Method to return true if an update is pending on this reference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Result(String name,
long size)
name - the file's name.size - the size of the file in bytes.
public Result(jpl.mipl.mdms.FileService.komodo.api.Request request,
String name)
request - the request information, includes, command, type,
transaction id.name - the file's name.
public Result(jpl.mipl.mdms.FileService.komodo.api.Request request,
String name,
long size)
request - the request information, includes type, transaction id.name - the file's name.size - the size of the file in bytes.
public Result(jpl.mipl.mdms.FileService.komodo.api.Request request,
String name,
long size,
Date datetime)
request - the request information, includes type, transaction id.name - the file's name.size - the size of the file in bytes.datetime - the file's modification date.
public Result(jpl.mipl.mdms.FileService.komodo.api.Request request,
int errno,
String message)
request - the request information, includes type, transaction id.errno - the error status for this file.message - an error message.
public Result(int ftId,
String name,
String contributor,
long size,
String qaRelease,
byte[] checksum,
String note,
String serverGroup,
String fileType,
int transId)
ftId - the internal DBMS id for the file type.name - the file's name.contributor - user name of the file's contributor.size - the file's size in bytes.qaRelease - the date the file becomes available to the public?checksum - the file's checksum.note - a note, or message associated with the file.serverGroup - fileType - file typetransId - transaction id
public Result(int ftId,
String name,
String contributor,
long size,
String qaRelease,
byte[] checksum,
String note)
ftId - the internal DBMS id for the file type.name - the file's name.contributor - user name of the file's contributor.size - the file's size in bytes.qaRelease - the date the file becomes available to the public?checksum - the file's checksum.note - a note, or message associated with the file.
public Result(String vft,
String refName,
String refLink,
String refFileType,
String refFileName,
String comment,
String updateFileType,
String updateFileName,
boolean updateRef)
vft - the virtual file type namerefName - the reference namerefLink - the reference linkrefFileType - the reference file typerefFileName - the reference file namecomment - the reference commentupdateFileType - the update reference file typeupdateFileName - the update reference file nameupdateRef - the update reference flag. Is an update pending?
public Result(String vft,
String title,
String comment,
String createdBy,
String created,
String updatedBy,
String updated)
vft - the virtual file type name.title - the title of the virtual file type.comment - the comment assoicated with the last update.createdBy - the agent that created the vftcreated - the time vft was createdupdatedBy - the agent that updated the vft.updated - the time of update.| Method Detail |
|---|
public void setClientRestartCache(ClientRestartCache restartCache)
restartInfo - the restart file name for commit.public final String getMessage()
public void setComment(String comment)
comment - the comment associated with this filepublic final String getComment()
public final String getTitle()
public final int getReceiptId()
public final String getArchiveNote()
public final int getErrno()
public String getType()
public void setType(String fileType)
fileType - filetype associated with this transactionpublic String getServerGroup()
public void setServerGroup(String serverGroup)
public int getTransactionId()
public final String getVFTName()
public final String getCreatedBy()
public final String getCreated()
public final void setCreated(String created)
created - the file/vft create timepublic final String getUpdatedBy()
public final void setUpdatedBy(String updatedBy)
updatedBy - the agent's namepublic final String getUpdated()
public final String getRefName()
public final void setRefName(String refName)
refName - the reference name string.public final String getRefFileName()
public final void setRefFileName(String refFileName)
refFileName - reference file name string.public final String getRefFileType()
public final void setRefFileType(String refFileType)
refFileType - the reference file type string.public String getVFTHeader()
public final boolean updateRef()
public final String getUpdateFileName()
public final String getUpdateFileType()
public final String getRefLink()
public final String getName()
public final void setName(String name)
name - the file name string.public final long getSize()
public long getFileBufferSize()
public final byte[] getFileBuffer()
public final void setFileBuffer(byte[] fileBuffer)
fileBuffer - the buffer containing file.public final void setSize(long size)
size - the file sizepublic final Date getDate()
public final Date getFileModificationTime()
public final void setDate(Date date)
date - the date string.public final void setFileModificationTime(Date date)
date - the date string.public final int getFtId()
public final void setFtId(int ftId)
ftId - the file's internal DBMS id for the file type.public final String getFileContributor()
public final void setFileContributor(String contributor)
contributor - the file contributorpublic final Date getFileCreationTime()
public final void setFileCreationTime(Date created)
created - file creation timepublic final String getQaRelease()
public final byte[] getChecksum()
public boolean secure()
public String getChecksumStr()
public final void setChecksum(byte[] checksum)
checksum - the checksum value associated with this transactionpublic final void setChecksum(String checksum)
checksum - the checksum from hex ascii string input.public final String getNote()
public final void setNote(String note)
note - the note to associate with a file.public final String getRemoteLocation()
public final void setRemoteLocation(String location)
location - the remote location of the filepublic final String getLocalLocation()
public final void setLocalLocation(String location)
location - the local location of the filepublic final long getFileId()
public final void setFileId(long fileId)
fileId - the id of the file
public final void commit()
throws SessionException
SessionException - when session failure
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||