ALF-11103 - NFS Files not getting closed.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32555 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2011-12-06 10:18:38 +00:00
parent d8f5f3a5e8
commit 598f7d939d
2 changed files with 16 additions and 0 deletions

View File

@@ -63,4 +63,12 @@ public abstract class AlfrescoNetworkFile extends NetworkFile implements Network
{ {
m_state = state; m_state = state;
} }
/**
* Tell JLAN it needs to call disk.closeFile rather than short cutting.
* @return
*/
public boolean allowsOpenCloseViaNetworkFile() {
return false;
}
} }

View File

@@ -124,6 +124,14 @@ public class TempNetworkFile extends JavaNetworkFile implements NetworkFileState
return fileState; return fileState;
} }
/**
* Tell JLAN it needs to call disk.closeFile rather than short cutting.
* @return
*/
public boolean allowsOpenCloseViaNetworkFile() {
return false;
}
private FileState fileState; private FileState fileState;
} }