services.mongodb

MongoDBFileService

class MongoDBFileService extends FileService

Use mongo for both metadata and blobs.

Annotations
@Singleton()
Linear Supertypes
FileService, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoDBFileService
  2. FileService
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoDBFileService(datasets: DatasetService, collections: CollectionService, sections: SectionService, comments: CommentService, previews: PreviewService, thumbnails: ThumbnailService, threeD: ThreeDService, sparql: RdfSPARQLService, storage: ByteStorageService)

    Annotations
    @Inject()

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. object MustBreak extends Exception

  7. def addMetadata(fileId: UUID, metadata: JsValue): Unit

    Definition Classes
    MongoDBFileServiceFileService
  8. def addTags(id: UUID, userIdStr: Option[String], eid: Option[String], tags: List[String]): Unit

    Definition Classes
    MongoDBFileServiceFileService
  9. def addUserMetadata(id: UUID, json: String): Unit

    Definition Classes
    MongoDBFileServiceFileService
  10. def addVersusMetadata(id: UUID, json: JsValue): Unit

    Add versus descriptors to the Versus.

    Add versus descriptors to the Versus.descriptors collection associated to a file

    Definition Classes
    MongoDBFileServiceFileService
  11. def addXMLMetadata(id: UUID, json: String): Unit

    Definition Classes
    MongoDBFileServiceFileService
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def comment(id: UUID, comment: Comment): Unit

    Definition Classes
    MongoDBFileServiceFileService
  15. def count(): Long

    Count all files

    Count all files

    Definition Classes
    MongoDBFileServiceFileService
  16. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def findByTag(tag: String): List[File]

    Definition Classes
    MongoDBFileServiceFileService
  20. def findIntermediates(): List[File]

    Definition Classes
    MongoDBFileServiceFileService
  21. def findMetadataChangedFiles(): List[File]

    Definition Classes
    MongoDBFileServiceFileService
  22. def first(): Option[File]

    First file in chronological order.

    First file in chronological order.

    Definition Classes
    MongoDBFileServiceFileService
  23. def get(id: UUID): Option[File]

    Get file metadata.

    Get file metadata.

    Definition Classes
    MongoDBFileServiceFileService
  24. def getBytes(id: UUID): Option[(InputStream, String, String, Long)]

    Get blob.

    Get blob.

    Definition Classes
    MongoDBFileServiceFileService
  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def getJsonArray(list: List[JsObject]): JsArray

    Definition Classes
    MongoDBFileServiceFileService
  27. def getMetadata(id: UUID): Map[String, Any]

    Definition Classes
    MongoDBFileServiceFileService
  28. def getTechnicalMetadataJSON(id: UUID): String

    Definition Classes
    MongoDBFileServiceFileService
  29. def getUserMetadata(id: UUID): Map[String, Any]

    Definition Classes
    MongoDBFileServiceFileService
  30. def getUserMetadataJSON(id: UUID): String

    Definition Classes
    MongoDBFileServiceFileService
  31. def getVersusMetadata(id: UUID): Option[JsValue]

    Get Versus descriptors as Json Array for a file

    Get Versus descriptors as Json Array for a file

    Definition Classes
    MongoDBFileServiceFileService
  32. def getXMLMetadataJSON(id: UUID): String

    Definition Classes
    MongoDBFileServiceFileService
  33. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  34. def index(id: UUID): Unit

    Definition Classes
    MongoDBFileServiceFileService
  35. def isInDataset(file: File, dataset: Dataset): Boolean

    Definition Classes
    MongoDBFileServiceFileService
  36. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  37. def jsonToXML(theJSON: String): File

  38. def latest(i: Int): List[File]

    Lastest x files in chronological order.

    Lastest x files in chronological order.

    Definition Classes
    MongoDBFileServiceFileService
  39. def latest(): Option[File]

    Lastest file in chronological order.

    Lastest file in chronological order.

    Definition Classes
    MongoDBFileServiceFileService
  40. def listFiles(): List[File]

    List all files.

    List all files.

    Definition Classes
    MongoDBFileServiceFileService
  41. def listFilesAfter(date: String, limit: Int): List[File]

    List files after a specified date.

    List files after a specified date.

    Definition Classes
    MongoDBFileServiceFileService
  42. def listFilesBefore(date: String, limit: Int): List[File]

    List files before a specified date.

    List files before a specified date.

    Definition Classes
    MongoDBFileServiceFileService
  43. def listFilesNotIntermediate(): List[File]

    List all files in the system that are not intermediate result files generated by the extractors.

    List all files in the system that are not intermediate result files generated by the extractors.

    Definition Classes
    MongoDBFileServiceFileService
  44. def listOutsideDataset(dataset_id: UUID): List[File]

    Definition Classes
    MongoDBFileServiceFileService
  45. def modifyRDFOfMetadataChangedFiles(): Unit

    Definition Classes
    MongoDBFileServiceFileService
  46. def modifyRDFUserMetadata(id: UUID, mappingNumber: String = "1"): Unit

    Definition Classes
    MongoDBFileServiceFileService
  47. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  50. def removeAllTags(id: UUID): Unit

    Definition Classes
    MongoDBFileServiceFileService
  51. def removeFile(id: UUID): Unit

    Remove the file from mongo

    Remove the file from mongo

    Definition Classes
    MongoDBFileServiceFileService
  52. def removeOldIntermediates(): Unit

    Definition Classes
    MongoDBFileServiceFileService
  53. def removeTags(id: UUID, userIdStr: Option[String], eid: Option[String], tags: List[String]): Unit

    Definition Classes
    MongoDBFileServiceFileService
  54. def removeTemporaries(): Unit

    Definition Classes
    MongoDBFileServiceFileService
  55. def renameFile(id: UUID, newName: String): Unit

    Definition Classes
    MongoDBFileServiceFileService
  56. def save(inputStream: InputStream, filename: String, contentType: Option[String], author: Identity, showPreviews: String = "DatasetLevel"): Option[File]

    Save blob.

    Save blob.

    Definition Classes
    MongoDBFileServiceFileService
  57. def searchAllMetadataFormulateQuery(requestedMetadataQuery: Any): List[File]

    Definition Classes
    MongoDBFileServiceFileService
  58. def searchMetadataFormulateQuery(requestedMap: LinkedHashMap[String, Any], root: String): MongoDBObject

    Definition Classes
    MongoDBFileServiceFileService
  59. def searchUserMetadataFormulateQuery(requestedMetadataQuery: Any): List[File]

    Definition Classes
    MongoDBFileServiceFileService
  60. def setContentType(id: UUID, newType: String): Unit

    Definition Classes
    MongoDBFileServiceFileService
  61. def setIntermediate(id: UUID): Unit

    Definition Classes
    MongoDBFileServiceFileService
  62. def setNotesHTML(id: UUID, html: String): Unit

    Definition Classes
    MongoDBFileServiceFileService
  63. def setUserMetadataWasModified(id: UUID, wasModified: Boolean): Unit

    Definition Classes
    MongoDBFileServiceFileService
  64. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  65. def toString(): String

    Definition Classes
    AnyRef → Any
  66. def updateLicense(id: UUID, licenseType: String, rightsHolder: String, licenseText: String, licenseUrl: String, allowDownload: String): Unit

    Implementation of updateLicenseing defined in services/FileService.

    Implementation of updateLicenseing defined in services/FileService.scala.

    Definition Classes
    MongoDBFileServiceFileService
  67. def updateThumbnail(fileId: UUID, thumbnailId: UUID): Unit

    Update thumbnail used to represent this dataset.

    Update thumbnail used to represent this dataset.

    Definition Classes
    MongoDBFileServiceFileService
  68. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FileService

Inherited from AnyRef

Inherited from Any

Ungrouped