public abstract class AlfrescoContext
extends org.alfresco.jlan.server.filesys.DiskDeviceContext
Contains per filesystem context.
Modifier and Type | Field and Description |
---|---|
static int |
DBG_FILE |
static int |
DBG_FILEIO |
static int |
DBG_INFO |
static int |
DBG_LOCK |
static int |
DBG_PSEUDO |
static int |
DBG_RENAME |
static int |
DBG_SEARCH |
int |
m_debug |
Constructor and Description |
---|
AlfrescoContext() |
Modifier and Type | Method and Description |
---|---|
boolean |
addDesktopAction(DesktopAction action)
Add a desktop action
|
DesktopActionTable |
getDesktopActions()
Return the desktop actions table
|
String |
getFilesystemType()
Return the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS.
|
protected GlobalDesktopActionConfigBean |
getGlobalDesktopActionConfig() |
org.alfresco.jlan.server.locking.LockManager |
getLockManager()
Return the lock manager, if enabled
|
org.alfresco.jlan.server.locking.OpLockManager |
getOpLockManager()
Return the oplock manager, if enabled
|
org.alfresco.jlan.server.filesys.pseudo.PseudoFileInterface |
getPseudoFileInterface()
Return the pseudo file interface
|
String |
getShareURLFileName()
Return the Share URL pseudo file name
|
String |
getShareUrlPrefix() |
SysAdminParams |
getSysAdminParams() |
String |
getURLFileName()
Return the URL pseudo file name
|
String |
getURLPrefix()
Deprecated.
- does not know about share
|
boolean |
hasDebug(int flg)
Check if a debug flag is enabled
|
boolean |
hasDesktopActions()
Determine if there are desktop actins configured
|
boolean |
hasPseudoFileInterface()
Determine if the pseudo file interface is enabled
|
void |
initialize(AlfrescoDiskDriver filesysDriver)
Complete initialization by registering with a disk driver
|
boolean |
isAlfrescoURLEnabled() |
boolean |
isPseudoFilesEnabled() |
boolean |
isShareURLEnabled() |
int |
numberOfDesktopActions()
Return the count of desktop actions
|
void |
setAlfrescoURLEnabled(boolean isAlfrescoURLEnabled) |
void |
setDebug(String flagsStr)
Set the debug flags, also requires the logger to be enabled for debug output
|
void |
setDesktopActionList(List<DesktopAction> desktopActions)
Set the desktop actions
|
void |
setDesktopActions(DesktopActionTable desktopActions,
org.alfresco.jlan.server.filesys.DiskInterface filesysDriver)
Set the desktop actions
|
void |
setDisableChangeNotification(boolean disableChangeNotification) |
void |
setGlobalDesktopActionConfig(GlobalDesktopActionConfigBean desktopActionConfig) |
void |
setLockManager(org.alfresco.jlan.server.locking.LockManager lockManager) |
void |
setOpLockManager(org.alfresco.jlan.server.locking.OpLockManager opLockManager) |
void |
setPseudoFilesEnabled(boolean enablePseudoFiles) |
void |
setShareURLEnabled(boolean isShareURLEnabled) |
void |
setShareURLFileName(String urlFileName)
Set the Share URL pseudo file name
|
void |
setSysAdminParams(SysAdminParams sysAdminParams) |
void |
setURLFileName(String urlFileName)
Set the URL pseudo file name
|
void |
startFilesystem(org.alfresco.jlan.server.filesys.DiskSharedDevice share)
Start the filesystem
|
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
public static final int DBG_FILE
public static final int DBG_FILEIO
public static final int DBG_SEARCH
public static final int DBG_INFO
public static final int DBG_LOCK
public static final int DBG_PSEUDO
public static final int DBG_RENAME
public int m_debug
public void setSysAdminParams(SysAdminParams sysAdminParams)
public SysAdminParams getSysAdminParams()
public void setDisableChangeNotification(boolean disableChangeNotification)
public void initialize(AlfrescoDiskDriver filesysDriver)
public String getFilesystemType()
getFilesystemType
in class org.alfresco.jlan.server.filesys.DiskDeviceContext
public final boolean hasPseudoFileInterface()
public final org.alfresco.jlan.server.filesys.pseudo.PseudoFileInterface getPseudoFileInterface()
public final boolean hasDesktopActions()
public final DesktopActionTable getDesktopActions()
public final int numberOfDesktopActions()
public final boolean addDesktopAction(DesktopAction action)
action
- DesktopActionpublic final String getURLPrefix()
public final String getShareUrlPrefix()
public final String getURLFileName()
public final String getShareURLFileName()
public final void setURLFileName(String urlFileName)
urlFileName
- Stringpublic final void setShareURLFileName(String urlFileName)
urlFileName
- Stringpublic final void setDesktopActions(DesktopActionTable desktopActions, org.alfresco.jlan.server.filesys.DiskInterface filesysDriver)
desktopActions
- DesktopActionTablefilesysDriver
- DiskInterfacepublic final void setDesktopActionList(List<DesktopAction> desktopActions)
desktopActions
- DesktopAction Listpublic void setGlobalDesktopActionConfig(GlobalDesktopActionConfigBean desktopActionConfig)
protected GlobalDesktopActionConfigBean getGlobalDesktopActionConfig()
public final void setDebug(String flagsStr)
flagsStr
- Stringpublic final boolean hasDebug(int flg)
flg
- intpublic void startFilesystem(org.alfresco.jlan.server.filesys.DiskSharedDevice share) throws org.alfresco.jlan.server.core.DeviceContextException
startFilesystem
in class org.alfresco.jlan.server.filesys.DiskDeviceContext
share
- DiskSharedDeviceorg.alfresco.jlan.server.core.DeviceContextException
public void setLockManager(org.alfresco.jlan.server.locking.LockManager lockManager)
public org.alfresco.jlan.server.locking.LockManager getLockManager()
getLockManager
in class org.alfresco.jlan.server.filesys.DiskDeviceContext
public org.alfresco.jlan.server.locking.OpLockManager getOpLockManager()
getOpLockManager
in class org.alfresco.jlan.server.filesys.DiskDeviceContext
public void setOpLockManager(org.alfresco.jlan.server.locking.OpLockManager opLockManager)
public void setPseudoFilesEnabled(boolean enablePseudoFiles)
public boolean isPseudoFilesEnabled()
public void setAlfrescoURLEnabled(boolean isAlfrescoURLEnabled)
public boolean isAlfrescoURLEnabled()
public void setShareURLEnabled(boolean isShareURLEnabled)
public boolean isShareURLEnabled()
Copyright © 2005–2017 Alfresco Software. All rights reserved.