Fix for CIFS/CheckInOut.exe save of working copy breaks lock on original file. ALF-2028.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19784 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2010-04-09 08:47:35 +00:00
parent 56f6c38b22
commit 1261142950
3 changed files with 337 additions and 142 deletions

View File

@@ -103,6 +103,10 @@ public class FileState
private long m_modifyDate;
private long m_changeDate;
// Keep track of the node we are linked to, when deleted
private NodeRef m_linkNode;
/**
* Class constructor
*
@@ -639,6 +643,33 @@ public class FileState
m_modifyDate = modTime;
}
/**
* Check if the file is linked to another node
*
* @return boolean
*/
public final boolean hasLinkNode() {
return m_linkNode != null ? true : false;
}
/**
* Return the node that the file is linked to
*
* @return NodeRef
*/
public final NodeRef getLinkNode() {
return m_linkNode;
}
/**
* Set the node that this file is linked to
*
* @param node NodeRef
*/
public final void setLinkNode( NodeRef node) {
m_linkNode = node;
}
/**
* Check if the file is readable for the specified section of the file and process id
*