Class ContentContext

java.lang.Object
org.alfresco.jlan.server.core.DeviceContext
org.alfresco.jlan.server.filesys.DiskDeviceContext
org.alfresco.filesys.alfresco.AlfrescoContext
org.alfresco.filesys.repo.ContentContext

public class ContentContext extends AlfrescoContext
Content Filesystem Context Class

Contains per filesystem context.

Author:
GKSpencer
  • Constructor Details

    • ContentContext

      public ContentContext()
      Default constructor allowing initialization by container.
    • ContentContext

      public ContentContext(String deviceName, String storeName, String rootPath, NodeRef rootNodeRef)
      Class constructor
      Parameters:
      deviceName - String
      storeName - String
      rootPath - String
      rootNodeRef - NodeRef
  • Method Details

    • setStoreName

      public void setStoreName(String name)
    • setRootPath

      public void setRootPath(String path)
    • setRelativePath

      public void setRelativePath(String path)
    • setOfflineFiles

      public void setOfflineFiles(boolean offlineFiles)
    • setDisableNodeMonitor

      public void setDisableNodeMonitor(boolean disableNodeMonitor)
    • setDisableChangeNotifications

      public void setDisableChangeNotifications(boolean disableChangeNotify)
      Disable change notifications
      Parameters:
      disableChangeNotify - boolean
    • setAccessControlList

      public void setAccessControlList(AccessControlListBean accessControlList)
    • setRootNodeRef

      public void setRootNodeRef(NodeRef nodeRef)
    • setDisableOplocks

      public void setDisableOplocks(boolean disableOplocks)
      Enable/disable oplock support
      Parameters:
      disableOplocks - boolean
    • getRenameShufflePattern

      public Pattern getRenameShufflePattern()
      Get the regular expression pattern that will be applied to detected potential rename shuffles.
      Returns:
      the regular expression pattern to match against
    • setRenameShufflePattern

      public void setRenameShufflePattern(Pattern renameShufflePattern)
      Set the regular expression that will be applied to filenames during renames to detect whether clients are performing a renaming shuffle - common during file saving on various clients.

      ALF-3856

      Parameters:
      renameShufflePattern - a regular expression filename match
    • initialize

      public void initialize(AlfrescoDiskDriver filesysDriver)
      Description copied from class: AlfrescoContext
      Complete initialization by registering with a disk driver
      Overrides:
      initialize in class AlfrescoContext
    • getFilesystemType

      public String getFilesystemType()
      Return the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS.
      Overrides:
      getFilesystemType in class AlfrescoContext
      Returns:
      String
    • getStoreName

      public final String getStoreName()
      Return the store name
      Returns:
      String
    • getRootPath

      public final String getRootPath()
      Return the root path
      Returns:
      String
    • getRelativePath

      public String getRelativePath()
      Return the relative path
      Returns:
      String
    • getOfflineFiles

      public boolean getOfflineFiles()
      Determines whether locked files should be marked as offline.
      Returns:
      true if locked files should be marked as offline
    • getDisableNodeMonitor

      public boolean getDisableNodeMonitor()
      Determines whether a node monitor is required.
      Returns:
      true if a node monitor is required
    • getDisableOplocks

      public boolean getDisableOplocks()
      Determine if oplocks support should be disabled
      Returns:
      boolean
    • getLockManager

      public org.alfresco.jlan.server.filesys.cache.FileStateLockManager getLockManager()
      Return the lock manager
      Overrides:
      getLockManager in class AlfrescoContext
      Returns:
      FileStateLockManager
    • getDisableChangeNotifications

      public boolean getDisableChangeNotifications()
      Determine if change notifications are disabled
      Returns:
      boolean
    • getAccessControlList

      public AccessControlListBean getAccessControlList()
      Gets the access control list.
      Returns:
      the access control list
    • getRootNode

      public final NodeRef getRootNode()
      Return the root node
      Returns:
      NodeRef
    • getThreadPool

      public final org.alfresco.jlan.server.thread.ThreadRequestPool getThreadPool()
      Return the thread pool
      Returns:
      ThreadRequestPool
    • CloseContext

      public void CloseContext()
      Close the filesystem context
      Overrides:
      CloseContext in class org.alfresco.jlan.server.filesys.DiskDeviceContext
    • setNodeMonitor

      protected void setNodeMonitor(NodeMonitor nodeMonitor)
      Set the node monitor
      Parameters:
      nodeMonitor - node monitor
    • startFilesystem

      public void startFilesystem(org.alfresco.jlan.server.filesys.DiskSharedDevice share) throws org.alfresco.jlan.server.core.DeviceContextException
      Start the filesystem
      Overrides:
      startFilesystem in class AlfrescoContext
      Parameters:
      share - DiskSharedDevice
      Throws:
      org.alfresco.jlan.server.core.DeviceContextException