public abstract class NodeRefNetworkFile extends AlfrescoNetworkFile implements NetworkFileLegacyReferenceCount
Modifier and Type | Field and Description |
---|---|
protected org.alfresco.service.cmr.repository.NodeRef |
m_nodeRef |
protected int |
m_pid |
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 |
---|
NodeRefNetworkFile(String name)
Create a network file object with the specified file/directory name.
|
NodeRefNetworkFile(String name,
org.alfresco.service.cmr.repository.NodeRef node)
Create a network file object with the specified file/directory name.
|
Modifier and Type | Method and Description |
---|---|
int |
decrementLagacyOpenCount()
Decrement the legacy file open count
|
int |
decrementOpenCount()
Decrement the file open count
|
int |
getLegacyOpenCount()
Return the legacy open file count
|
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef()
Return the node ref
|
int |
getOpenCount()
Return the open file count
|
int |
getProcessId()
Return the process id of the owner
|
int |
incrementLegacyOpenCount()
Increment the legacy file open count
|
int |
incrementOpenCount()
Increment the file open count
|
void |
setNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
set the node ref
|
void |
setProcessId(int pid)
Set the owner process id
|
allowsOpenCloseViaNetworkFile, getFileState, setFileState
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
protected org.alfresco.service.cmr.repository.NodeRef m_nodeRef
protected int m_pid
public NodeRefNetworkFile(String name)
name
- File name string.public NodeRefNetworkFile(String name, org.alfresco.service.cmr.repository.NodeRef node)
name
- File name string.node
- NodeRefpublic org.alfresco.service.cmr.repository.NodeRef getNodeRef()
public void setNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRefpublic final int getProcessId()
public final void setProcessId(int pid)
pid
- intpublic final int incrementOpenCount()
public final int decrementOpenCount()
public final int getOpenCount()
public final int incrementLegacyOpenCount()
incrementLegacyOpenCount
in interface NetworkFileLegacyReferenceCount
public final int decrementLagacyOpenCount()
decrementLagacyOpenCount
in interface NetworkFileLegacyReferenceCount
public final int getLegacyOpenCount()
getLegacyOpenCount
in interface NetworkFileLegacyReferenceCount
Copyright © 2005–2017 Alfresco Software. All rights reserved.