public class ContentDiskDriver2 extends AlfrescoDiskDriver implements ExtendedDiskInterface, org.alfresco.jlan.server.filesys.DiskInterface, org.alfresco.jlan.server.filesys.DiskSizeInterface, org.alfresco.jlan.server.filesys.IOCtlInterface, RepositoryDiskInterface, org.alfresco.jlan.server.locking.OpLockInterface, org.alfresco.jlan.server.locking.FileLockingInterface
Provides a JLAN ContentDiskDriver for various JLAN protocols such as SMB/CIFS, NFS and FTP.
ioControlHandler, m_transactionService
Constructor and Description |
---|
ContentDiskDriver2() |
Modifier and Type | Method and Description |
---|---|
void |
closeFile(org.alfresco.jlan.server.SrvSession session,
org.alfresco.jlan.server.filesys.TreeConnection tree,
org.alfresco.jlan.server.filesys.NetworkFile file)
Close the file.
|
org.alfresco.service.cmr.repository.NodeRef |
closeFile(org.alfresco.jlan.server.filesys.TreeConnection tree,
org.alfresco.service.cmr.repository.NodeRef rootNode,
String path,
org.alfresco.jlan.server.filesys.NetworkFile file)
Close the file.
|
void |
copyContent(org.alfresco.service.cmr.repository.NodeRef rootNode,
String fromPath,
String toPath)
Copy the content from one node to another.
|
org.alfresco.jlan.server.core.DeviceContext |
createContext(String deviceName,
org.springframework.extensions.config.ConfigElement cfg)
Deprecated.
- no longer used. Construction of context is via spring now.
|
void |
createDirectory(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.NetworkFile |
createFile(org.alfresco.service.cmr.repository.NodeRef rootNode,
String path,
long allocationSize,
boolean isHidden)
CreateFile.
|
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)
Create a new file on the file system.
|
void |
deleteDirectory(org.alfresco.jlan.server.SrvSession session,
org.alfresco.jlan.server.filesys.TreeConnection tree,
String dir)
Delete the directory from the filesystem.
|
void |
deleteEmptyFile(org.alfresco.service.cmr.repository.NodeRef rootNode,
String path) |
void |
deleteFile(org.alfresco.jlan.server.SrvSession session,
org.alfresco.jlan.server.filesys.TreeConnection tree,
String name) |
org.alfresco.service.cmr.repository.NodeRef |
deleteFile2(org.alfresco.jlan.server.SrvSession session,
org.alfresco.jlan.server.filesys.TreeConnection tree,
org.alfresco.service.cmr.repository.NodeRef rootNode,
String path)
Delete the specified file.
|
int |
fileExists(org.alfresco.jlan.server.SrvSession session,
org.alfresco.jlan.server.filesys.TreeConnection tree,
String name)
Check if the specified file exists, and whether it is a file or directory.
|
void |
flushFile(org.alfresco.jlan.server.SrvSession session,
org.alfresco.jlan.server.filesys.TreeConnection tree,
org.alfresco.jlan.server.filesys.NetworkFile file)
Flush any buffered output for the specified file.
|
AuthenticationContext |
getAuthenticationContext()
Return the authentication context
|
AuthenticationService |
getAuthenticationService()
Return the authentication service
|
CheckOutCheckInService |
getCheckOutCheckInService() |
CifsHelper |
getCifsHelper()
Return the CIFS helper
|
ContentComparator |
getContentComparator() |
ContentService |
getContentService()
Return the content service
|
void |
getDiskInformation(org.alfresco.jlan.server.filesys.DiskDeviceContext ctx,
org.alfresco.jlan.server.filesys.SrvDiskInfo diskDev)
Get the disk information for this shared disk device.
|
FileFolderService |
getFileFolderService()
Return the file folder service
|
org.alfresco.jlan.server.filesys.FileInfo |
getFileInformation(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.LockManager |
getLockManager(org.alfresco.jlan.server.SrvSession sess,
org.alfresco.jlan.server.filesys.TreeConnection tree)
Return the lock manager used by this filesystem
|
LockService |
getLockService()
Return the lock service
|
org.alfresco.service.namespace.NamespaceService |
getNamespaceService()
Return the namespace service
|
NodeArchiveService |
getNodeArchiveService() |
org.alfresco.service.cmr.repository.NodeRef |
getNodeForPath(org.alfresco.service.cmr.repository.NodeRef rootNode,
String path)
Get the node for the specified path
|
org.alfresco.service.cmr.repository.NodeService |
getNodeService()
Return the node service
|
org.alfresco.jlan.server.locking.OpLockManager |
getOpLockManager(org.alfresco.jlan.server.SrvSession sess,
org.alfresco.jlan.server.filesys.TreeConnection tree) |
org.alfresco.service.cmr.security.PermissionService |
getPermissionService()
Return the permission service
|
BehaviourFilter |
getPolicyFilter()
Get the policy behaviour filter, used to inhibit versioning on a per transaction basis
|
org.alfresco.service.cmr.search.SearchService |
getSearchService()
Return the search service
|
void |
init() |
boolean |
isOpLocksEnabled(org.alfresco.jlan.server.SrvSession sess,
org.alfresco.jlan.server.filesys.TreeConnection tree) |
boolean |
isReadOnly(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.NetworkFile |
openFile(org.alfresco.jlan.server.SrvSession session,
org.alfresco.jlan.server.filesys.TreeConnection tree,
org.alfresco.jlan.server.filesys.FileOpenParams params)
Open a file or folder - obsolete implementation.
|
org.alfresco.jlan.server.filesys.NetworkFile |
openFile(org.alfresco.jlan.server.SrvSession session,
org.alfresco.jlan.server.filesys.TreeConnection tree,
org.alfresco.service.cmr.repository.NodeRef rootNode,
String path,
OpenFileMode mode,
boolean truncate)
Open the file - Repo Specific implementation
|
org.alfresco.jlan.util.DataBuffer |
processIOControl(org.alfresco.jlan.server.SrvSession sess,
org.alfresco.jlan.server.filesys.TreeConnection tree,
int ctrlCode,
int fid,
org.alfresco.jlan.util.DataBuffer dataBuf,
boolean isFSCtrl,
int filter)
Process a filesystem I/O control request
|
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)
Read a block of data from the specified file.
|
void |
reduceQuota(org.alfresco.jlan.server.SrvSession session,
org.alfresco.jlan.server.filesys.TreeConnection tree,
org.alfresco.jlan.server.filesys.NetworkFile file) |
void |
registerContext(org.alfresco.jlan.server.core.DeviceContext ctx)
Registers a device context object for this instance
of the shared device.
|
void |
renameFile(org.alfresco.service.cmr.repository.NodeRef rootNode,
String oldName,
String newName,
boolean soft,
boolean moveAsSystem)
Rename the specified file.
|
void |
renameFile(org.alfresco.jlan.server.SrvSession session,
org.alfresco.jlan.server.filesys.TreeConnection tree,
String oldName,
String newName) |
org.alfresco.jlan.server.filesys.NetworkFile |
restoreFile(org.alfresco.jlan.server.SrvSession sess,
org.alfresco.jlan.server.filesys.TreeConnection tree,
org.alfresco.service.cmr.repository.NodeRef rootNode,
String path,
long allocationSize,
org.alfresco.service.cmr.repository.NodeRef originalNodeRef)
RestoreFile.
|
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)
Seek to the specified file position.
|
void |
setAlfrescoLockKeeper(LockKeeper lockKeeper) |
void |
setAuthenticationContext(AuthenticationContext authContext)
Set the authentication context
|
void |
setAuthenticationService(AuthenticationService authService)
Set the authentication service
|
void |
setCheckOutCheckInService(CheckOutCheckInService service) |
void |
setCifsHelper(CifsHelper cifsHelper) |
void |
setContentComparator(ContentComparator contentComparator) |
void |
setContentService(ContentService contentService) |
void |
setDeletePseudoFileCache(org.alfresco.repo.cache.SimpleCache<String,String> deletePseudoFileCache) |
void |
setFileFolderService(FileFolderService fileService)
Set the file folder service
|
void |
setFileInformation(org.alfresco.jlan.server.SrvSession sess,
org.alfresco.jlan.server.filesys.TreeConnection tree,
String name,
org.alfresco.jlan.server.filesys.FileInfo info)
Set file information
|
void |
setHiddenAspect(HiddenAspect hiddenAspect) |
void |
setLockService(LockService lockService)
Set the lock service
|
void |
setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeArchiveService(NodeArchiveService nodeArchiveService) |
void |
setNodeMonitorFactory(NodeMonitorFactory nodeMonitorFactory)
Set the node monitor factory
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
Set the permission service
|
void |
setPolicyFilter(BehaviourFilter policyFilter)
Set the policy behaviour filter, used to inhibit versioning on a per transaction basis
|
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
org.alfresco.jlan.server.filesys.SearchContext |
startSearch(org.alfresco.jlan.server.SrvSession session,
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.
|
void |
treeClosed(org.alfresco.jlan.server.SrvSession sess,
org.alfresco.jlan.server.filesys.TreeConnection tree) |
void |
treeOpened(org.alfresco.jlan.server.SrvSession sess,
org.alfresco.jlan.server.filesys.TreeConnection tree) |
void |
truncateFile(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 size
|
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)
Write a block of data to the file.
|
getIoControlHandler, getServiceRegistry, getTransactionService, setIoControlHandler, setServiceRegistry, setTransactionService
public void init()
public final CifsHelper getCifsHelper()
public final AuthenticationService getAuthenticationService()
public final AuthenticationContext getAuthenticationContext()
public final org.alfresco.service.cmr.repository.NodeService getNodeService()
public final ContentService getContentService()
public final org.alfresco.service.namespace.NamespaceService getNamespaceService()
public final org.alfresco.service.cmr.search.SearchService getSearchService()
public final FileFolderService getFileFolderService()
public final org.alfresco.service.cmr.security.PermissionService getPermissionService()
public final LockService getLockService()
public BehaviourFilter getPolicyFilter()
public void setContentService(ContentService contentService)
contentService
- the content servicepublic void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService
- the namespace servicepublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the node servicepublic void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
searchService
- the search servicepublic void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
permissionService
- PermissionServicepublic void setAuthenticationContext(AuthenticationContext authContext)
authContext
- AuthenticationContextpublic void setAuthenticationService(AuthenticationService authService)
authService
- AuthenticationServicepublic void setFileFolderService(FileFolderService fileService)
fileService
- FileFolderServicepublic void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
mimetypeService
- service for helping with mimetypes and encodingpublic void setNodeMonitorFactory(NodeMonitorFactory nodeMonitorFactory)
nodeMonitorFactory
- NodeMonitorFactorypublic void setLockService(LockService lockService)
lockService
- LockServicepublic void setPolicyFilter(BehaviourFilter policyFilter)
policyFilter
- PolicyBehaviourFilterpublic void setHiddenAspect(HiddenAspect hiddenAspect)
hiddenAspect
- public void setAlfrescoLockKeeper(LockKeeper lockKeeper)
lockKeeper
- lockKeeperpublic org.alfresco.jlan.server.core.DeviceContext createContext(String deviceName, org.springframework.extensions.config.ConfigElement cfg) throws org.alfresco.jlan.server.core.DeviceContextException
createContext
in interface org.alfresco.jlan.server.core.DeviceInterface
deviceName
- The name of the devicecfg
- ConfigElement the configuration of the device context.org.alfresco.jlan.server.core.DeviceContextException
public void registerContext(org.alfresco.jlan.server.core.DeviceContext ctx) throws org.alfresco.jlan.server.core.DeviceContextException
AlfrescoDiskDriver
registerContext
in interface ExtendedDiskInterface
registerContext
in class AlfrescoDiskDriver
ctx
- the contextorg.alfresco.jlan.server.core.DeviceContextException
public boolean isReadOnly(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.core.DeviceContext ctx) throws IOException
isReadOnly
in interface org.alfresco.jlan.server.filesys.DiskInterface
sess
- Server sessionctx
- Device contextIOException
- If an error occurs.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
getFileInformation
in interface org.alfresco.jlan.server.filesys.DiskInterface
session
- Server sessiontree
- Tree connectionpath
- File name/path that information is required for.IOException
- The exception description.public org.alfresco.jlan.server.filesys.SearchContext startSearch(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection tree, String searchPath, int attributes) throws FileNotFoundException
startSearch
in interface org.alfresco.jlan.server.filesys.DiskInterface
session
- Server sessiontree
- Tree connectionsearchPath
- File(s) to search for, may include wildcards.attributes
- Attributes of the file(s) to search for, see class SMBFileAttribute.FileNotFoundException
- If the search could not be started.public int fileExists(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection tree, String name)
fileExists
in interface org.alfresco.jlan.server.filesys.DiskInterface
session
- Server sessiontree
- Tree connectionname
- the path of the fileFileStatus
public org.alfresco.jlan.server.filesys.NetworkFile openFile(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.FileOpenParams params) throws IOException
openFile
in interface org.alfresco.jlan.server.filesys.DiskInterface
session
- SrvSessiontree
- TreeConnectionparams
- FileOpenParamsIOException
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
createFile
in interface org.alfresco.jlan.server.filesys.DiskInterface
sess
- Server sessiontree
- Tree connectionparams
- File create parametersIOException
- If an error occurs.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
createDirectory
in interface org.alfresco.jlan.server.filesys.DiskInterface
sess
- Server sessiontree
- Tree connection.params
- Directory create parametersIOException
- If an error occurs.public void deleteDirectory(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection tree, String dir) throws IOException
The directory must be empty in order to be able to delete ity
deleteDirectory
in interface org.alfresco.jlan.server.filesys.DiskInterface
session
- Server sessiontree
- Tree connectiondir
- Directory name.IOException
- The exception description.public void flushFile(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file) throws IOException
flushFile
in interface org.alfresco.jlan.server.filesys.DiskInterface
session
- Server sessiontree
- Tree connectionfile
- Network file context.IOException
- The exception description.public void closeFile(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file) throws IOException
closeFile
in interface org.alfresco.jlan.server.filesys.DiskInterface
session
- Server sessiontree
- Tree connection.file
- Network file context.IOException
- If an error occurs.public void deleteFile(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection tree, String name) throws IOException
deleteFile
in interface org.alfresco.jlan.server.filesys.DiskInterface
IOException
public org.alfresco.service.cmr.repository.NodeRef deleteFile2(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.service.cmr.repository.NodeRef rootNode, String path) throws IOException
deleteFile2
in interface RepositoryDiskInterface
session
- Server sessiontree
- Tree connectionrootNode
- Root nodepath
- NetworkFileIOException
- The exception description.public void renameFile(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection tree, String oldName, String newName) throws IOException
renameFile
in interface org.alfresco.jlan.server.filesys.DiskInterface
IOException
public void renameFile(org.alfresco.service.cmr.repository.NodeRef rootNode, String oldName, String newName, boolean soft, boolean moveAsSystem) throws IOException
renameFile
in interface RepositoryDiskInterface
rootNode
- oldName
- path/name of old filenewName
- path/name of new filesoft
- booleanmoveAsSystem
- move as systemIOException
- The exception description.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
setFileInformation
in interface org.alfresco.jlan.server.filesys.DiskInterface
sess
- SrvSessiontree
- TreeConnectionname
- Stringinfo
- FileInfoIOException
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
truncateFile
in interface org.alfresco.jlan.server.filesys.DiskInterface
sess
- Server sessiontree
- Tree connectionfile
- Network file detailssize
- New file lengthIOException
- The exception description.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
readFile
in interface org.alfresco.jlan.server.filesys.DiskInterface
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 dataIOException
- The exception description.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
seekFile
in interface org.alfresco.jlan.server.filesys.DiskInterface
sess
- Server sessiontree
- Tree connectionfile
- Network file.pos
- Position to seek to.typ
- Seek type.IOException
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
writeFile
in interface org.alfresco.jlan.server.filesys.DiskInterface
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.IOException
- The exception description.public org.alfresco.service.cmr.repository.NodeRef getNodeForPath(org.alfresco.service.cmr.repository.NodeRef rootNode, String path) throws FileNotFoundException
rootNode
- rootNodepath
- StringFileNotFoundException
public org.alfresco.jlan.server.locking.LockManager getLockManager(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree)
getLockManager
in interface org.alfresco.jlan.server.locking.FileLockingInterface
sess
- SrvSessiontree
- TreeConnectionpublic void getDiskInformation(org.alfresco.jlan.server.filesys.DiskDeviceContext ctx, org.alfresco.jlan.server.filesys.SrvDiskInfo diskDev) throws IOException
getDiskInformation
in interface org.alfresco.jlan.server.filesys.DiskSizeInterface
ctx
- DiskDeviceContextdiskDev
- SrvDiskInfoIOException
public void setCifsHelper(CifsHelper cifsHelper)
public void treeOpened(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree)
treeOpened
in interface org.alfresco.jlan.server.core.DeviceInterface
public void treeClosed(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree)
treeClosed
in interface org.alfresco.jlan.server.core.DeviceInterface
public org.alfresco.jlan.util.DataBuffer processIOControl(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, int ctrlCode, int fid, org.alfresco.jlan.util.DataBuffer dataBuf, boolean isFSCtrl, int filter) throws org.alfresco.jlan.server.filesys.IOControlNotImplementedException, org.alfresco.jlan.smb.SMBException
processIOControl
in interface org.alfresco.jlan.server.filesys.IOCtlInterface
processIOControl
in class AlfrescoDiskDriver
sess
- Server sessiontree
- Tree connection.ctrlCode
- I/O control codefid
- File iddataBuf
- I/O control specific input dataisFSCtrl
- true if this is a filesystem control, or false for a device controlfilter
- if bit0 is set indicates that the control applies to the share root handleorg.alfresco.jlan.server.filesys.IOControlNotImplementedException
org.alfresco.jlan.smb.SMBException
public void setCheckOutCheckInService(CheckOutCheckInService service)
public final CheckOutCheckInService getCheckOutCheckInService()
public void copyContent(org.alfresco.service.cmr.repository.NodeRef rootNode, String fromPath, String toPath) throws FileNotFoundException
RepositoryDiskInterface
copyContent
in interface RepositoryDiskInterface
rootNode
- NodeReffromPath
- - the source nodetoPath
- - the target nodeFileNotFoundException
public org.alfresco.jlan.server.filesys.NetworkFile createFile(org.alfresco.service.cmr.repository.NodeRef rootNode, String path, long allocationSize, boolean isHidden) throws IOException
RepositoryDiskInterface
createFile
in interface RepositoryDiskInterface
rootNode
- NodeRefpath
- - pathallocationSize
- size to allocate for new fileisHidden
- booleanFileNotFoundException
IOException
public org.alfresco.jlan.server.filesys.NetworkFile openFile(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.service.cmr.repository.NodeRef rootNode, String path, OpenFileMode mode, boolean truncate) throws IOException
openFile
in interface RepositoryDiskInterface
session
- // temp until refactortree
- // temp until refactorrootNode
- NodeRefpath
- Stringmode
- OpenFileModetruncate
- booleanIOException
public org.alfresco.service.cmr.repository.NodeRef closeFile(org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.service.cmr.repository.NodeRef rootNode, String path, org.alfresco.jlan.server.filesys.NetworkFile file) throws IOException
closeFile
in interface RepositoryDiskInterface
tree
- TreeConnectionrootNode
- NodeRefpath
- - pathfile
- - fileIOException
- If an error occurs.FileNotFoundException
public void reduceQuota(org.alfresco.jlan.server.SrvSession session, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.jlan.server.filesys.NetworkFile file)
reduceQuota
in interface RepositoryDiskInterface
session
- tree
- file
- public void deleteEmptyFile(org.alfresco.service.cmr.repository.NodeRef rootNode, String path)
deleteEmptyFile
in interface RepositoryDiskInterface
rootNode
- NodeRefpath
- Stringpublic org.alfresco.jlan.server.locking.OpLockManager getOpLockManager(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree)
getOpLockManager
in interface org.alfresco.jlan.server.locking.OpLockInterface
public boolean isOpLocksEnabled(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree)
isOpLocksEnabled
in interface org.alfresco.jlan.server.locking.OpLockInterface
public void setContentComparator(ContentComparator contentComparator)
public ContentComparator getContentComparator()
public org.alfresco.jlan.server.filesys.NetworkFile restoreFile(org.alfresco.jlan.server.SrvSession sess, org.alfresco.jlan.server.filesys.TreeConnection tree, org.alfresco.service.cmr.repository.NodeRef rootNode, String path, long allocationSize, org.alfresco.service.cmr.repository.NodeRef originalNodeRef) throws IOException
RepositoryDiskInterface
restoreFile
in interface RepositoryDiskInterface
sess
- SrvSessiontree
- TreeConnectionrootNode
- NodeRefpath
- - pathallocationSize
- size to allocate for new fileoriginalNodeRef
- NodeRefFileNotFoundException
IOException
public void setNodeArchiveService(NodeArchiveService nodeArchiveService)
public NodeArchiveService getNodeArchiveService()
Copyright © 2005–2017 Alfresco Software. All rights reserved.