1 17 package org.alfresco.filesys.server.locking; 18 19 import java.io.IOException ; 20 21 import org.alfresco.filesys.locking.FileLock; 22 import org.alfresco.filesys.locking.LockConflictException; 23 import org.alfresco.filesys.locking.NotLockedException; 24 import org.alfresco.filesys.server.SrvSession; 25 import org.alfresco.filesys.server.filesys.NetworkFile; 26 import org.alfresco.filesys.server.filesys.TreeConnection; 27 28 33 public interface LockManager 34 { 35 36 46 public void lockFile(SrvSession sess, TreeConnection tree, NetworkFile file, FileLock lock) 47 throws LockConflictException, IOException ; 48 49 59 public void unlockFile(SrvSession sess, TreeConnection tree, NetworkFile file, FileLock lock) 60 throws NotLockedException, IOException ; 61 62 73 public FileLock createLockObject(SrvSession sess, TreeConnection tree, NetworkFile file, long offset, long len, 74 int pid); 75 76 84 public void releaseLocksForFile(SrvSession sess, TreeConnection tree, NetworkFile file); 85 } 86 | Popular Tags |