Package org.alfresco.filesys.alfresco
Class AlfrescoContext
- java.lang.Object
-
- org.alfresco.jlan.server.core.DeviceContext
-
- org.alfresco.jlan.server.filesys.DiskDeviceContext
-
- org.alfresco.filesys.alfresco.AlfrescoContext
-
- Direct Known Subclasses:
ContentContext
public abstract class AlfrescoContext extends org.alfresco.jlan.server.filesys.DiskDeviceContextAlfresco Filesystem Context ClassContains per filesystem context.
- Author:
- GKSpencer
-
-
Field Summary
Fields Modifier and Type Field Description static intDBG_FILEstatic intDBG_FILEIOstatic intDBG_INFOstatic intDBG_LOCKstatic intDBG_PSEUDOstatic intDBG_RENAMEstatic intDBG_SEARCHintm_debug
-
Constructor Summary
Constructors Constructor Description AlfrescoContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanaddDesktopAction(DesktopAction action)Add a desktop actionDesktopActionTablegetDesktopActions()Return the desktop actions tableStringgetFilesystemType()Return the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS.protected GlobalDesktopActionConfigBeangetGlobalDesktopActionConfig()org.alfresco.jlan.server.locking.LockManagergetLockManager()Return the lock manager, if enabledorg.alfresco.jlan.server.locking.OpLockManagergetOpLockManager()Return the oplock manager, if enabledorg.alfresco.jlan.server.filesys.pseudo.PseudoFileInterfacegetPseudoFileInterface()Return the pseudo file interfaceStringgetShareURLFileName()Return the Share URL pseudo file nameStringgetShareUrlPrefix()SysAdminParamsgetSysAdminParams()StringgetURLFileName()Return the URL pseudo file nameStringgetURLPrefix()Deprecated.- does not know about sharebooleanhasDebug(int flg)Check if a debug flag is enabledbooleanhasDesktopActions()Determine if there are desktop actins configuredbooleanhasPseudoFileInterface()Determine if the pseudo file interface is enabledvoidinitialize(AlfrescoDiskDriver filesysDriver)Complete initialization by registering with a disk driverbooleanisAlfrescoURLEnabled()booleanisPseudoFilesEnabled()booleanisShareURLEnabled()intnumberOfDesktopActions()Return the count of desktop actionsvoidsetAlfrescoURLEnabled(boolean isAlfrescoURLEnabled)voidsetDebug(String flagsStr)Set the debug flags, also requires the logger to be enabled for debug outputvoidsetDesktopActionList(List<DesktopAction> desktopActions)Set the desktop actionsvoidsetDesktopActions(DesktopActionTable desktopActions, org.alfresco.jlan.server.filesys.DiskInterface filesysDriver)Set the desktop actionsvoidsetDisableChangeNotification(boolean disableChangeNotification)voidsetGlobalDesktopActionConfig(GlobalDesktopActionConfigBean desktopActionConfig)voidsetLockManager(org.alfresco.jlan.server.locking.LockManager lockManager)voidsetOpLockManager(org.alfresco.jlan.server.locking.OpLockManager opLockManager)voidsetPseudoFilesEnabled(boolean enablePseudoFiles)voidsetShareURLEnabled(boolean isShareURLEnabled)voidsetShareURLFileName(String urlFileName)Set the Share URL pseudo file namevoidsetSysAdminParams(SysAdminParams sysAdminParams)voidsetURLFileName(String urlFileName)Set the URL pseudo file namevoidstartFilesystem(org.alfresco.jlan.server.filesys.DiskSharedDevice share)Start the filesystem-
Methods inherited from class org.alfresco.jlan.server.filesys.DiskDeviceContext
addNotifyRequest, CloseContext, 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
-
-
-
-
Field Detail
-
DBG_FILE
public static final int DBG_FILE
- See Also:
- Constant Field Values
-
DBG_FILEIO
public static final int DBG_FILEIO
- See Also:
- Constant Field Values
-
DBG_SEARCH
public static final int DBG_SEARCH
- See Also:
- Constant Field Values
-
DBG_INFO
public static final int DBG_INFO
- See Also:
- Constant Field Values
-
DBG_LOCK
public static final int DBG_LOCK
- See Also:
- Constant Field Values
-
DBG_PSEUDO
public static final int DBG_PSEUDO
- See Also:
- Constant Field Values
-
DBG_RENAME
public static final int DBG_RENAME
- See Also:
- Constant Field Values
-
m_debug
public int m_debug
-
-
Method Detail
-
setSysAdminParams
public void setSysAdminParams(SysAdminParams sysAdminParams)
-
getSysAdminParams
public SysAdminParams getSysAdminParams()
-
setDisableChangeNotification
public void setDisableChangeNotification(boolean disableChangeNotification)
-
initialize
public void initialize(AlfrescoDiskDriver filesysDriver)
Complete initialization by registering with a disk driver
-
getFilesystemType
public String getFilesystemType()
Return the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS.- Overrides:
getFilesystemTypein classorg.alfresco.jlan.server.filesys.DiskDeviceContext- Returns:
- String
-
hasPseudoFileInterface
public final boolean hasPseudoFileInterface()
Determine if the pseudo file interface is enabled- Returns:
- boolean
-
getPseudoFileInterface
public final org.alfresco.jlan.server.filesys.pseudo.PseudoFileInterface getPseudoFileInterface()
Return the pseudo file interface- Returns:
- PseudoFileInterface
-
hasDesktopActions
public final boolean hasDesktopActions()
Determine if there are desktop actins configured- Returns:
- boolean
-
getDesktopActions
public final DesktopActionTable getDesktopActions()
Return the desktop actions table- Returns:
- DesktopActionTable
-
numberOfDesktopActions
public final int numberOfDesktopActions()
Return the count of desktop actions- Returns:
- int
-
addDesktopAction
public final boolean addDesktopAction(DesktopAction action)
Add a desktop action- Parameters:
action- DesktopAction- Returns:
- boolean
-
getURLPrefix
public final String getURLPrefix()
Deprecated.- does not know about shareReturn the URL pseudo file path prefix- Returns:
- String
-
getShareUrlPrefix
public final String getShareUrlPrefix()
-
getURLFileName
public final String getURLFileName()
Return the URL pseudo file name- Returns:
- String
-
getShareURLFileName
public final String getShareURLFileName()
Return the Share URL pseudo file name- Returns:
- String
-
setURLFileName
public final void setURLFileName(String urlFileName)
Set the URL pseudo file name- Parameters:
urlFileName- String
-
setShareURLFileName
public final void setShareURLFileName(String urlFileName)
Set the Share URL pseudo file name- Parameters:
urlFileName- String
-
setDesktopActions
public final void setDesktopActions(DesktopActionTable desktopActions, org.alfresco.jlan.server.filesys.DiskInterface filesysDriver)
Set the desktop actions- Parameters:
desktopActions- DesktopActionTablefilesysDriver- DiskInterface
-
setDesktopActionList
public final void setDesktopActionList(List<DesktopAction> desktopActions)
Set the desktop actions- Parameters:
desktopActions- DesktopAction List
-
setGlobalDesktopActionConfig
public void setGlobalDesktopActionConfig(GlobalDesktopActionConfigBean desktopActionConfig)
-
getGlobalDesktopActionConfig
protected GlobalDesktopActionConfigBean getGlobalDesktopActionConfig()
-
setDebug
public final void setDebug(String flagsStr)
Set the debug flags, also requires the logger to be enabled for debug output- Parameters:
flagsStr- String
-
hasDebug
public final boolean hasDebug(int flg)
Check if a debug flag is enabled- Parameters:
flg- int- Returns:
- boolean
-
startFilesystem
public void startFilesystem(org.alfresco.jlan.server.filesys.DiskSharedDevice share) throws org.alfresco.jlan.server.core.DeviceContextExceptionStart the filesystem- Overrides:
startFilesystemin classorg.alfresco.jlan.server.filesys.DiskDeviceContext- Parameters:
share- DiskSharedDevice- Throws:
org.alfresco.jlan.server.core.DeviceContextException
-
setLockManager
public void setLockManager(org.alfresco.jlan.server.locking.LockManager lockManager)
-
getLockManager
public org.alfresco.jlan.server.locking.LockManager getLockManager()
Return the lock manager, if enabled- Overrides:
getLockManagerin classorg.alfresco.jlan.server.filesys.DiskDeviceContext- Returns:
- LockManager
-
getOpLockManager
public org.alfresco.jlan.server.locking.OpLockManager getOpLockManager()
Return the oplock manager, if enabled- Overrides:
getOpLockManagerin classorg.alfresco.jlan.server.filesys.DiskDeviceContext- Returns:
- OpLockManager
-
setOpLockManager
public void setOpLockManager(org.alfresco.jlan.server.locking.OpLockManager opLockManager)
-
setPseudoFilesEnabled
public void setPseudoFilesEnabled(boolean enablePseudoFiles)
-
isPseudoFilesEnabled
public boolean isPseudoFilesEnabled()
-
setAlfrescoURLEnabled
public void setAlfrescoURLEnabled(boolean isAlfrescoURLEnabled)
-
isAlfrescoURLEnabled
public boolean isAlfrescoURLEnabled()
-
setShareURLEnabled
public void setShareURLEnabled(boolean isShareURLEnabled)
-
isShareURLEnabled
public boolean isShareURLEnabled()
-
-