public class ContentContext extends AlfrescoContext
Contains per filesystem context.
DBG_FILE, DBG_FILEIO, DBG_INFO, DBG_LOCK, DBG_PSEUDO, DBG_RENAME, DBG_SEARCH, m_debug
Constructor and Description |
---|
ContentContext()
Default constructor allowing initialization by container.
|
ContentContext(String deviceName,
String storeName,
String rootPath,
org.alfresco.service.cmr.repository.NodeRef rootNodeRef)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
CloseContext()
Close the filesystem context
|
AccessControlListBean |
getAccessControlList()
Gets the access control list.
|
boolean |
getDisableChangeNotifications()
Determine if change notifications are disabled
|
boolean |
getDisableNodeMonitor()
Determines whether a node monitor is required.
|
boolean |
getDisableOplocks()
Determine if oplocks support should be disabled
|
String |
getFilesystemType()
Return the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS.
|
org.alfresco.jlan.server.filesys.cache.FileStateLockManager |
getLockManager()
Return the lock manager
|
boolean |
getOfflineFiles()
Determines whether locked files should be marked as offline.
|
PseudoFileOverlay |
getPseudoFileOverlay() |
String |
getRelativePath()
Return the relative path
|
Pattern |
getRenameShufflePattern()
Get the regular expression pattern that will be applied to detected potential
rename shuffles.
|
org.alfresco.service.cmr.repository.NodeRef |
getRootNode()
Return the root node
|
String |
getRootPath()
Return the root path
|
String |
getStoreName()
Return the store name
|
org.alfresco.jlan.server.thread.ThreadRequestPool |
getThreadPool()
Return the thread pool
|
void |
initialize(AlfrescoDiskDriver filesysDriver)
Complete initialization by registering with a disk driver
|
void |
setAccessControlList(AccessControlListBean accessControlList) |
void |
setDisableChangeNotifications(boolean disableChangeNotify)
Disable change notifications
|
void |
setDisableNodeMonitor(boolean disableNodeMonitor) |
void |
setDisableOplocks(boolean disableOplocks)
Enable/disable oplock support
|
protected void |
setNodeMonitor(NodeMonitor nodeMonitor)
Set the node monitor
|
void |
setOfflineFiles(boolean offlineFiles) |
void |
setPseudoFileOverlay(PseudoFileOverlay pseudoFileOverlay) |
void |
setRelativePath(String path) |
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.
|
void |
setRootNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
void |
setRootPath(String path) |
void |
setStoreName(String name) |
void |
startFilesystem(org.alfresco.jlan.server.filesys.DiskSharedDevice share)
Start the filesystem
|
addDesktopAction, getDesktopActions, getGlobalDesktopActionConfig, getOpLockManager, getPseudoFileInterface, getShareURLFileName, getShareUrlPrefix, getSysAdminParams, getURLFileName, getURLPrefix, hasDebug, hasDesktopActions, hasPseudoFileInterface, isAlfrescoURLEnabled, isPseudoFilesEnabled, isShareURLEnabled, numberOfDesktopActions, setAlfrescoURLEnabled, setDebug, setDesktopActionList, setDesktopActions, setDisableChangeNotification, setGlobalDesktopActionConfig, setLockManager, setOpLockManager, setPseudoFilesEnabled, setShareURLEnabled, setShareURLFileName, setSysAdminParams, setURLFileName
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, setVolumeInformation
public ContentContext()
public void setStoreName(String name)
public void setRootPath(String path)
public void setRelativePath(String path)
public void setOfflineFiles(boolean offlineFiles)
public void setDisableNodeMonitor(boolean disableNodeMonitor)
public void setDisableChangeNotifications(boolean disableChangeNotify)
disableChangeNotify
- booleanpublic void setAccessControlList(AccessControlListBean accessControlList)
public void setRootNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public void setDisableOplocks(boolean disableOplocks)
disableOplocks
- booleanpublic Pattern getRenameShufflePattern()
public void setRenameShufflePattern(Pattern renameShufflePattern)
renameShufflePattern
- a regular expression filename matchpublic void initialize(AlfrescoDiskDriver filesysDriver)
AlfrescoContext
initialize
in class AlfrescoContext
public String getFilesystemType()
getFilesystemType
in class AlfrescoContext
public final String getStoreName()
public final String getRootPath()
public String getRelativePath()
public boolean getOfflineFiles()
true
if locked files should be marked as offlinepublic boolean getDisableNodeMonitor()
true
if a node monitor is requiredpublic boolean getDisableOplocks()
public org.alfresco.jlan.server.filesys.cache.FileStateLockManager getLockManager()
getLockManager
in class AlfrescoContext
public boolean getDisableChangeNotifications()
public AccessControlListBean getAccessControlList()
public final org.alfresco.service.cmr.repository.NodeRef getRootNode()
public final org.alfresco.jlan.server.thread.ThreadRequestPool getThreadPool()
public void CloseContext()
CloseContext
in class org.alfresco.jlan.server.filesys.DiskDeviceContext
protected void setNodeMonitor(NodeMonitor nodeMonitor)
nodeMonitor
- node monitorpublic void startFilesystem(org.alfresco.jlan.server.filesys.DiskSharedDevice share) throws org.alfresco.jlan.server.core.DeviceContextException
startFilesystem
in class AlfrescoContext
share
- DiskSharedDeviceorg.alfresco.jlan.server.core.DeviceContextException
public void setPseudoFileOverlay(PseudoFileOverlay pseudoFileOverlay)
public PseudoFileOverlay getPseudoFileOverlay()
Copyright © 2005–2017 Alfresco Software. All rights reserved.