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
public abstract class AlfrescoDiskDriver extends java.lang.Object implements ExtendedDiskInterface
Alfresco Disk Driver Base ClassProvides common code to the Alfresco filesystem implementations.
- Author:
- gkspencer
-
-
Field Summary
Fields Modifier and Type Field Description protected TransactionServicem_transactionService
-
Constructor Summary
Constructors Constructor Description AlfrescoDiskDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceRegistrygetServiceRegistry()Return the service registryTransactionServicegetTransactionService()Return 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, wait
-
Methods inherited from interface org.alfresco.jlan.server.core.DeviceInterface
createContext, treeClosed, treeOpened
-
Methods 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 Detail
-
m_transactionService
protected TransactionService m_transactionService
-
-
Method Detail
-
getServiceRegistry
public final ServiceRegistry getServiceRegistry()
Return the service registry- Returns:
- ServiceRegistry
-
getTransactionService
public final TransactionService getTransactionService()
Return the transaction service- Returns:
- TransactionService
-
setServiceRegistry
public void setServiceRegistry(ServiceRegistry serviceRegistry)
Set the service registry- Parameters:
serviceRegistry- ServiceRegistry
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
- Parameters:
transactionService- the transaction service
-
registerContext
public void registerContext(org.alfresco.jlan.server.core.DeviceContext ctx) throws org.alfresco.jlan.server.core.DeviceContextExceptionRegisters 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
-
-