Interceptors

There are ColdBox interception points that are announced when working with CBFS disks, directories, and files that you can use. These can be used to provide additional functionality in your applications such as logging file access, securing folders, and more.

cbfsOnDiskStart

Invoked after a disk has been started.

CBFS automatically manages the starting of disks.

component {
      function cbfsOnDiskStart( disk ) {
            //java...
      }
}

cbfsOnDiskShutdown

CBFS automatically manages the shutdown of disks.

Invoked after a disk has been shutdown.

component {
      function cbfsOnDiskShutdown( disk ) {
            //java...
      }
}

cbfsOnFileCreate

Invoked when a file is created.

component {
    function cbfsOnFileCreate( file ) {
 
    }
}

cbfsOnFileMove

Invoked when a file is moved.

component {
    function cbfsOnFileMove( file ) {
 
    }
}

cbfsOnFileCopy

Invoked when a file is copied.

component {
    function cbfsOnFileCopy( file ) {
 
    }
}

cbfsOnFileDelete

Invoked when a file is deleted.

component {
    function cbfsOnFileDelete( file ) {
        
    }
}

cbfsOnFileInfoRequest

Invoked when info or extended info is requested on a file.

component {
    function cbfsOnFileInfoRequest( file ) {
    
    }
}

cbfsOnFileMove

Invoked when a file is moved.

component {
    function cbfsOnFileMove( file ) {
        
    }
}

cbfsOnDirectoryMove

Invoked when a directory is moved.

component {
    function cbfsOnDirectoryMove( source, destination, disk ) {
    
    }
}

cbfsOnDirectoryCreate

Invoked when a directory is created.

component {
    function cbfsOnDirectoryCreate( directory, disk ) {
    
    }
}

cbfsOnDirectoryCopy

Invoked when a directory is copied.

component {
    function cbfsOnDirectoryCopy( source, destination, disk ) {
    
    }
}

cbfsOnDirectoryDelete

Invoked when a directory is deleted.

component {
    function cbfsOnDirectoryDelete( directory, disk ) {
    
    }
}

Last updated