Package org.alfresco.filesys.repo
Class NodeRefNetworkFile
- java.lang.Object
-
- org.alfresco.jlan.server.filesys.NetworkFile
-
- org.alfresco.filesys.alfresco.AlfrescoNetworkFile
-
- org.alfresco.filesys.repo.NodeRefNetworkFile
-
- All Implemented Interfaces:
NetworkFileLegacyReferenceCount,org.alfresco.jlan.server.filesys.cache.NetworkFileStateInterface
- Direct Known Subclasses:
ContentNetworkFile,LinkMemoryNetworkFile
public abstract class NodeRefNetworkFile extends AlfrescoNetworkFile implements NetworkFileLegacyReferenceCount
NodeRef Based Network File Class- Author:
- gkspencer
-
-
Field Summary
Fields Modifier and Type Field Description protected org.alfresco.service.cmr.repository.NodeRefm_nodeRefprotected intm_pid-
Fields inherited from class org.alfresco.jlan.server.filesys.NetworkFile
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 Summary
Constructors Constructor Description NodeRefNetworkFile(java.lang.String name)Create a network file object with the specified file/directory name.NodeRefNetworkFile(java.lang.String name, org.alfresco.service.cmr.repository.NodeRef node)Create a network file object with the specified file/directory name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdecrementLagacyOpenCount()Decrement the legacy file open countintdecrementOpenCount()Decrement the file open countintgetLegacyOpenCount()Return the legacy open file countorg.alfresco.service.cmr.repository.NodeRefgetNodeRef()Return the node refintgetOpenCount()Return the open file countintgetProcessId()Return the process id of the ownerintincrementLegacyOpenCount()Increment the legacy file open countintincrementOpenCount()Increment the file open countvoidsetNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)set the node refvoidsetProcessId(int pid)Set the owner process id-
Methods inherited from class org.alfresco.filesys.alfresco.AlfrescoNetworkFile
allowsOpenCloseViaNetworkFile, getFileState, setFileState
-
Methods inherited from class org.alfresco.jlan.server.filesys.NetworkFile
addLock, 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, openFile, 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
-
-
-
-
Constructor Detail
-
NodeRefNetworkFile
public NodeRefNetworkFile(java.lang.String name)
Create a network file object with the specified file/directory name.- Parameters:
name- File name string.
-
NodeRefNetworkFile
public NodeRefNetworkFile(java.lang.String name, org.alfresco.service.cmr.repository.NodeRef node)Create a network file object with the specified file/directory name.- Parameters:
name- File name string.node- NodeRef
-
-
Method Detail
-
getNodeRef
public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Return the node ref- Returns:
- NodeRef
-
setNodeRef
public void setNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
set the node ref- Parameters:
nodeRef- NodeRef
-
getProcessId
public final int getProcessId()
Return the process id of the owner- Returns:
- int
-
setProcessId
public final void setProcessId(int pid)
Set the owner process id- Parameters:
pid- int
-
incrementOpenCount
public final int incrementOpenCount()
Increment the file open count- Returns:
- int
-
decrementOpenCount
public final int decrementOpenCount()
Decrement the file open count- Returns:
- int
-
getOpenCount
public final int getOpenCount()
Return the open file count- Returns:
- int
-
incrementLegacyOpenCount
public final int incrementLegacyOpenCount()
Increment the legacy file open count- Specified by:
incrementLegacyOpenCountin interfaceNetworkFileLegacyReferenceCount- Returns:
- int
-
decrementLagacyOpenCount
public final int decrementLagacyOpenCount()
Decrement the legacy file open count- Specified by:
decrementLagacyOpenCountin interfaceNetworkFileLegacyReferenceCount- Returns:
- int
-
getLegacyOpenCount
public final int getLegacyOpenCount()
Return the legacy open file count- Specified by:
getLegacyOpenCountin interfaceNetworkFileLegacyReferenceCount- Returns:
- int
-
-