Package org.alfresco.filesys.repo
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
Content Filesystem Context Class
Contains per filesystem context.
- Author:
- GKSpencer
-
Field Summary
Fields inherited from class org.alfresco.filesys.alfresco.AlfrescoContext
DBG_FILE, DBG_FILEIO, DBG_INFO, DBG_LOCK, DBG_PSEUDO, DBG_RENAME, DBG_SEARCH, m_debug -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor allowing initialization by container.ContentContext(String deviceName, String storeName, String rootPath, NodeRef rootNodeRef) Class constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidClose the filesystem contextGets the access control list.booleanDetermine if change notifications are disabledbooleanDetermines whether a node monitor is required.booleanDetermine if oplocks support should be disabledReturn the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS.org.alfresco.jlan.server.filesys.cache.FileStateLockManagerReturn the lock managerbooleanDetermines whether locked files should be marked as offline.Return the relative pathGet the regular expression pattern that will be applied to detected potential rename shuffles.final NodeRefReturn the root nodefinal StringReturn the root pathfinal StringReturn the store namefinal org.alfresco.jlan.server.thread.ThreadRequestPoolReturn the thread poolvoidinitialize(AlfrescoDiskDriver filesysDriver) Complete initialization by registering with a disk drivervoidsetAccessControlList(AccessControlListBean accessControlList) voidsetDisableChangeNotifications(boolean disableChangeNotify) Disable change notificationsvoidsetDisableNodeMonitor(boolean disableNodeMonitor) voidsetDisableOplocks(boolean disableOplocks) Enable/disable oplock supportprotected voidsetNodeMonitor(NodeMonitor nodeMonitor) Set the node monitorvoidsetOfflineFiles(boolean offlineFiles) voidsetRelativePath(String path) voidsetRenameShufflePattern(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.voidsetRootNodeRef(NodeRef nodeRef) voidsetRootPath(String path) voidsetStoreName(String name) voidstartFilesystem(org.alfresco.jlan.server.filesys.DiskSharedDevice share) Start the filesystemMethods inherited from class org.alfresco.filesys.alfresco.AlfrescoContext
getOpLockManager, getShareURLFileName, getShareUrlPrefix, getSysAdminParams, getURLFileName, getURLPrefix, hasDebug, isAlfrescoURLEnabled, isShareURLEnabled, setAlfrescoURLEnabled, setDebug, setDisableChangeNotification, setLockManager, setOpLockManager, setShareURLEnabled, setShareURLFileName, setSysAdminParams, setURLFileNameMethods inherited from class org.alfresco.jlan.server.filesys.DiskDeviceContext
addNotifyRequest, enableChangeHandler, getChangeHandler, getDeviceAttributes, getDiskInformation, getFilesystemAttributes, getQuotaManager, getStateCache, getVolumeInformation, hasChangeHandler, hasDiskInformation, hasFileServerNotifications, hasQuotaManager, hasStateCache, hasVolumeInformation, isCaseless, removeNotifyRequest, requiresStateCache, setDeviceAttributes, setDiskInformation, setFileServerNotifications, setFilesystemAttributes, setQuotaManager, setRequiresStateCache, setStateCache, setVolumeInformationMethods inherited from class org.alfresco.jlan.server.core.DeviceContext
getConfigurationParameters, getDeviceName, getShareName, hasConfigurationParameters, isAvailable, setAvailable, setConfigurationParameters, setDeviceName, setShareName, toString
-
Constructor Details
-
ContentContext
public ContentContext()Default constructor allowing initialization by container. -
ContentContext
Class constructor- Parameters:
deviceName- StringstoreName- StringrootPath- StringrootNodeRef- NodeRef
-
-
Method Details
-
setStoreName
-
setRootPath
-
setRelativePath
-
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
-
setRootNodeRef
-
setDisableOplocks
public void setDisableOplocks(boolean disableOplocks) Enable/disable oplock support- Parameters:
disableOplocks- boolean
-
getRenameShufflePattern
Get the regular expression pattern that will be applied to detected potential rename shuffles.- Returns:
- the regular expression pattern to match against
-
setRenameShufflePattern
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
Description copied from class:AlfrescoContextComplete initialization by registering with a disk driver- Overrides:
initializein classAlfrescoContext
-
getFilesystemType
Return the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS.- Overrides:
getFilesystemTypein classAlfrescoContext- Returns:
- String
-
getStoreName
Return the store name- Returns:
- String
-
getRootPath
Return the root path- Returns:
- String
-
getRelativePath
Return the relative path- Returns:
- String
-
getOfflineFiles
public boolean getOfflineFiles()Determines whether locked files should be marked as offline.- Returns:
trueif locked files should be marked as offline
-
getDisableNodeMonitor
public boolean getDisableNodeMonitor()Determines whether a node monitor is required.- Returns:
trueif 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:
getLockManagerin classAlfrescoContext- Returns:
- FileStateLockManager
-
getDisableChangeNotifications
public boolean getDisableChangeNotifications()Determine if change notifications are disabled- Returns:
- boolean
-
getAccessControlList
Gets the access control list.- Returns:
- the access control list
-
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:
CloseContextin classorg.alfresco.jlan.server.filesys.DiskDeviceContext
-
setNodeMonitor
Set the node monitor- Parameters:
nodeMonitor- node monitor
-