public class SingleFileRequest extends FileRequest
Contains the details of a single file load or save request.
AttrProtocol, AttrUserName, DELETE, LOAD, SAVE, TRANSSAVE
Constructor and Description |
---|
SingleFileRequest(int typ,
int fid,
int stid,
FileSegmentInfo segInfo,
String virtPath,
FileState state)
Class constructor
|
SingleFileRequest(int typ,
int fid,
int stid,
String tempPath,
String virtPath,
FileState state)
Class constructor
|
SingleFileRequest(int typ,
int fid,
int stid,
String tempPath,
String virtPath,
int seq,
FileState state)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getFileId()
Return the file identifier
|
FileState |
getFileState()
Return the associated file state
|
int |
getSequenceNumber()
Return the unique request id
|
int |
getStreamId()
Return the stream identifier, zero for the main file stream
|
String |
getTemporaryFile()
Return the temporary file path
|
String |
getVirtualPath()
Return the files virtual path
|
boolean |
hasFileState()
Check if the request has an associated file state
|
void |
setFileState(FileState state)
Set the associated file state for the request
|
void |
setSequenceNumber(int id)
Set the request unique id
|
void |
setVirtualPath(String path)
Set the files virtual path
|
String |
toString()
Return the file request as a string
|
addAttribute, getAttributes, getAttributesString, getThreadId, getTransactionId, hasAttribute, hasAttributes, isLastTransactionFile, isTransaction, isType, setAttributes, setThreadId, setTransactionId, setTransactionId
public SingleFileRequest(int typ, int fid, int stid, String tempPath, String virtPath, FileState state)
typ
- intfid
- intstid
- inttempPath
- StringvirtPath
- Stringstate
- FileStatepublic SingleFileRequest(int typ, int fid, int stid, FileSegmentInfo segInfo, String virtPath, FileState state)
typ
- intfid
- intstid
- intsegInfo
- FileSegmentInfovirtPath
- Stringstate
- FileStatepublic final int getFileId()
public final int getStreamId()
public final int getSequenceNumber()
public final String getVirtualPath()
public final String getTemporaryFile()
public final boolean hasFileState()
public final FileState getFileState()
public final void setFileState(FileState state)
state
- FileStatepublic final void setSequenceNumber(int id)
id
- intpublic final void setVirtualPath(String path)
path
- StringCopyright © 2005–2018 Alfresco Software. All rights reserved.