org.alfresco.filesys.repo
Class ContentContext

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
              extended by org.alfresco.filesys.repo.ContentContext

public class ContentContext
extends AlfrescoContext

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, NodeRef rootNodeRef)
          Class constructor
 
Method Summary
 void CloseContext()
          Close the filesystem context
protected  IOControlHandler createIOHandler(org.alfresco.jlan.server.filesys.DiskInterface filesysDriver)
          Create the I/O control handler for this filesystem type
 AccessControlListBean getAccessControlList()
          Gets the access control list.
 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.
 java.lang.String getRelativePath()
          Return the relative path
 NodeRef getRootNode()
          Return the root node
 java.lang.String getRootPath()
          Return the root path
 java.lang.String getStoreName()
          Return the store name
 void initialize(AlfrescoDiskDriver filesysDriver)
          Complete initialization by registering with a disk driver
 void setAccessControlList(AccessControlListBean accessControlList)
           
 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 setRelativePath(java.lang.String path)
           
 void setRootNodeRef(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, enabledPseudoFileInterface, getDesktopActions, getGlobalDesktopActionConfig, getIOHandler, getPseudoFileInterface, getSysAdminParams, getURLFileName, getURLPrefix, hasDebug, hasDesktopActions, hasIOHandler, hasPseudoFileInterface, hasURLFile, numberOfDesktopActions, setDebug, setDesktopActionList, setDesktopActions, setDisableChangeNotification, setGlobalDesktopActionConfig, setIOHandler, setSysAdminParams, setURLFileName
 
Methods inherited from class org.alfresco.jlan.server.filesys.DiskDeviceContext
addNotifyRequest, enableChangeHandler, enableStateCache, getChangeHandler, getDeviceAttributes, getDiskInformation, getFilesystemAttributes, getQuotaManager, getStateCache, getVolumeInformation, hasChangeHandler, hasDiskInformation, hasFileServerNotifications, hasQuotaManager, hasStateCache, hasVolumeInformation, isCaseless, removeNotifyRequest, setDeviceAttributes, setDiskInformation, setFileServerNotifications, setFilesystemAttributes, setQuotaManager, 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

ContentContext

public ContentContext()
Default constructor allowing initialization by container.


ContentContext

public ContentContext(java.lang.String filesysName,
                      java.lang.String storeName,
                      java.lang.String rootPath,
                      NodeRef rootNodeRef)
Class constructor

Parameters:
filesysName - String
storeName - String
rootPath - String
rootNodeRef - NodeRef
Method Detail

setStoreName

public void setStoreName(java.lang.String name)

setRootPath

public void setRootPath(java.lang.String path)

setRelativePath

public void setRelativePath(java.lang.String path)

setOfflineFiles

public void setOfflineFiles(boolean offlineFiles)

setDisableNodeMonitor

public void setDisableNodeMonitor(boolean disableNodeMonitor)

setAccessControlList

public void setAccessControlList(AccessControlListBean accessControlList)

setRootNodeRef

public void setRootNodeRef(NodeRef nodeRef)

setDisableOplocks

public void setDisableOplocks(boolean disableOplocks)
Enable/disable oplock support

Parameters:
disableOplocks - boolean

initialize

public void initialize(AlfrescoDiskDriver filesysDriver)
Description copied from class: AlfrescoContext
Complete initialization by registering with a disk driver

Overrides:
initialize in class AlfrescoContext

getFilesystemType

public java.lang.String getFilesystemType()
Return the filesystem type, either FileSystem.TypeFAT or FileSystem.TypeNTFS.

Overrides:
getFilesystemType in class AlfrescoContext
Returns:
String

getStoreName

public final java.lang.String getStoreName()
Return the store name

Returns:
String

getRootPath

public final java.lang.String getRootPath()
Return the root path

Returns:
String

getRelativePath

public java.lang.String getRelativePath()
Return the relative path

Returns:
String

getOfflineFiles

public boolean getOfflineFiles()
Determines whether locked files should be marked as offline.

Returns:
true if locked files should be marked as offline

getDisableNodeMonitor

public boolean getDisableNodeMonitor()
Determines whether a node monitor is required.

Returns:
true if a node monitor is required

getDisableOplocks

public boolean getDisableOplocks()
Determine if oplocks support should be disabled

Returns:
boolean

getAccessControlList

public AccessControlListBean getAccessControlList()
Gets the access control list.

Returns:
the access control list

getRootNode

public final NodeRef getRootNode()
Return the root node

Returns:
NodeRef

CloseContext

public void CloseContext()
Close the filesystem context

Overrides:
CloseContext in class org.alfresco.jlan.server.filesys.DiskDeviceContext

createIOHandler

protected IOControlHandler createIOHandler(org.alfresco.jlan.server.filesys.DiskInterface filesysDriver)
Create the I/O control handler for this filesystem type

Specified by:
createIOHandler in class AlfrescoContext
Parameters:
filesysDriver - DiskInterface
Returns:
IOControlHandler

setNodeMonitor

protected void setNodeMonitor(NodeMonitor nodeMonitor)
Set the node monitor

Parameters:
filesysDriver - ContentDiskDriver

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


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