public class DeleteFileRequest extends FileRequest
Contains the details of a file that has been marked for delete when the database is offline.
AttrProtocol, AttrUserName, DELETE, LOAD, SAVE, TRANSSAVE
Constructor and Description |
---|
DeleteFileRequest(int fid,
int stid,
java.lang.String tempPath,
java.lang.String virtPath,
FileState state)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getFileId()
Return the file identifier
|
FileState |
getFileState()
Return the associated file state
|
int |
getStreamId()
Return the stream identifier, zero for the main file stream
|
java.lang.String |
getTemporaryFile()
Return the temporary file path
|
java.lang.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 |
setVirtualPath(java.lang.String path)
Set the files virtual path
|
java.lang.String |
toString()
Return the file request as a string
|
addAttribute, getAttributes, getAttributesString, getThreadId, getTransactionId, hasAttribute, hasAttributes, isLastTransactionFile, isTransaction, isType, setAttributes, setThreadId, setTransactionId, setTransactionId
public DeleteFileRequest(int fid, int stid, java.lang.String tempPath, java.lang.String virtPath, FileState state)
fid
- intstid
- inttempPath
- StringvirtPath
- Stringstate
- FileStatepublic final int getFileId()
public final int getStreamId()
public final java.lang.String getVirtualPath()
public final java.lang.String getTemporaryFile()
public final boolean hasFileState()
public final FileState getFileState()
public final void setFileState(FileState state)
state
- FileStatepublic final void setVirtualPath(java.lang.String path)
path
- Stringpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.