org.alfresco.filesys.repo
Class ContentIOControlHandler

java.lang.Object
  extended by org.alfresco.filesys.repo.ContentIOControlHandler
All Implemented Interfaces:
IOControlHandler, org.alfresco.jlan.server.filesys.IOCtlInterface

public class ContentIOControlHandler
extends java.lang.Object
implements IOControlHandler

Content Disk Driver I/O Control Handler Class

Provides the custom I/O control code handling used by the CIFS client interface application.


Constructor Summary
ContentIOControlHandler()
          Default constructor
 
Method Summary
 AuthenticationService getAuthenticationService()
          Return the authentication service
 CifsHelper getCifsHelper()
          Return the CIFS helper
 ContentContext getContentContext()
          Return the filesystem context
 ContentDiskDriver getContentDriver()
          Return the filesystem driver
 org.alfresco.service.cmr.repository.NodeService getNodeService()
          Return the node service
 TransactionService getTransactionService()
          Return the transaction service
 void initialize(AlfrescoDiskDriver filesysDriver, AlfrescoContext context)
          Initalize the I/O control handler
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentIOControlHandler

public ContentIOControlHandler()
Default constructor

Method Detail

initialize

public void initialize(AlfrescoDiskDriver filesysDriver,
                       AlfrescoContext context)
Initalize the I/O control handler

Specified by:
initialize in interface IOControlHandler
Parameters:
filesysDriver - AlfrescoDiskDriver
context - AlfrescoContext

getCifsHelper

public final CifsHelper getCifsHelper()
Return the CIFS helper

Returns:
CifsHelper

getAuthenticationService

public final AuthenticationService getAuthenticationService()
Return the authentication service

Returns:
AuthenticationService

getTransactionService

public final TransactionService getTransactionService()
Return the transaction service

Returns:
TransactionService

getNodeService

public final org.alfresco.service.cmr.repository.NodeService getNodeService()
Return the node service

Returns:
NodeService

getContentDriver

public final ContentDiskDriver getContentDriver()
Return the filesystem driver

Returns:
ContentDiskDriver

getContentContext

public final ContentContext getContentContext()
Return the filesystem context

Returns:
ContentContext

processIOControl

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
Process a filesystem I/O control request

Specified by:
processIOControl in interface org.alfresco.jlan.server.filesys.IOCtlInterface
Parameters:
sess - Server session
tree - Tree connection.
ctrlCode - I/O control code
fid - File id
dataBuf - I/O control specific input data
isFSCtrl - true if this is a filesystem control, or false for a device control
filter - if bit0 is set indicates that the control applies to the share root handle
Returns:
DataBuffer
Throws:
org.alfresco.jlan.server.filesys.IOControlNotImplementedException
org.alfresco.jlan.smb.SMBException


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