services.mongodb

MongoDBDatasetService

class MongoDBDatasetService extends DatasetService

Use Mongodb to store datasets.

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

Instance Constructors

  1. new MongoDBDatasetService(collections: CollectionService, files: FileService, comments: CommentService, sparql: RdfSPARQLService, spaces: SpaceService, userService: UserService, folders: FolderService, metadatas: MetadataService, events: EventService, appConfig: AppConfigurationService, esqueue: ElasticsearchQueue)

    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 addCollection(datasetId: UUID, collectionId: UUID): Unit

    Definition Classes
    MongoDBDatasetServiceDatasetService
  8. def addCreator(id: UUID, creator: String): Unit

    Add a creator to the end of the dataset's list of creators

    Add a creator to the end of the dataset's list of creators

    Definition Classes
    MongoDBDatasetServiceDatasetService
  9. def addFile(datasetId: UUID, file: File): Unit

    Add file to dataset.

    Add file to dataset.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  10. def addFolder(datasetId: UUID, folderId: UUID): Unit

    Add Folder to dataset.

    Add Folder to dataset.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  11. def addFollower(id: UUID, userId: UUID): Unit

    Add follower to a dataset.

    Add follower to a dataset.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  12. def addMetadata(id: UUID, json: String): Unit

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  14. def addToSpace(datasetId: UUID, spaceId: UUID): Unit

    Associate a dataset with a space

    Associate a dataset with a space

    Definition Classes
    MongoDBDatasetServiceDatasetService
  15. def addUserMetadata(id: UUID, json: String): Unit

    Definition Classes
    MongoDBDatasetServiceDatasetService
  16. def addXMLMetadata(id: UUID, fileId: UUID, json: String): Unit

    Definition Classes
    MongoDBDatasetServiceDatasetService
  17. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. def count(): Long

    Count all datasets

    Count all datasets

    Definition Classes
    MongoDBDatasetServiceDatasetService
  20. def countAccess(permissions: Set[Permission], user: Option[User], showAll: Boolean): Long

    Count all datasets the user has access to.

    Count all datasets the user has access to.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  21. def countCollection(collection: String): Long

    Count all datasets in a collection

    Count all datasets in a collection

    Definition Classes
    MongoDBDatasetServiceDatasetService
  22. def countSpace(space: String): Long

    Count all datasets in a space

    Count all datasets in a space

    Definition Classes
    MongoDBDatasetServiceDatasetService
  23. def countUser(user: Option[User], showAll: Boolean, owner: User): Long

    Count all datasets the user has created.

    Count all datasets the user has created.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  24. def createThumbnail(datasetId: UUID): Unit

    Set new thumbnail.

    Set new thumbnail.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  25. def dumpAllDatasetGroupings(): List[String]

    Definition Classes
    MongoDBDatasetServiceDatasetService
  26. def dumpAllDatasetMetadata(): List[String]

    Definition Classes
    MongoDBDatasetServiceDatasetService
  27. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. def findByFileIdAllContain(file_id: UUID): List[Dataset]

    to get a list of datasets which contain the given file.

    to get a list of datasets which contain the given file.

    Note: this function will return back a list of dataset, where a given file is either under a dataset directly or under a folder of a dataset.

    This function will first get a list of dataset which directly contain a given file. Then to get a dataset which indirectly contain a given file, it will traverse back on the hierarchical paths from the folder of that give file to a dataset.

    file_id

    file id of a given file

    returns

    a list of dataset objects

    Definition Classes
    MongoDBDatasetServiceDatasetService
  31. def findByFileIdDirectlyContain(file_id: UUID): List[Dataset]

    to get a list of datasets which directly contain the given file.

    to get a list of datasets which directly contain the given file.

    Note: directly contain a file means that the given file is not under any folder of a dataset. Warning: this function will not return the dataset if the given file is under a folder of this dataset.

    file_id

    file id of a given file

    returns

    a list of dataset objects with option type

    Definition Classes
    MongoDBDatasetServiceDatasetService
  32. def findByTag(tag: String, start: String, limit: Integer, reverse: Boolean, user: Option[User]): List[Dataset]

    Definition Classes
    MongoDBDatasetServiceDatasetService
  33. def findByTag(tag: String, user: Option[User]): List[Dataset]

    Definition Classes
    MongoDBDatasetServiceDatasetService
  34. def findMetadataChangedDatasets(): List[Dataset]

    Definition Classes
    MongoDBDatasetServiceDatasetService
  35. def findNotContainingFile(file_id: UUID): List[Dataset]

    Definition Classes
    MongoDBDatasetServiceDatasetService
  36. def findOneByFileId(file_id: UUID): Option[Dataset]

    Definition Classes
    MongoDBDatasetServiceDatasetService
  37. final def folderPath(folder: Folder): Option[Dataset]

    get dataset which contains the folder

    get dataset which contains the folder

    folder

    a Folder object

    returns

    dataset containing this folder.

    Annotations
    @tailrec()
  38. def get(ids: List[UUID]): DBResult[Dataset]

    Definition Classes
    MongoDBDatasetServiceDatasetService
  39. def get(id: UUID): Option[Dataset]

    Get dataset.

    Get dataset.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  40. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  41. def getFileId(datasetId: UUID, filename: String): Option[UUID]

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  43. def getMetrics(): Iterator[Dataset]

    Definition Classes
    MongoDBDatasetServiceDatasetService
  44. def getTags(user: Option[User]): Map[String, Long]

    Return a list of tags and counts found in sections

    Return a list of tags and counts found in sections

    Definition Classes
    MongoDBDatasetServiceDatasetService
  45. def getTechnicalMetadataJSON(id: UUID): String

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  47. def getUserMetadataJSON(id: UUID): String

    Definition Classes
    MongoDBDatasetServiceDatasetService
  48. def getXMLMetadataJSON(id: UUID): String

    Definition Classes
    MongoDBDatasetServiceDatasetService
  49. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  50. def incrementDownloads(id: UUID, user: Option[User]): Unit

    Definition Classes
    MongoDBDatasetServiceDatasetService
  51. def incrementMetadataCount(id: UUID, count: Long): Unit

    Change the metadataCount field for a dataset

    Change the metadataCount field for a dataset

    Definition Classes
    MongoDBDatasetServiceDatasetService
  52. def incrementViews(id: UUID, user: Option[User]): (Int, Date)

    Definition Classes
    MongoDBDatasetServiceDatasetService
  53. def index(id: UUID): Unit

    Queue a dataset to be indexed in Elasticsearch.

    Queue a dataset to be indexed in Elasticsearch.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  54. def indexAll(): Unit

    Queue all datasets to be indexed in Elasticsearch.

    Queue all datasets to be indexed in Elasticsearch.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  55. def insert(dataset: Dataset): Option[String]

    Insert dataset.

    Insert dataset.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  56. def isInCollection(datasetId: UUID, collectionId: UUID): Boolean

    Check if dataset belongs to a collection.

    Check if dataset belongs to a collection.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  57. def isInCollection(dataset: Dataset, collection: Collection): Boolean

    Check if a dataset is in a specific collection.

    Check if a dataset is in a specific collection.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  58. final def isInstanceOf[T0]: Boolean

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

  60. def listAccess(date: String, nextPage: Boolean, limit: Integer, title: String, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: Boolean, showOnlyShared: Boolean, exact: Boolean): List[Dataset]

    Return a list of datasets the user has access to starting at a specific date.

    Return a list of datasets the user has access to starting at a specific date.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  61. def listAccess(date: String, nextPage: Boolean, limit: Integer, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: Boolean, showOnlyShared: Boolean): List[Dataset]

    Return a list of datasets the user has access to starting at a specific date.

    Return a list of datasets the user has access to starting at a specific date.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  62. def listAccess(limit: Integer, title: String, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: Boolean, showOnlyShared: Boolean, exact: Boolean): List[Dataset]

    Return a list of datasets the user has access to.

    Return a list of datasets the user has access to.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  63. def listAccess(limit: Integer, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: Boolean, showOnlyShared: Boolean): List[Dataset]

    Return a list of datasets the user has access to.

    Return a list of datasets the user has access to.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  64. def listCollection(date: String, nextPage: Boolean, limit: Integer, collection: String, user: Option[User]): List[Dataset]

    Return a list of datasets in a collection starting at a specific date

    Return a list of datasets in a collection starting at a specific date

    Definition Classes
    MongoDBDatasetServiceDatasetService
  65. def listCollection(limit: Integer, collection: String, user: Option[User]): List[Dataset]

    Return a list of datasets in a collection

    Return a list of datasets in a collection

    Definition Classes
    MongoDBDatasetServiceDatasetService
  66. def listCollection(collection: String, user: Option[User]): List[Dataset]

    Return a list of datasets in a collection

    Return a list of datasets in a collection

    Definition Classes
    MongoDBDatasetServiceDatasetService
  67. def listCollection(date: String, nextPage: Boolean, limit: Integer, collection: String): List[Dataset]

    Return a list of datasets in a collection starting at a specific date, this does not check for permissions

    Return a list of datasets in a collection starting at a specific date, this does not check for permissions

    Definition Classes
    MongoDBDatasetServiceDatasetService
  68. def listCollection(limit: Integer, collection: String): List[Dataset]

    Return a list of datasets in a collection, this does not check for permissions

    Return a list of datasets in a collection, this does not check for permissions

    Definition Classes
    MongoDBDatasetServiceDatasetService
  69. def listCollection(collection: String): List[Dataset]

    Return a list of datasets in a collection, this does not check for permissions

    Return a list of datasets in a collection, this does not check for permissions

    Definition Classes
    MongoDBDatasetServiceDatasetService
  70. def listSpace(date: String, nextPage: Boolean, limit: Integer, space: String, user: Option[User]): List[Dataset]

    Return a list of datasets in a space starting at a specific date, this does not check for permissions

    Return a list of datasets in a space starting at a specific date, this does not check for permissions

    Definition Classes
    MongoDBDatasetServiceDatasetService
  71. def listSpace(limit: Integer, space: String, user: Option[User]): List[Dataset]

    Return a list of datasets in a space

    Return a list of datasets in a space

    Definition Classes
    MongoDBDatasetServiceDatasetService
  72. def listSpace(date: String, nextPage: Boolean, limit: Integer, space: String): List[Dataset]

    Return a list of datasets in a space starting at a specific date, this does not check for permissions

    Return a list of datasets in a space starting at a specific date, this does not check for permissions

    Definition Classes
    MongoDBDatasetServiceDatasetService
  73. def listSpace(limit: Integer, space: String): List[Dataset]

    Return a list of datasets in a space, this does not check for permissions

    Return a list of datasets in a space, this does not check for permissions

    Definition Classes
    MongoDBDatasetServiceDatasetService
  74. def listSpaceAccess(date: String, nextPage: Boolean, limit: Integer, title: String, permissions: Set[Permission], space: String, user: Option[User], showAll: Boolean, showPublic: Boolean): List[Dataset]

    Return a list of datasets in a space the user has access to starting at a specific date.

    Return a list of datasets in a space the user has access to starting at a specific date.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  75. def listSpaceAccess(date: String, nextPage: Boolean, limit: Integer, permissions: Set[Permission], space: String, user: Option[User], showAll: Boolean, showPublic: Boolean): List[Dataset]

    Return a list of datasets in a space the user has access to starting at a specific date.

    Return a list of datasets in a space the user has access to starting at a specific date.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  76. def listSpaceAccess(limit: Integer, title: String, permissions: Set[Permission], space: String, user: Option[User], showAll: Boolean, showPublic: Boolean): List[Dataset]

    Return a list of datasets in a space the user has access to.

    Return a list of datasets in a space the user has access to.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  77. def listSpaceAccess(limit: Integer, permissions: Set[Permission], space: String, user: Option[User], showAll: Boolean, showPublic: Boolean): List[Dataset]

    Return a list of datasets in a space the user has access to.

    Return a list of datasets in a space the user has access to.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  78. def listSpaceStatus(date: String, nextPage: Boolean, limit: Integer, space: String, status: String, user: Option[User]): List[Dataset]

    Return a list of datasets in a space filtered by status

    Return a list of datasets in a space filtered by status

    Definition Classes
    MongoDBDatasetServiceDatasetService
  79. def listSpaceStatus(limit: Integer, space: String, status: String, user: Option[User]): List[Dataset]

    Return a list of datasets in a space filtered by status

    Return a list of datasets in a space filtered by status

    Definition Classes
    MongoDBDatasetServiceDatasetService
  80. def listSpaceStatus(limit: Integer, space: String, status: String): List[Dataset]

    Return a list of datasets in a space filtered by status, this does not check for permissions

    Return a list of datasets in a space filtered by status, this does not check for permissions

    Definition Classes
    MongoDBDatasetServiceDatasetService
  81. def listUser(user: Option[User]): List[Dataset]

    Return a list of datasets a user can View.

    Return a list of datasets a user can View.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  82. def listUser(date: String, nextPage: Boolean, limit: Integer, user: Option[User], showAll: Boolean, owner: User): List[Dataset]

    Return a list of datasets the user has created starting at a specific date.

    Return a list of datasets the user has created starting at a specific date.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  83. def listUser(limit: Integer, user: Option[User], showAll: Boolean, owner: User): List[Dataset]

    Return a list of datasets the user has created.

    Return a list of datasets the user has created.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  84. def listUserTrash(user: Option[User], limit: Integer): List[Dataset]

    Definition Classes
    MongoDBDatasetServiceDatasetService
  85. def listUserTrash(date: String, nextPage: Boolean, limit: Integer, user: Option[User], showAll: Boolean, owner: User): List[Dataset]

    Return a list of datasets the user has created starting at a specific date.

    Return a list of datasets the user has created starting at a specific date.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  86. def listUserTrash(limit: Integer, user: Option[User], showAll: Boolean, owner: User): List[Dataset]

    Return a list of datasets the user has created.

    Return a list of datasets the user has created.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  87. def modifyRDFOfMetadataChangedDatasets(): Unit

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  89. def moveCreator(id: UUID, creator: String, position: Integer): Unit

    Move a creator to a new position in the dataset's list of creators

    Move a creator to a new position in the dataset's list of creators

    Definition Classes
    MongoDBDatasetServiceDatasetService
  90. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  91. def newThumbnail(datasetId: UUID): Unit

    Definition Classes
    MongoDBDatasetServiceDatasetService
  92. final def notify(): Unit

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

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  95. def removeCollection(datasetId: UUID, collectionId: UUID): Unit

    Definition Classes
    MongoDBDatasetServiceDatasetService
  96. def removeCreator(id: UUID, creator: String): Unit

    Remove a creator from the dataset's list of creators

    Remove a creator from the dataset's list of creators

    Definition Classes
    MongoDBDatasetServiceDatasetService
  97. def removeDataset(id: UUID, host: String, apiKey: Option[String], user: Option[User]): Unit

    Definition Classes
    MongoDBDatasetServiceDatasetService
  98. def removeFile(datasetId: UUID, fileId: UUID): Unit

    Remove file from dataset.

    Remove file from dataset.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  99. def removeFolder(datasetId: UUID, folderId: UUID): Unit

    Remove folder from dataset.

    Remove folder from dataset.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  100. def removeFollower(id: UUID, userId: UUID): Unit

    Remove follower from a dataset.

    Remove follower from a dataset.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  101. def removeFromSpace(datasetId: UUID, spaceId: UUID): Unit

    Remove association between dataset and space

    Remove association between dataset and space

    Definition Classes
    MongoDBDatasetServiceDatasetService
  102. def removeTag(id: UUID, tagId: UUID): Unit

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  104. def removeXMLMetadata(id: UUID, fileId: UUID): Unit

    Definition Classes
    MongoDBDatasetServiceDatasetService
  105. def searchAllMetadataFormulateQuery(requestedMetadataQuery: Any): List[Dataset]

    Definition Classes
    MongoDBDatasetServiceDatasetService
  106. def searchMetadata(id: UUID, requestedMap: LinkedHashMap[String, Any], currentMap: Map[String, Any]): Boolean

    Check recursively whether a (sub)tree of a dataset's metadata matches a requested search subtree.

    Check recursively whether a (sub)tree of a dataset's metadata matches a requested search subtree.

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  108. def searchUserMetadata(id: UUID, requestedMetadataQuery: Any): Boolean

    Check recursively whether a dataset's user-input metadata match a requested search tree.

    Check recursively whether a dataset's user-input metadata match a requested search tree.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  109. def searchUserMetadataFormulateQuery(requestedMetadataQuery: Any): List[Dataset]

    Definition Classes
    MongoDBDatasetServiceDatasetService
  110. def selectNewThumbnailFromFiles(datasetId: UUID): Unit

    Definition Classes
    MongoDBDatasetServiceDatasetService
  111. def setUserMetadataWasModified(id: UUID, wasModified: Boolean): Unit

    Definition Classes
    MongoDBDatasetServiceDatasetService
  112. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  113. def toJSON(dataset: Dataset): JsValue

  114. def toString(): String

    Definition Classes
    AnyRef → Any
  115. def update(dataset: Dataset): Unit

    Updated dataset.

    Updated dataset.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  116. def updateAuthorFullName(userId: UUID, fullName: String): Unit

    Definition Classes
    MongoDBDatasetServiceDatasetService
  117. def updateDescription(id: UUID, description: String): Unit

    Definition Classes
    MongoDBDatasetServiceDatasetService
  118. def updateInformation(id: UUID, description: String, name: String): Unit

    Implementation of updateInformation defined in services/DatasetService.

    Implementation of updateInformation defined in services/DatasetService.scala.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  119. def updateLicense(id: UUID, licenseType: String, rightsHolder: String, licenseText: String, licenseUrl: String, allowDownload: String): Unit

    Implementation of updateLicenseing defined in services/DatasetService.

    Implementation of updateLicenseing defined in services/DatasetService.scala.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  120. def updateName(id: UUID, name: String): Unit

    Definition Classes
    MongoDBDatasetServiceDatasetService
  121. def updateThumbnail(datasetId: UUID, thumbnailId: UUID): Unit

    Update thumbnail used to represent this dataset.

    Update thumbnail used to represent this dataset.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  122. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DatasetService

Inherited from AnyRef

Inherited from Any

Ungrouped