com.atomizesoftware.spin.managers.FileStorageComponent

FileStorageImpl

class FileStorageImpl extends FileStorage

Implementation of the FileStorage for local hard drive

Linear Supertypes
FileStorage, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FileStorageImpl
  2. FileStorage
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FileStorageImpl(documentsDir: String, thumbWidth: Int)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def createFile(stream: ByteArrayOutputStream, fileName: String): (String, String)

    Creates a file with the provided content and fileName in the uploads folder.

    Creates a file with the provided content and fileName in the uploads folder.

    returns

    the name and path of the created file.

    Definition Classes
    FileStorageImplFileStorage
  7. def createFile(file: FileItem): (String, String)

    Creates the specified file in the uploads folder.

    Creates the specified file in the uploads folder.

    returns

    the file name and file path.

    Definition Classes
    FileStorageImplFileStorage
  8. def createThumb(file: DocumentFile): Option[String]

    Creates a thumbnail image of the specified file.

    Creates a thumbnail image of the specified file.

    returns

    the path for the thumbnail if created, None otherwise.

    Definition Classes
    FileStorageImplFileStorage
  9. def deleteFile(path: String): Boolean

    Deletes the file from the hard drive

    Deletes the file from the hard drive

    returns

    true if the file was deleted, false otherwise.

    Definition Classes
    FileStorageImplFileStorage
  10. def documentBasedPath(filePath: String): String

    Returns the path of the file within the defined documents dir.

    Returns the path of the file within the defined documents dir.

    returns

    the path of the file within the documents dir.

  11. val documentsFile: File

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def escapeFileName(name: String): String

    Removes all weird chars from the specified name.

    Removes all weird chars from the specified name.

    Definition Classes
    FileStorage
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def getFile(file: DocumentFile, thumbnail: Boolean = false): File

    Gets a file from the documents folder

    Gets a file from the documents folder

    Definition Classes
    FileStorageImplFileStorage
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def linkFile(file: DocumentFile): String

    Moves the specified file from the uploads folder to the linked folder.

    Moves the specified file from the uploads folder to the linked folder.

    returns

    the new path for the moved file.

    Definition Classes
    FileStorageImplFileStorage
  21. val linkedDir: File

  22. val linkedPath: String

  23. val logger: Logger

  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. val systemSeparator: String

  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. def uniqueName(name: String): String

    Returns an unique identifier for the specified name.

    Returns an unique identifier for the specified name.

    Definition Classes
    FileStorage
  31. def unlinkFile(file: DocumentFile): String

    Moves the specified file from the linked folder to the unlinked folder.

    Moves the specified file from the linked folder to the unlinked folder.

    returns

    the new path for the moved file.

    Definition Classes
    FileStorageImplFileStorage
  32. val unlinkedDir: File

  33. val unlinkedPath: String

  34. val uploadsDir: File

  35. val uploadsPath: String

  36. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FileStorage

Inherited from AnyRef

Inherited from Any

Ungrouped