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)

    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 addTags(id: UUID, userIdStr: Option[String], eid: Option[String], tags: List[String]): Unit

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

    Associate a dataset with a space

    Associate a dataset with a space

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

    Definition Classes
    Any
  15. def clone(): AnyRef

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

    Count all datasets

    Count all datasets

    Definition Classes
    MongoDBDatasetServiceDatasetService
  17. 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
  18. def countCollection(collection: String): Long

    Count all datasets in a collection

    Count all datasets in a collection

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

    Count all datasets in a space

    Count all datasets in a space

    Definition Classes
    MongoDBDatasetServiceDatasetService
  20. 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
  21. def createThumbnail(datasetId: UUID): Unit

    Set new thumbnail.

    Set new thumbnail.

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

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

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

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

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

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

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

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

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

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

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

    Get dataset.

    Get dataset.

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

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  35. 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
  36. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  37. def incrementMetadataCount(id: UUID, count: Long): Unit

    Change the metadataCount field for a dataset

    Change the metadataCount field for a dataset

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  39. def index(id: Option[UUID]): Unit

    Index dataset, if no id provided, index all datasets.

    Index dataset, if no id provided, index all datasets.

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

    Insert dataset.

    Insert dataset.

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

    Check if dataset belongs to a collection.

    Check if dataset belongs to a collection.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  42. 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
  43. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. def listUser(user: User): List[Dataset]

    Return a list of datasets a user can View.

    Return a list of datasets a user can View.

    Definition Classes
    MongoDBDatasetServiceDatasetService
  66. 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
  67. 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
  68. def listUserTrash(user: Option[User], limit: Integer): List[Dataset]

    Definition Classes
    MongoDBDatasetServiceDatasetService
  69. 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
  70. 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
  71. 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
  72. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  78. 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
  79. def removeDataset(id: UUID): Unit

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

    Remove file from dataset.

    Remove file from dataset.

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

    Remove folder from dataset.

    Remove folder from dataset.

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

    Remove follower from a dataset.

    Remove follower from a dataset.

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

    Remove association between dataset and space

    Remove association between dataset and space

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

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

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  87. 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
  88. def searchMetadataFormulateQuery(requestedMap: LinkedHashMap[String, Any], root: String): MongoDBObject

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

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

  90. def searchUserMetadataFormulateQuery(requestedMetadataQuery: Any): List[Dataset]

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

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

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

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

  95. def toString(): String

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

    Updated dataset.

    Updated dataset.

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

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  99. 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
  100. 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
  101. def updateName(id: UUID, name: String): Unit

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

    Update thumbnail used to represent this dataset.

    Update thumbnail used to represent this dataset.

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DatasetService

Inherited from AnyRef

Inherited from Any

Ungrouped