mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user