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 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 findByFileId(file_id: UUID): List[Dataset]

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

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

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

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

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

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

    Get dataset.

    Get dataset.

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

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

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  40. 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
  41. def getTechnicalMetadataJSON(id: UUID): String

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

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

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  45. def hashCode(): Int

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

    Change the metadataCount field for a dataset

    Change the metadataCount field for a dataset

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  48. 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
  49. def insert(dataset: Dataset): Option[String]

    Insert dataset.

    Insert dataset.

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

    Check if dataset belongs to a collection.

    Check if dataset belongs to a collection.

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

    Definition Classes
    Any
  53. def iteratorCollection(collection: String, user: Option[User]): Iterator[Dataset]

    Return an iterator of datasets in a collection

    Return an iterator of datasets in a collection

    Definition Classes
    MongoDBDatasetServiceDatasetService
  54. def jsonToXML(theJSON: String): File

  55. def listAccess(date: String, nextPage: Boolean, limit: Integer, title: String, 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
  56. 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
  57. def listAccess(limit: Integer, title: String, 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. 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
  79. def modifyRDFOfMetadataChangedDatasets(): Unit

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  81. 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
  82. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

    Remove file from dataset.

    Remove file from dataset.

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

    Remove folder from dataset.

    Remove folder from dataset.

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

    Remove follower from a dataset.

    Remove follower from a dataset.

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

    Remove association between dataset and space

    Remove association between dataset and space

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

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

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

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

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  100. 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
  101. def searchUserMetadataFormulateQuery(requestedMetadataQuery: Any): List[Dataset]

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

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

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

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

  106. def toString(): String

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

    Updated dataset.

    Updated dataset.

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

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  110. 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
  111. 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
  112. def updateName(id: UUID, name: String): Unit

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

    Update thumbnail used to represent this dataset.

    Update thumbnail used to represent this dataset.

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DatasetService

Inherited from AnyRef

Inherited from Any

Ungrouped