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, userService: UserService)

    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 addFollower(id: UUID, userId: UUID): Unit

    Add follower to a file.

    Add follower to a file.

    Definition Classes
    MongoDBFileServiceFileService
  8. def addMetadata(fileId: UUID, metadata: JsValue): Unit

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

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

    Definition Classes
    MongoDBFileServiceFileService
  11. 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
  12. def addXMLMetadata(id: UUID, json: String): Unit

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

    Definition Classes
    Any
  14. def clone(): AnyRef

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

    Definition Classes
    MongoDBFileServiceFileService
  16. def count(): Long

    Count all files

    Count all files

    Definition Classes
    MongoDBFileServiceFileService
  17. def dumpAllFileMetadata(): List[String]

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def findByTag(tag: String, start: String, limit: Integer, reverse: Boolean): List[File]

    Definition Classes
    MongoDBFileServiceFileService
  22. def findByTag(tag: String): List[File]

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

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

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

    First file in chronological order.

    First file in chronological order.

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

    Get file metadata.

    Get file metadata.

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

    Get blob.

    Get blob.

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

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

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

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

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

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

    Definition Classes
    MongoDBFileServiceFileService
  34. 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
  35. def getXMLMetadataJSON(id: UUID): String

    Definition Classes
    MongoDBFileServiceFileService
  36. def hashCode(): Int

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

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

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

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

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

    Lastest x files in chronological order.

    Lastest x files in chronological order.

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

    Lastest file in chronological order.

    Lastest file in chronological order.

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

    List all files.

    List all files.

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

    List files after a specified date.

    List files after a specified date.

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

    List files before a specified date.

    List files before a specified date.

    Definition Classes
    MongoDBFileServiceFileService
  46. 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
  47. def listOutsideDataset(dataset_id: UUID): List[File]

    Definition Classes
    MongoDBFileServiceFileService
  48. def listUserFilesAfter(date: String, limit: Int, email: String): List[File]

    List files specific to a user after a specified date.

    List files specific to a user after a specified date.

    Definition Classes
    MongoDBFileServiceFileService
  49. def listUserFilesBefore(date: String, limit: Int, email: String): List[File]

    List files specific to a user before a specified date.

    List files specific to a user before a specified date.

    Definition Classes
    MongoDBFileServiceFileService
  50. def modifyRDFOfMetadataChangedFiles(): Unit

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

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

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

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

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

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

    Remove the file from mongo

    Remove the file from mongo

    Definition Classes
    MongoDBFileServiceFileService
  57. def removeFollower(id: UUID, userId: UUID): Unit

    Remove follower from a file.

    Remove follower from a file.

    Definition Classes
    MongoDBFileServiceFileService
  58. def removeOldIntermediates(): Unit

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

    Definition Classes
    MongoDBFileServiceFileService
  60. def removeTemporaries(): Unit

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

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

    Save blob.

    Save blob.

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  71. def toString(): String

    Definition Classes
    AnyRef → Any
  72. 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
  73. def updateMetadata(fileId: UUID, metadata: JsValue, extractor_id: String): Unit

    Update technical metadata

    Update technical metadata

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

    Update thumbnail used to represent this dataset.

    Update thumbnail used to represent this dataset.

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FileService

Inherited from AnyRef

Inherited from Any

Ungrouped