Class StorageFactoryService.FileOperationHelper

  • Enclosing class:
    StorageFactoryService

    private static class StorageFactoryService.FileOperationHelper
    extends java.lang.Object
    Helper class for common file operations on the service properties files.

    Introduced to take care of error reporting for common file operations carried out in StorageFactoryService.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String operation
      Name of the most recently performed operation.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FileOperationHelper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) boolean delete​(StorageFile file, boolean mustSucceed)  
      (package private) boolean exists​(StorageFile file, boolean mustSucceed)  
      private void handleSecPrivException​(StorageFile file, boolean mustSucceed, java.lang.SecurityException se)
      Handles security exceptions caused by missing privileges on the files being accessed.
      (package private) boolean renameTo​(StorageFile from, StorageFile to, boolean mustSucceed)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • operation

        private java.lang.String operation
        Name of the most recently performed operation.
    • Constructor Detail

      • FileOperationHelper

        private FileOperationHelper()