public abstract class DBNetworkFile extends NetworkFile implements NetworkFileStateInterface
Modifier and Type | Field and Description |
---|---|
static String |
DBCacheFile |
ATTRIBUTESONLY, Created, DelayedClose, DelayedWriteError, DeleteOnClose, IOPending, m_accessDate, m_allowedAccess, m_attrib, m_closed, m_createDate, m_dirId, m_fid, m_fileSize, m_fullName, m_grantedAccess, m_modifyDate, m_name, m_streamId, m_streamName, m_uniqueId, m_writeCount, READONLY, READWRITE, WRITEONLY
Constructor and Description |
---|
DBNetworkFile(String name,
int fid,
int stid,
int did)
Class constructor
|
DBNetworkFile(String name,
String fullName,
int fid,
int stid,
int did)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
FileState |
getFileState()
Return the associated caching file state
|
FileLoader |
getLoader()
Return the associated file loader
|
String |
getOwnerSessionId()
Return the owner session unique id
|
int |
getStatus()
Get the file status
|
boolean |
hasFileState()
Determine if the network file has an associated cached file state
|
boolean |
hasLoader()
Determine if the network file has an associated file loader
|
boolean |
hasOwnerSessionId()
Determine if the owner session id has been set
|
void |
openFile(boolean createFlag)
Open the file
|
void |
setFileDetails(DBFileInfo info)
Set the file details from the file information
|
void |
setFileState(FileStateProxy stateProxy)
Set the associated file state, via a proxy object
|
void |
setLoader(FileLoader loader)
Set the associated file loader
|
void |
setOwnerSessionId(String id)
Set the owner session unique id
|
void |
setStatus(int state)
Set the file data status
|
addLock, allowsOpenCloseViaNetworkFile, close, closeFile, flushFile, getAccessDate, getAccessToken, getAllowedAccess, getCreationDate, getDirectoryId, getFileAttributes, getFileId, getFileSize, getFileSizeInt, getFullName, getFullNameStream, getGrantedAccess, getGrantedAccessAsString, getLockAt, getLockList, getModifyDate, getName, getOpLock, getProtocolId, getStreamId, getStreamName, getUniqueId, getWriteCount, hasAccessDate, hasAccessToken, hasCreationDate, hasDelayedClose, hasDelayedWriteError, hasDeleteOnClose, hasIOPending, hasLocks, hasModifyDate, hasNTAttribute, hasOpLock, incrementWriteCount, isArchived, isClosed, isDirectory, isForce, isHidden, isReadOnly, isStream, isSystem, numberOfLocks, readFile, removeAllLocks, removeLock, seekFile, setAccessDate, setAccessToken, setAllowedAccess, setAttributes, setClosed, setCreationDate, setDelayedClose, setDelayedWriteError, setDeleteOnClose, setDirectoryId, setFileId, setFileSize, setFileSize, setForce, setFullName, setGrantedAccess, setIOPending, setModifyDate, setName, setOpLock, setProtocolId, setStatusFlag, setStreamId, setStreamName, setUniqueId, setUniqueId, setUniqueId, toString, truncateFile, wasCreated, writeFile
public static final String DBCacheFile
public DBNetworkFile(String name, int fid, int stid, int did)
name
- Stringfid
- intstid
- intdid
- intpublic final int getStatus()
public final boolean hasFileState()
public final FileState getFileState()
getFileState
in interface NetworkFileStateInterface
public final boolean hasLoader()
public final FileLoader getLoader()
public final boolean hasOwnerSessionId()
public final String getOwnerSessionId()
public final void setFileDetails(DBFileInfo info)
info
- DBFileInfopublic final void setStatus(int state)
state
- intpublic final void setOwnerSessionId(String id)
id
- Stringpublic final void setFileState(FileStateProxy stateProxy)
stateProxy
- FileStateProxypublic final void setLoader(FileLoader loader)
loader
- FileLoaderpublic void openFile(boolean createFlag) throws IOException
openFile
in class NetworkFile
createFlag
- booleanIOException
Copyright © 2005–2018 Alfresco Software. All rights reserved.