public abstract class AlfrescoContext extends 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() |
LockManager |
getLockManager() |
OpLockManager |
getOpLockManager()
Return the oplock manager, if enabled
|
PseudoFileInterface |
getPseudoFileInterface()
Return the pseudo file interface
|
String |
getShareURLFileName()
Return the Share URL pseudo file name
|
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,
DiskInterface filesysDriver)
Set the desktop actions
|
void |
setDisableChangeNotification(boolean disableChangeNotification) |
void |
setGlobalDesktopActionConfig(GlobalDesktopActionConfigBean desktopActionConfig) |
void |
setLockManager(LockManager lockManager) |
void |
setOpLockManager(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(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, setVolumeInformationgetConfigurationParameters, getDeviceName, getShareName, hasConfigurationParameters, isAvailable, setAvailable, setConfigurationParameters, setDeviceName, setShareName, toStringpublic 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 DiskDeviceContextpublic final boolean hasPseudoFileInterface()
public final 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 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, 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)
dbg - intpublic final boolean hasDebug(int flg)
flg - intpublic void startFilesystem(DiskSharedDevice share) throws DeviceContextException
startFilesystem in class DiskDeviceContextshare - DiskSharedDeviceDeviceContextExceptionpublic void setLockManager(LockManager lockManager)
public LockManager getLockManager()
getLockManager in class DiskDeviceContextpublic OpLockManager getOpLockManager()
getOpLockManager in class DiskDeviceContextpublic void setOpLockManager(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–2014 Alfresco Software. All rights reserved.