Class 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 Class

    Provides common code to the Alfresco filesystem implementations.

    Author:
    gkspencer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ServiceRegistry getServiceRegistry()
      Return the service registry
      TransactionService getTransactionService()
      Return the transaction service
      void registerContext​(org.alfresco.jlan.server.core.DeviceContext ctx)
      Registers a device context object for this instance of the shared device.
      void setServiceRegistry​(ServiceRegistry serviceRegistry)
      Set the service registry
      void setTransactionService​(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
    • Constructor Detail

      • AlfrescoDiskDriver

        public AlfrescoDiskDriver()
    • 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.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:
        registerContext in interface ExtendedDiskInterface
        Parameters:
        ctx - the context
        Throws:
        org.alfresco.jlan.server.core.DeviceContextException