Class AbstractFileOperationProvider

  • All Implemented Interfaces:
    FileOperationProvider

    public abstract class AbstractFileOperationProvider
    extends java.lang.Object
    implements FileOperationProvider
    todo: add class description here
    Since:
    0.1
    Author:
    Siarhei Baidun
    • Constructor Detail

      • AbstractFileOperationProvider

        public AbstractFileOperationProvider()
    • Method Detail

      • collectOperations

        public final void collectOperations​(java.util.Collection operationsList,
                                            FileObject file)
                                     throws FileSystemException
        Gather available operations for the specified FileObject and put them into specified operationsList.
        Specified by:
        collectOperations in interface FileOperationProvider
        Parameters:
        operationsList - the list of available operations for the specivied FileObject. The operationList contains classes of available operations, e.g. Class objects.
        file - the FileObject for which we want to get the list of available operations.
        Throws:
        FileSystemException - if list of operations cannto be retrieved.
      • lookupOperation

        protected final java.lang.Class lookupOperation​(java.lang.Class operationClass)
                                                 throws FileSystemException
        Parameters:
        operationClass -
        Returns:
        never returns null
        Throws:
        FileSystemException