org.alfresco.filesys.alfresco
Class AlfrescoContext

java.lang.Object
  extended by org.alfresco.jlan.server.core.DeviceContext
      extended by org.alfresco.jlan.server.filesys.DiskDeviceContext
          extended by org.alfresco.filesys.alfresco.AlfrescoContext
Direct Known Subclasses:
AVMContext, ContentContext

public abstract class AlfrescoContext
extends org.alfresco.jlan.server.filesys.DiskDeviceContext

Alfresco Filesystem Context Class

Contains per filesystem context.


Field Summary
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 Summary
AlfrescoContext()
           
 
Method Summary
 boolean addDesktopAction(DesktopAction action)
          Add a desktop action
 DesktopActionTable getDesktopActions()
          Return the desktop actions table
 java.lang.String getFilesystemType()
          Return the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS.
protected  GlobalDesktopActionConfigBean getGlobalDesktopActionConfig()
           
 org.alfresco.jlan.server.locking.LockManager getLockManager()
           
 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
 SysAdminParams getSysAdminParams()
           
 java.lang.String getURLFileName()
          Return the URL pseudo file name
 java.lang.String getURLPrefix()
          Return the URL pseudo file path prefix
 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
 boolean hasURLFile()
          Determine if the URL pseudo file is enabled
 void initialize(AlfrescoDiskDriver filesysDriver)
          Complete initialization by registering with a disk driver
 int numberOfDesktopActions()
          Return the count of desktop actions
 void setDebug(java.lang.String flagsStr)
          Set the debug flags, also requires the logger to be enabled for debug output
 void setDesktopActionList(java.util.List 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 setSysAdminParams(SysAdminParams sysAdminParams)
           
 void setURLFileName(java.lang.String urlFileName)
          Set the URL pseudo file name
 void startFilesystem(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
 
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
 

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
Constructor Detail

AlfrescoContext

public AlfrescoContext()
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 java.lang.String getFilesystemType()
Return the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS.

Overrides:
getFilesystemType in class org.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

hasURLFile

public final boolean hasURLFile()
Determine if the URL pseudo file is enabled

Returns:
boolean

getURLPrefix

public final java.lang.String getURLPrefix()
Return the URL pseudo file path prefix

Returns:
String

getURLFileName

public final java.lang.String getURLFileName()
Return the URL pseudo file name

Returns:
String

setURLFileName

public final void setURLFileName(java.lang.String urlFileName)
Set the 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 - DesktopActionTable
filesysDriver - DiskInterface

setDesktopActionList

public final void setDesktopActionList(java.util.List desktopActions)
Set the desktop actions

Parameters:
desktopActions - DesktopAction List

setGlobalDesktopActionConfig

public void setGlobalDesktopActionConfig(GlobalDesktopActionConfigBean desktopActionConfig)

getGlobalDesktopActionConfig

protected GlobalDesktopActionConfigBean getGlobalDesktopActionConfig()

setDebug

public final void setDebug(java.lang.String flagsStr)
Set the debug flags, also requires the logger to be enabled for debug output

Parameters:
dbg - int

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.DeviceContextException
Start the filesystem

Overrides:
startFilesystem in class org.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()
Overrides:
getLockManager in class org.alfresco.jlan.server.filesys.DiskDeviceContext

getOpLockManager

public org.alfresco.jlan.server.locking.OpLockManager getOpLockManager()
Return the oplock manager, if enabled

Overrides:
getOpLockManager in class org.alfresco.jlan.server.filesys.DiskDeviceContext
Returns:
OpLockManager

setOpLockManager

public void setOpLockManager(org.alfresco.jlan.server.locking.OpLockManager opLockManager)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.