Package org.alfresco.filesys.repo
Class ContentDiskDriver
java.lang.Object
org.alfresco.filesys.alfresco.AlfrescoDiskDriver
org.alfresco.filesys.alfresco.AlfrescoTxDiskDriver
org.alfresco.filesys.repo.ContentDiskDriver
- All Implemented Interfaces:
ExtendedDiskInterface,org.alfresco.jlan.server.core.DeviceInterface,org.alfresco.jlan.server.filesys.DiskInterface,org.alfresco.jlan.server.filesys.DiskSizeInterface,org.alfresco.jlan.server.filesys.TransactionalFilesystemInterface,org.alfresco.jlan.server.locking.FileLockingInterface,org.alfresco.jlan.server.locking.OpLockInterface
public class ContentDiskDriver
extends AlfrescoTxDiskDriver
implements org.alfresco.jlan.server.filesys.DiskInterface, org.alfresco.jlan.server.locking.FileLockingInterface, org.alfresco.jlan.server.locking.OpLockInterface, org.alfresco.jlan.server.filesys.DiskSizeInterface
Content repository filesystem driver class
Provides a filesystem interface for various protocols such as SMB/CIFS and FTP.
- Author:
- gkspencer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.alfresco.filesys.alfresco.AlfrescoTxDiskDriver
AlfrescoTxDiskDriver.CallableIO<V>, AlfrescoTxDiskDriver.PropagatingException -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final intstatic final intstatic final intprotected static final longprotected static final longstatic final intstatic final intstatic final intstatic final intFields inherited from class org.alfresco.filesys.alfresco.AlfrescoDiskDriver
m_transactionService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file) Close the file.org.alfresco.jlan.server.core.DeviceContextcreateContext(String deviceName, org.springframework.extensions.config.ConfigElement cfg) Parse and validate the parameter string and create a device context object for this instance of the shared device.voidcreateDirectory(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.FileOpenParams params) Create a new directory on this file system.org.alfresco.jlan.server.filesys.NetworkFilecreateFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.FileOpenParams params) Create a new file on the file system.voiddeleteDirectory(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, String dir) Delete the directory from the filesystem.voiddeleteFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, String name) Delete the specified file.intfileExists(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, String name) Check if the specified file exists, and whether it is a file or directory.voidflushFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file) Flush any buffered output for the specified file.final AuthenticationContextReturn the authentication contextfinal AuthenticationServiceReturn the authentication servicefinal CifsHelperReturn the CIFS helperfinal ContentServiceReturn the content servicefinal DictionaryServiceReturn the dictionary servicevoidgetDiskInformation(org.alfresco.jlan.server.filesys.DiskDeviceContext ctx, org.alfresco.jlan.server.filesys.SrvDiskInfo diskDev) Get the disk information for this shared disk device.final FileFolderServiceReturn the file folder serviceorg.alfresco.jlan.server.filesys.FileInfogetFileInformation(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection tree, String path) Get the file information for the specified file.org.alfresco.jlan.server.locking.LockManagergetLockManager(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree) Return the lock manager used by this filesystemfinal LockServiceReturn the lock servicefinal NamespaceServiceReturn the namespace servicefinal NodeArchiveServiceReturn the node archive servicegetNodeForPath(org.alfresco.jlan.server.filesys.TreeConnection tree, String path) Get the node for the specified pathfinal NodeServiceReturn the node serviceorg.alfresco.jlan.server.locking.OpLockManagergetOpLockManager(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree) Return the oplock manager implementation associated with this virtual filesystemfinal OwnableServiceGet the ownable servicegetPathForNode(org.alfresco.jlan.server.filesys.TreeConnection tree, NodeRef nodeRef) Convert a node into a share relative pathfinal PermissionServiceReturn the permission serviceGet the policy behaviour filter, used to inhibit versioning on a per transaction basisfinal SearchServiceReturn the search serviceorg.alfresco.jlan.server.filesys.cache.FileStategetStateForPath(org.alfresco.jlan.server.filesys.TreeConnection tree, String path) Get the file state for the specified pathvoidinit()booleanisOpLocksEnabled(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree) Enable/disable oplock supportbooleanisReadOnly(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.core.DeviceContext ctx) Determine if the disk device is read-only.org.alfresco.jlan.server.filesys.NetworkFileopenFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.FileOpenParams params) Open a file or folderintreadFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file, byte[] buffer, int bufferPosition, int size, long fileOffset) Read a block of data from the specified file.voidregisterContext(org.alfresco.jlan.server.core.DeviceContext ctx) Registers a device context object for this instance of the shared device.voidrenameFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, String oldName, String newName) Rename the specified file.longseekFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file, long pos, int typ) Seek to the specified file position.voidsetActionService(ActionService actionService) voidsetAuthenticationContext(AuthenticationContext authContext) Set the authentication contextvoidsetAuthenticationService(AuthenticationService authService) Set the authentication servicevoidsetCheckOutCheckInService(CheckOutCheckInService checkOutCheckInService) voidsetContentService(ContentService contentService) voidsetDictionaryService(DictionaryService dictionaryService) Set the dictionary servicevoidsetFileFolderService(FileFolderService fileService) Set the file folder servicevoidsetFileInformation(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, String name, org.alfresco.jlan.server.filesys.FileInfo info) Set file informationvoidsetLockService(LockService lockService) Set the lock servicevoidsetMimetypeService(MimetypeService mimetypeService) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeArchiveService(NodeArchiveService nodeArchiveService) Set the node archive servicevoidsetNodeMonitorFactory(NodeMonitorFactory nodeMonitorFactory) Set the node monitor factoryvoidsetNodeService(NodeService nodeService) voidsetOwnableService(OwnableService ownableService) Set the ownable servivevoidsetPermissionService(PermissionService permissionService) Set the permission servicevoidsetPolicyFilter(BehaviourFilter policyFilter) Set the policy behaviour filter, used to inhibit versioning on a per transaction basisvoidsetRenameCSVShufflePattern(Pattern renameCSVShufflePattern) Set the regular expression that will be applied to CSV files during renames.voidsetSearchService(SearchService searchService) voidsetSysAdminParams(SysAdminParams sysAdminParams) Sets the sys admin params.org.alfresco.jlan.server.filesys.SearchContextstartSearch(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, String searchPath, int attributes) Start a new search on the filesystem using the specified searchPath that may contain wildcards.voidtreeClosed(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree) Connection opened to this disk devicevoidtreeOpened(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree) Connection closed to this devicevoidtruncateFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file, long size) Truncate a file to the specified sizeintwriteFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file, byte[] buffer, int bufferOffset, int size, long fileOffset) Write a block of data to the file.Methods inherited from class org.alfresco.filesys.alfresco.AlfrescoTxDiskDriver
beginReadTransaction, beginWriteTransaction, doInWriteTransaction, endTransactionMethods inherited from class org.alfresco.filesys.alfresco.AlfrescoDiskDriver
getServiceRegistry, getTransactionService, setServiceRegistry, setTransactionService
-
Field Details
-
FileUnknown
public static final int FileUnknown- See Also:
-
FileNotExist
public static final int FileNotExist- See Also:
-
FileExists
public static final int FileExists- See Also:
-
DirectoryExists
public static final int DirectoryExists- See Also:
-
CustomFileStatus
public static final int CustomFileStatus- See Also:
-
FileRenamed
public static final int FileRenamed- See Also:
-
DeleteOnClose
public static final int DeleteOnClose- See Also:
-
AttrLinkNode
- See Also:
-
CanDeleteWithoutPerms
- See Also:
-
DiskSizeDefault
protected static final long DiskSizeDefault- See Also:
-
DiskFreeDefault
protected static final long DiskFreeDefault- See Also:
-
-
Constructor Details
-
ContentDiskDriver
Class constructor- Parameters:
cifsHelper- to connect to the repository services
-
-
Method Details
-
init
public void init() -
getCifsHelper
Return the CIFS helper- Returns:
- CifsHelper
-
getAuthenticationService
Return the authentication service- Returns:
- AuthenticationService
-
getAuthenticationContext
Return the authentication context- Returns:
- AuthenticationContext
-
getNodeService
Return the node service- Returns:
- NodeService
-
getCheckOutCheckInService
- Returns:
- service to provide information on check-in and check-out
-
getContentService
Return the content service- Returns:
- ContentService
-
getNamespaceService
Return the namespace service- Returns:
- NamespaceService
-
getSearchService
Return the search service- Returns:
- SearchService
-
getFileFolderService
Return the file folder service- Returns:
- FileFolderService
-
getPermissionService
Return the permission service- Returns:
- PermissionService
-
getNodeArchiveService
Return the node archive service -
getLockService
Return the lock service- Returns:
- LockService
-
getPolicyFilter
Get the policy behaviour filter, used to inhibit versioning on a per transaction basis -
getDictionaryService
Return the dictionary service- Returns:
- DictionaryService
-
getOwnableService
Get the ownable service- Returns:
- OwnableService
-
setContentService
- Parameters:
contentService- the content service
-
setNamespaceService
- Parameters:
namespaceService- the namespace service
-
setNodeService
- Parameters:
nodeService- the node service
-
setCheckOutCheckInService
- Parameters:
checkOutCheckInService- used to check for checked out nodes
-
setSearchService
- Parameters:
searchService- the search service
-
setPermissionService
Set the permission service- Parameters:
permissionService- PermissionService
-
setAuthenticationContext
Set the authentication context- Parameters:
authContext- AuthenticationContext
-
setAuthenticationService
Set the authentication service- Parameters:
authService- AuthenticationService
-
setSysAdminParams
Sets the sys admin params.- Parameters:
sysAdminParams- the sys admin params
-
setFileFolderService
Set the file folder service- Parameters:
fileService- FileFolderService
-
setMimetypeService
- Parameters:
mimetypeService- service for helping with mimetypes and encoding
-
setNodeMonitorFactory
Set the node monitor factory- Parameters:
nodeMonitorFactory- NodeMonitorFactory
-
setNodeArchiveService
Set the node archive service- Parameters:
nodeArchiveService- nodeArchiveService
-
setLockService
Set the lock service- Parameters:
lockService- LockService
-
setPolicyFilter
Set the policy behaviour filter, used to inhibit versioning on a per transaction basis- Parameters:
policyFilter- PolicyBehaviourFilter
-
setDictionaryService
Set the dictionary service- Parameters:
dictionaryService- DictionaryService
-
setOwnableService
Set the ownable servive- Parameters:
ownableService- OwnableService
-
setRenameCSVShufflePattern
Set the regular expression that will be applied to CSV files during renames. MNT-211- Parameters:
renameCSVShufflePattern- a regular expression CSV filename match
-
createContext
public org.alfresco.jlan.server.core.DeviceContext createContext(String deviceName, org.springframework.extensions.config.ConfigElement cfg) throws org.alfresco.jlan.server.core.DeviceContextException Parse and validate the parameter string and create a device context object for this instance of the shared device. The same DeviceInterface implementation may be used for multiple shares.WARNING: side effect, may commit or roll back current user transaction context.
- Specified by:
createContextin interfaceorg.alfresco.jlan.server.core.DeviceInterface- Parameters:
deviceName- The name of the devicecfg- ConfigElement the configuration of the device context.- Returns:
- DeviceContext
- Throws:
org.alfresco.jlan.server.core.DeviceContextException
-
registerContext
public void registerContext(org.alfresco.jlan.server.core.DeviceContext ctx) throws org.alfresco.jlan.server.core.DeviceContextException Registers a device context object for this instance of the shared device. The same DeviceInterface implementation may be used for multiple shares. WARNING: side effect, will commit or roll back current user transaction context.- Specified by:
registerContextin interfaceExtendedDiskInterface- Overrides:
registerContextin classAlfrescoDiskDriver- Parameters:
ctx- the context- Throws:
org.alfresco.jlan.server.core.DeviceContextException
-
isReadOnly
public boolean isReadOnly(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.core.DeviceContext ctx) throws IOException Determine if the disk device is read-only.- Specified by:
isReadOnlyin interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Server sessionctx- Device context- Returns:
- boolean
- Throws:
IOException- If an error occurs.
-
getFileInformation
public org.alfresco.jlan.server.filesys.FileInfo getFileInformation(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection tree, String path) throws IOException Get the file information for the specified file.- Specified by:
getFileInformationin interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
session- Server sessiontree- Tree connectionpath- File name/path that information is required for.- Returns:
- File information if valid, else null
- Throws:
IOException- The exception description.
-
startSearch
public org.alfresco.jlan.server.filesys.SearchContext startSearch(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, String searchPath, int attributes) throws FileNotFoundException Start a new search on the filesystem using the specified searchPath that may contain wildcards.- Specified by:
startSearchin interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Server sessiontree- Tree connectionsearchPath- File(s) to search for, may include wildcards.attributes- Attributes of the file(s) to search for, see class SMBFileAttribute.- Returns:
- SearchContext
- Throws:
FileNotFoundException- If the search could not be started.
-
fileExists
public int fileExists(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, String name) Check if the specified file exists, and whether it is a file or directory.WARNING: side effect, commit or roll back current user transaction context. Current transaction becomes read only.
- Specified by:
fileExistsin interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Server sessiontree- Tree connectionname- the path of the file- Returns:
- FileStatus (0: NotExist, 1 : FileExist, 2: DirectoryExists)
- See Also:
-
FileStatus
-
openFile
public org.alfresco.jlan.server.filesys.NetworkFile openFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.FileOpenParams params) throws IOException Open a file or folder- Specified by:
openFilein interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- SrvSessiontree- TreeConnectionparams- FileOpenParams- Returns:
- NetworkFile
- Throws:
IOException
-
createFile
public org.alfresco.jlan.server.filesys.NetworkFile createFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.FileOpenParams params) throws IOException Create a new file on the file system.WARNING : side effect - closes current transaction context.
- Specified by:
createFilein interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Server sessiontree- Tree connectionparams- File create parameters- Returns:
- NetworkFile
- Throws:
IOException- If an error occurs.
-
createDirectory
public void createDirectory(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.FileOpenParams params) throws IOException Create a new directory on this file system.WARNING : side effect - closes current transaction context.
- Specified by:
createDirectoryin interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Server sessiontree- Tree connection.params- Directory create parameters- Throws:
IOException- If an error occurs.
-
deleteDirectory
public void deleteDirectory(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, String dir) throws IOException Delete the directory from the filesystem.- Specified by:
deleteDirectoryin interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Server sessiontree- Tree connectiondir- Directory name.- Throws:
IOException- The exception description.
-
flushFile
public void flushFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file) throws IOException Flush any buffered output for the specified file.- Specified by:
flushFilein interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Server sessiontree- Tree connectionfile- Network file context.- Throws:
IOException- The exception description.
-
closeFile
public void closeFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file) throws IOException Close the file.- Specified by:
closeFilein interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Server sessiontree- Tree connection.file- Network file context.- Throws:
IOException- If an error occurs.
-
deleteFile
public void deleteFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, String name) throws IOException Delete the specified file.- Specified by:
deleteFilein interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Server sessiontree- Tree connectionname- NetworkFile- Throws:
IOException- The exception description.
-
renameFile
public void renameFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, String oldName, String newName) throws IOException Rename the specified file.- Specified by:
renameFilein interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Server sessiontree- Tree connectionoldName- java.lang.StringnewName- java.lang.String- Throws:
IOException- The exception description.
-
setFileInformation
public void setFileInformation(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, String name, org.alfresco.jlan.server.filesys.FileInfo info) throws IOException Set file information- Specified by:
setFileInformationin interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- SrvSessiontree- TreeConnectionname- Stringinfo- FileInfo- Throws:
IOException
-
truncateFile
public void truncateFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file, long size) throws IOException Truncate a file to the specified size- Specified by:
truncateFilein interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Server sessiontree- Tree connectionfile- Network file detailssize- New file length- Throws:
IOException- The exception description.
-
readFile
public int readFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file, byte[] buffer, int bufferPosition, int size, long fileOffset) throws IOException Read a block of data from the specified file.- Specified by:
readFilein interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Session detailstree- Tree connectionfile- Network filebuffer- Buffer to return data tobufferPosition- Starting position in the return buffersize- Maximum size of data to returnfileOffset- File offset to read data- Returns:
- Number of bytes read
- Throws:
IOException- The exception description.
-
seekFile
public long seekFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file, long pos, int typ) throws IOException Seek to the specified file position.- Specified by:
seekFilein interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Server sessiontree- Tree connectionfile- Network file.pos- Position to seek to.typ- Seek type.- Returns:
- New file position, relative to the start of file.
- Throws:
IOException
-
writeFile
public int writeFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file, byte[] buffer, int bufferOffset, int size, long fileOffset) throws IOException Write a block of data to the file.- Specified by:
writeFilein interfaceorg.alfresco.jlan.server.filesys.DiskInterface- Parameters:
sess- Server sessiontree- Tree connectionfile- Network file detailsbuffer- byte[] Data to be writtenbufferOffset- Offset within the buffer that the data startssize- int Data lengthfileOffset- Position within the file that the data is to be written.- Returns:
- Number of bytes actually written
- Throws:
IOException- The exception description.
-
getNodeForPath
public NodeRef getNodeForPath(org.alfresco.jlan.server.filesys.TreeConnection tree, String path) throws FileNotFoundException Get the node for the specified path- Parameters:
tree- TreeConnectionpath- String- Returns:
- NodeRef
- Throws:
FileNotFoundException
-
getPathForNode
public String getPathForNode(org.alfresco.jlan.server.filesys.TreeConnection tree, NodeRef nodeRef) throws FileNotFoundException Convert a node into a share relative path- Throws:
FileNotFoundException
-
getStateForPath
public org.alfresco.jlan.server.filesys.cache.FileState getStateForPath(org.alfresco.jlan.server.filesys.TreeConnection tree, String path) throws FileNotFoundException Get the file state for the specified path- Parameters:
tree- TreeConnectionpath- String- Returns:
- FileState
- Throws:
FileNotFoundException
-
treeClosed
public void treeClosed(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree) Connection opened to this disk device- Specified by:
treeClosedin interfaceorg.alfresco.jlan.server.core.DeviceInterface- Parameters:
sess- Server sessiontree- Tree connection
-
treeOpened
public void treeOpened(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree) Connection closed to this device- Specified by:
treeOpenedin interfaceorg.alfresco.jlan.server.core.DeviceInterface- Parameters:
sess- Server sessiontree- Tree connection
-
getLockManager
public org.alfresco.jlan.server.locking.LockManager getLockManager(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree) Return the lock manager used by this filesystem- Specified by:
getLockManagerin interfaceorg.alfresco.jlan.server.locking.FileLockingInterface- Parameters:
sess- SrvSessiontree- TreeConnection- Returns:
- LockManager
-
getOpLockManager
public org.alfresco.jlan.server.locking.OpLockManager getOpLockManager(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree) Return the oplock manager implementation associated with this virtual filesystem- Specified by:
getOpLockManagerin interfaceorg.alfresco.jlan.server.locking.OpLockInterface- Parameters:
sess- SrvSessiontree- TreeConnection- Returns:
- OpLockManager
-
isOpLocksEnabled
public boolean isOpLocksEnabled(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree) Enable/disable oplock support- Specified by:
isOpLocksEnabledin interfaceorg.alfresco.jlan.server.locking.OpLockInterface- Parameters:
sess- SrvSessiontree- TreeConnection- Returns:
- boolean
-
getDiskInformation
public void getDiskInformation(org.alfresco.jlan.server.filesys.DiskDeviceContext ctx, org.alfresco.jlan.server.filesys.SrvDiskInfo diskDev) throws IOException Get the disk information for this shared disk device.- Specified by:
getDiskInformationin interfaceorg.alfresco.jlan.server.filesys.DiskSizeInterface- Parameters:
ctx- DiskDeviceContextdiskDev- SrvDiskInfo- Throws:
IOException
-
setActionService
-
getActionService
-