|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.jlan.server.core.DeviceContext
org.alfresco.jlan.server.filesys.DiskDeviceContext
org.alfresco.filesys.alfresco.AlfrescoContext
org.alfresco.filesys.repo.ContentContext
public class ContentContext
Content Filesystem Context Class
Contains per filesystem context.
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 | |
---|---|
ContentContext()
Default constructor allowing initialization by container. |
|
ContentContext(java.lang.String filesysName,
java.lang.String storeName,
java.lang.String rootPath,
org.alfresco.service.cmr.repository.NodeRef rootNodeRef)
Class constructor |
Method Summary | |
---|---|
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 |
java.lang.String |
getFilesystemType()
Return the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS. |
boolean |
getOfflineFiles()
Determines whether locked files should be marked as offline. |
PseudoFileOverlay |
getPseudoFileOverlay()
|
java.lang.String |
getRelativePath()
Return the relative path |
java.util.regex.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 |
java.lang.String |
getRootPath()
Return the root path |
java.lang.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(java.lang.String path)
|
void |
setRenameShufflePattern(java.util.regex.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(java.lang.String path)
|
void |
setStoreName(java.lang.String name)
|
void |
startFilesystem(org.alfresco.jlan.server.filesys.DiskSharedDevice share)
Start the filesystem |
Methods inherited from class org.alfresco.filesys.alfresco.AlfrescoContext |
---|
addDesktopAction, getDesktopActions, getGlobalDesktopActionConfig, getLockManager, getOpLockManager, getPseudoFileInterface, getSysAdminParams, getURLFileName, getURLPrefix, hasDebug, hasDesktopActions, hasPseudoFileInterface, hasURLFile, numberOfDesktopActions, setDebug, setDesktopActionList, setDesktopActions, setDisableChangeNotification, setGlobalDesktopActionConfig, setLockManager, setOpLockManager, setSysAdminParams, setURLFileName |
Methods 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, setVolumeInformation |
Methods inherited from class org.alfresco.jlan.server.core.DeviceContext |
---|
getConfigurationParameters, getDeviceName, getShareName, hasConfigurationParameters, isAvailable, setAvailable, setConfigurationParameters, setDeviceName, setShareName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContentContext()
public ContentContext(java.lang.String filesysName, java.lang.String storeName, java.lang.String rootPath, org.alfresco.service.cmr.repository.NodeRef rootNodeRef)
filesysName
- StringstoreName
- StringrootPath
- StringrootNodeRef
- NodeRefMethod Detail |
---|
public void setStoreName(java.lang.String name)
public void setRootPath(java.lang.String path)
public void setRelativePath(java.lang.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 java.util.regex.Pattern getRenameShufflePattern()
public void setRenameShufflePattern(java.util.regex.Pattern renameShufflePattern)
renameShufflePattern
- a regular expression filename matchpublic void initialize(AlfrescoDiskDriver filesysDriver)
AlfrescoContext
initialize
in class AlfrescoContext
public java.lang.String getFilesystemType()
getFilesystemType
in class AlfrescoContext
public final java.lang.String getStoreName()
public final java.lang.String getRootPath()
public java.lang.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 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)
filesysDriver
- ContentDiskDriverpublic void startFilesystem(org.alfresco.jlan.server.filesys.DiskSharedDevice share) throws org.alfresco.jlan.server.core.DeviceContextException
startFilesystem
in class AlfrescoContext
share
- DiskSharedDevice
org.alfresco.jlan.server.core.DeviceContextException
public void setPseudoFileOverlay(PseudoFileOverlay pseudoFileOverlay)
public PseudoFileOverlay getPseudoFileOverlay()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |