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 addFile(datasetId: UUID, file: File): Unit

    Add file to dataset.

    Add file to dataset.

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

    Add Folder to dataset.

    Add Folder to dataset.

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

    Add follower to a dataset.

    Add follower to a dataset.

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

    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. def addUserMetadata(id: UUID, json: String): Unit

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

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

    Definition Classes
    Any
  17. def clone(): AnyRef

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

    Count all datasets

    Count all datasets

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

    Count all datasets in a collection

    Count all datasets in a collection

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

    Count all datasets in a space

    Count all datasets in a space

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

    Set new thumbnail.

    Set new thumbnail.

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

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

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

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

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

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

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

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

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

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

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

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

    Get dataset.

    Get dataset.

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

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

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

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

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

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

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  44. def hashCode(): Int

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

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

    Insert dataset.

    Insert dataset.

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

    Check if dataset belongs to a collection.

    Check if dataset belongs to a collection.

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

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

  52. def listAccess(date: String, nextPage: Boolean, limit: Integer, title: String, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: 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
  53. def listAccess(date: String, nextPage: Boolean, limit: Integer, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: 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
  54. def listAccess(limit: Integer, title: String, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: 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
  55. def listAccess(limit: Integer, permissions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. def modifyRDFOfMetadataChangedDatasets(): Unit

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

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

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

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

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

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

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  81. def removeDataset(id: UUID): Unit

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

    Remove file from dataset.

    Remove file from dataset.

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

    Remove folder from dataset.

    Remove folder from dataset.

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

    Remove follower from a dataset.

    Remove follower from a dataset.

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

    Remove association between dataset and space

    Remove association between dataset and space

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

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

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

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

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

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

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

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

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

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

  98. def toString(): String

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

    Updated dataset.

    Updated dataset.

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

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

    Definition Classes
    MongoDBDatasetServiceDatasetService
  102. 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
  103. 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
  104. def updateName(id: UUID, name: String): Unit

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

    Update thumbnail used to represent this dataset.

    Update thumbnail used to represent this dataset.

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DatasetService

Inherited from AnyRef

Inherited from Any

Ungrouped