com.atomizesoftware.spin.managers.FileStorageComponent

FileStorageS3Impl

class FileStorageS3Impl extends FileStorage

Implementation of the FileStorage for S3

Linear Supertypes
FileStorage, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FileStorageS3Impl
  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 FileStorageS3Impl(s3AuthUrl: String, documentsDir: String, thumbWidth: Int)

Type Members

  1. case class S3Credentials(basicSessionCredentials: Option[BasicSessionCredentials] = None, expirationDate: github.nscala_time.time.Imports.DateTime) extends Product with Serializable

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. val bucket: String

  6. def clone(): AnyRef

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

    Uploads the contents of the given stream to the S3 uploads folder.

    Uploads the contents of the given stream to the S3 uploads folder.

    returns

    the name and path of the uploaded file in S3.

    Definition Classes
    FileStorageS3ImplFileStorage
  8. def createFile(file: FileItem): (String, String)

    Uploads the given file to S3 with an escaped file name in the uploads folder.

    Uploads the given file to S3 with an escaped file name in the uploads folder.

    returns

    the name and path of the file.

    Definition Classes
    FileStorageS3ImplFileStorage
  9. def createThumb(file: DocumentFile): Option[String]

    Creates a thumbnail of a file that already exists in S3 if it is an image.

    Creates a thumbnail of a file that already exists in S3 if it is an image.

    returns

    the path of the thumb if one was created, none otherwise.

    Definition Classes
    FileStorageS3ImplFileStorage
  10. def deleteFile(path: String): Boolean

    If the specified path belongs to a thumbnail, we remove the file from S3, otherwise we ignore the delete request.

    If the specified path belongs to a thumbnail, we remove the file from S3, otherwise we ignore the delete request.

    returns

    true if the thumbnail was removed successfully or if it wasn't a thumbnail.

    Definition Classes
    FileStorageS3ImplFileStorage
  11. val documentsPath: String

  12. val documentsUrl: String

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

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

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

    Removes all weird chars from the specified name.

    Removes all weird chars from the specified name.

    Definition Classes
    FileStorage
  16. def finalize(): Unit

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

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

    Gets a file from S3.

    Gets a file from S3.

    returns

    the contents of the fetched object.

    Definition Classes
    FileStorageS3ImplFileStorage
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. lazy val id: String

  21. val instanceName: String

  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. implicit val jsonFormats: Formats

    Attributes
    protected
  24. def linkFile(file: DocumentFile): String

    Copies the file in S3 from the uploads folder to the linked folder and deletes the file from the uploads folder.

    Copies the file in S3 from the uploads folder to the linked folder and deletes the file from the uploads folder.

    returns

    the new path of the file.

    Definition Classes
    FileStorageS3ImplFileStorage
  25. val linkedPath: String

  26. val logger: Logger

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

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

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

    Definition Classes
    AnyRef
  30. val s3Credentials: S3Credentials

  31. val s3Prefix: String

    Helpers with paths needed for upload, link and unlink of files.

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

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

    Returns an unique identifier for the specified name.

    Returns an unique identifier for the specified name.

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

    Copies a file in S3 from the linked folder to the unlinked folder and deletes the file from the linked folder.

    Copies a file in S3 from the linked folder to the unlinked folder and deletes the file from the linked folder.

    returns

    the new path of the file

    Definition Classes
    FileStorageS3ImplFileStorage
  36. val unlinkedPath: String

  37. val uploadsPath: String

  38. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FileStorage

Inherited from AnyRef

Inherited from Any

Ungrouped