public class LegacyFileStateDriver extends Object implements ExtendedDiskInterface
This class decorates an ExtendedDiskInterface with odds and ends to keep JLan happy.
In particular this implementation cannot contain any code that requires access to the alfresco repository.
| Constructor and Description |
|---|
LegacyFileStateDriver() |
public void init()
public void treeOpened(SrvSession sess, TreeConnection tree)
treeOpened in interface DeviceInterfacepublic void treeClosed(SrvSession sess, TreeConnection tree)
treeClosed in interface DeviceInterfacepublic NetworkFile createFile(SrvSession sess, TreeConnection tree, FileOpenParams params) throws IOException
createFile in interface DiskInterfaceIOExceptionpublic NetworkFile openFile(SrvSession sess, TreeConnection tree, FileOpenParams params) throws IOException
openFile in interface DiskInterfaceIOExceptionpublic void closeFile(SrvSession sess, TreeConnection tree, NetworkFile file) throws IOException
closeFile in interface DiskInterfaceIOExceptionpublic void registerContext(DeviceContext ctx) throws DeviceContextException
ExtendedDiskInterfaceregisterContext in interface ExtendedDiskInterfaceDeviceContextExceptionpublic void setDiskInterface(ExtendedDiskInterface diskInterface)
public ExtendedDiskInterface getDiskInterface()
public void createDirectory(SrvSession sess, TreeConnection tree, FileOpenParams params) throws IOException
createDirectory in interface DiskInterfaceIOExceptionpublic void deleteDirectory(SrvSession sess, TreeConnection tree, String dir) throws IOException
deleteDirectory in interface DiskInterfaceIOExceptionpublic void deleteFile(SrvSession sess, TreeConnection tree, String name) throws IOException
deleteFile in interface DiskInterfaceIOExceptionpublic int fileExists(SrvSession sess, TreeConnection tree, String name)
fileExists in interface DiskInterfacepublic void flushFile(SrvSession sess, TreeConnection tree, NetworkFile file) throws IOException
flushFile in interface DiskInterfaceIOExceptionpublic FileInfo getFileInformation(SrvSession sess, TreeConnection tree, String name) throws IOException
getFileInformation in interface DiskInterfaceIOExceptionpublic boolean isReadOnly(SrvSession sess, DeviceContext ctx) throws IOException
isReadOnly in interface DiskInterfaceIOExceptionpublic int readFile(SrvSession sess, TreeConnection tree, NetworkFile file, byte[] buf, int bufPos, int siz, long filePos) throws IOException
readFile in interface DiskInterfaceIOExceptionpublic void renameFile(SrvSession sess, TreeConnection tree, String oldName, String newName) throws IOException
renameFile in interface DiskInterfaceIOExceptionpublic long seekFile(SrvSession sess, TreeConnection tree, NetworkFile file, long pos, int typ) throws IOException
seekFile in interface DiskInterfaceIOExceptionpublic void setFileInformation(SrvSession sess, TreeConnection tree, String name, FileInfo info) throws IOException
setFileInformation in interface DiskInterfaceIOExceptionpublic SearchContext startSearch(SrvSession sess, TreeConnection tree, String searchPath, int attrib) throws FileNotFoundException
startSearch in interface DiskInterfaceFileNotFoundExceptionpublic void truncateFile(SrvSession sess, TreeConnection tree, NetworkFile file, long siz) throws IOException
truncateFile in interface DiskInterfaceIOExceptionpublic int writeFile(SrvSession sess, TreeConnection tree, NetworkFile file, byte[] buf, int bufoff, int siz, long fileoff) throws IOException
writeFile in interface DiskInterfaceIOExceptionpublic DeviceContext createContext(String shareName, org.springframework.extensions.config.ConfigElement args) throws DeviceContextException
createContext in interface DeviceInterfaceDeviceContextExceptionpublic void setFileLockingInterface(FileLockingInterface fileLockingInterface)
public FileLockingInterface getFileLockingInterface()
public void setOpLockInterface(OpLockInterface opLockInterface)
public OpLockInterface getOpLockInterface()
Copyright © 2005–2014 Alfresco Software. All rights reserved.