Class SandboxedStorage

  • All Implemented Interfaces:
    ej.storage.Storage

    public class SandboxedStorage
    extends ej.storage.fs.StorageFs
    Extends the storage on file system to add sandboxing for the applications.
    • Constructor Summary

      Constructors 
      Constructor Description
      SandboxedStorage()
      Creates a sandboxed storage on file system.
      SandboxedStorage​(java.lang.String root)
      Creates a storage on file system specifying the root folder where the root folder will be created.
    • Method Summary

      • Methods inherited from class ej.storage.fs.StorageFs

        append, exists, getFile, getIds, getRootFolderPropertyOrDefault, getSize, load, modify, move, remove, store
      • Methods inherited from class java.lang.Object

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

      • SandboxedStorage

        public SandboxedStorage()
                         throws java.io.IOException
        Creates a sandboxed storage on file system.

        The root folder is determined dynamically depending on the KF context. Each module has a different one.

        Throws:
        java.io.IOException - if the root cannot be created.
        See Also:
        Kernel.getContextOwner(), StorageFs()
      • SandboxedStorage

        public SandboxedStorage​(java.lang.String root)
                         throws java.io.IOException
        Creates a storage on file system specifying the root folder where the root folder will be created.

        The root folder is determined dynamically depending on the KF context. Each module has a different one.

        Parameters:
        root - the root folder.
        Throws:
        java.lang.IllegalArgumentException - if the root already exists and is not a directory.
        java.io.IOException - if the root cannot be created.