Package org.alfresco.filesys.alfresco
Class AlfrescoDiskDriver
java.lang.Object
org.alfresco.filesys.alfresco.AlfrescoDiskDriver
- All Implemented Interfaces:
ExtendedDiskInterface,org.alfresco.jlan.server.core.DeviceInterface,org.alfresco.jlan.server.filesys.DiskInterface
- Direct Known Subclasses:
AlfrescoTxDiskDriver,ContentDiskDriver2
Alfresco Disk Driver Base Class
Provides common code to the Alfresco filesystem implementations.
- Author:
- gkspencer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ServiceRegistryReturn the service registryfinal TransactionServiceReturn the transaction servicevoidregisterContext(org.alfresco.jlan.server.core.DeviceContext ctx) Registers a device context object for this instance of the shared device.voidsetServiceRegistry(ServiceRegistry serviceRegistry) Set the service registryvoidsetTransactionService(TransactionService transactionService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.jlan.server.core.DeviceInterface
createContext, treeClosed, treeOpenedMethods inherited from interface org.alfresco.jlan.server.filesys.DiskInterface
closeFile, createDirectory, createFile, deleteDirectory, deleteFile, fileExists, flushFile, getFileInformation, isReadOnly, openFile, readFile, renameFile, seekFile, setFileInformation, startSearch, truncateFile, writeFile
-
Field Details
-
m_transactionService
-
-
Constructor Details
-
AlfrescoDiskDriver
public AlfrescoDiskDriver()
-
-
Method Details
-
getServiceRegistry
Return the service registry- Returns:
- ServiceRegistry
-
getTransactionService
Return the transaction service- Returns:
- TransactionService
-
setServiceRegistry
Set the service registry- Parameters:
serviceRegistry- ServiceRegistry
-
setTransactionService
- Parameters:
transactionService- the transaction service
-
registerContext
public void registerContext(org.alfresco.jlan.server.core.DeviceContext ctx) throws org.alfresco.jlan.server.core.DeviceContextException Registers a device context object for this instance of the shared device. The same DeviceInterface implementation may be used for multiple shares. In this base class, we initialize all desktop actions.- Specified by:
registerContextin interfaceExtendedDiskInterface- Parameters:
ctx- the context- Throws:
org.alfresco.jlan.server.core.DeviceContextException
-