services

DatasetService

trait DatasetService extends AnyRef

Generic dataset service.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DatasetService
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def addCollection(datasetId: UUID, collectionId: UUID): Unit

  2. abstract def addCreator(id: UUID, creator: String): Unit

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

  3. abstract def addFile(datasetId: UUID, file: File): Unit

    Add file to dataset.

  4. abstract def addFolder(datasetId: UUID, folderId: UUID): Unit

    Add Folder to dataset.

  5. abstract def addFollower(id: UUID, userId: UUID): Unit

    Add follower to a dataset.

  6. abstract def addTags(id: UUID, userIdStr: Option[String], eid: Option[String], tags: List[String]): Unit

  7. abstract def addToSpace(dataset: UUID, space: UUID): Unit

    Associate a dataset with a space

  8. abstract def count(): Long

    The number of datasets

  9. abstract def countAccess(permisions: Set[Permission], user: Option[User], showAll: Boolean): Long

    Return a count of datasets the user has access to.

  10. abstract def countCollection(collection: String): Long

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

  11. abstract def countSpace(space: String): Long

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

  12. abstract def countUser(user: Option[User], showAll: Boolean, owner: User): Long

    Return a count of datasets the user has created.

  13. abstract def createThumbnail(datasetId: UUID): Unit

    Set new thumbnail.

  14. abstract def dumpAllDatasetGroupings(): List[String]

  15. abstract def findByFileIdAllContain(file_id: UUID): List[Dataset]

  16. abstract def findByFileIdDirectlyContain(file_id: UUID): List[Dataset]

  17. abstract def findByTag(tag: String, start: String, limit: Integer, reverse: Boolean, user: Option[User]): List[Dataset]

  18. abstract def findByTag(tag: String, user: Option[User]): List[Dataset]

  19. abstract def findMetadataChangedDatasets(): List[Dataset]

  20. abstract def findNotContainingFile(file_id: UUID): List[Dataset]

  21. abstract def findOneByFileId(file_id: UUID): Option[Dataset]

  22. abstract def get(id: UUID): Option[Dataset]

    Get dataset.

  23. abstract def getFileId(datasetId: UUID, filename: String): Option[UUID]

    Get the id of a file based on its filename and dataset it belongs to.

  24. abstract def getTags(user: Option[User]): Map[String, Long]

    Return a list of tags and counts found in sections

  25. abstract def incrementDownloads(id: UUID, user: Option[User]): Unit

  26. abstract def incrementMetadataCount(id: UUID, count: Long): Unit

    Change the metadataCount field for a dataset

  27. abstract def incrementViews(id: UUID, user: Option[User]): (Int, Date)

  28. abstract def index(id: UUID): Unit

  29. abstract def index(id: Option[UUID]): Unit

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

  30. abstract def insert(dataset: Dataset): Option[String]

    Insert dataset.

  31. abstract def isInCollection(datasetId: UUID, collectionId: UUID): Boolean

    Check if dataset belongs to a collection.

  32. abstract def isInCollection(dataset: Dataset, collection: Collection): Boolean

    Check if a dataset is in a specific collection.

  33. abstract def listAccess(date: String, nextPage: Boolean, limit: Integer, title: String, permisions: 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.

  34. abstract def listAccess(date: String, nextPage: Boolean, limit: Integer, permisions: 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.

  35. abstract def listAccess(limit: Integer, title: String, permisions: 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.

  36. abstract def listAccess(limit: Integer, permisions: Set[Permission], user: Option[User], showAll: Boolean, showPublic: Boolean, showOnlyShared: Boolean): List[Dataset]

    Return a list of datasets the user has access to.

  37. abstract 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

  38. abstract def listCollection(limit: Integer, collection: String, user: Option[User]): List[Dataset]

    Return a list of datasets in a collection

  39. abstract def listCollection(collection: String, user: Option[User]): List[Dataset]

    Return a list of datasets in a collection

  40. abstract 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

  41. abstract def listCollection(limit: Integer, collection: String): List[Dataset]

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

  42. abstract def listCollection(collection: String): List[Dataset]

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

  43. abstract 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

  44. abstract def listSpace(limit: Integer, space: String, user: Option[User]): List[Dataset]

    Return a list of datasets in a space

  45. abstract 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

  46. abstract def listSpace(limit: Integer, space: String): List[Dataset]

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

  47. abstract def listSpaceAccess(date: String, nextPage: Boolean, limit: Integer, title: String, permisions: 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 with specific title.

  48. abstract def listSpaceAccess(date: String, nextPage: Boolean, limit: Integer, permisions: 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.

  49. abstract def listSpaceAccess(limit: Integer, title: String, permisions: Set[Permission], space: String, user: Option[User], showAll: Boolean, showPublic: Boolean): List[Dataset]

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

  50. abstract def listSpaceAccess(limit: Integer, permisions: 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.

  51. abstract 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

  52. abstract def listSpaceStatus(limit: Integer, space: String, status: String, user: Option[User]): List[Dataset]

    Return a list of datasets in a space filtered by status

  53. abstract 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

  54. abstract def listUser(user: User): List[Dataset]

    Return a list of all the datasets the user can view or has created.

  55. abstract 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.

  56. abstract def listUser(limit: Integer, user: Option[User], showAll: Boolean, owner: User): List[Dataset]

    Return a list of datasets the user has created.

  57. abstract def listUserTrash(user: Option[User], limit: Integer): List[Dataset]

  58. abstract 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.

  59. abstract def listUserTrash(limit: Integer, user: Option[User], showAll: Boolean, owner: User): List[Dataset]

    Return a list of datasets the user has created in trash.

  60. abstract def moveCreator(id: UUID, creator: String, position: Integer): Unit

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

  61. abstract def newThumbnail(datasetId: UUID): Unit

  62. abstract def removeAllTags(id: UUID): Unit

  63. abstract def removeCollection(datasetId: UUID, collectionId: UUID): Unit

  64. abstract def removeCreator(id: UUID, creator: String): Unit

    Remove a creator from the dataset's list of creators

  65. abstract def removeDataset(id: UUID, host: String): Unit

  66. abstract def removeFile(datasetId: UUID, fileId: UUID): Unit

    Remove file from dataset.

  67. abstract def removeFolder(datasetId: UUID, folderId: UUID): Unit

    Remove folder from dataset.

  68. abstract def removeFollower(id: UUID, userId: UUID): Unit

    Remove follower from a dataset.

  69. abstract def removeFromSpace(dataset: UUID, space: UUID): Unit

    Remove association between dataset and space

  70. abstract def removeTag(id: UUID, tagId: UUID): Unit

  71. abstract def removeTags(id: UUID, userIdStr: Option[String], eid: Option[String], tags: List[String]): Unit

  72. abstract def searchAllMetadataFormulateQuery(requestedMetadataQuery: Any): List[Dataset]

  73. abstract 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.

  74. abstract def searchMetadataFormulateQuery(requestedMap: LinkedHashMap[String, Any], root: String): com.mongodb.casbah.Imports.MongoDBObject

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

  76. abstract def selectNewThumbnailFromFiles(datasetId: UUID): Unit

  77. abstract def update(dataset: Dataset): Unit

  78. abstract def updateAuthorFullName(userId: UUID, fullName: String): Unit

  79. abstract def updateDescription(id: UUID, description: String): Unit

  80. abstract def updateInformation(id: UUID, description: String, name: String): Unit

    Update the administrative information associated with the dataset.

    Update the administrative information associated with the dataset. This information includes the owner, the description, and the date created. Currently, only the description is editable. In the future, other items or new data may be added that will be editable.

    id: The id of the dataset description: A String that represents the updated information for the dataset description. name: A String that represents the updated name for this dataset.

  81. abstract def updateLicense(id: UUID, licenseType: String, rightsHolder: String, licenseText: String, licenseUrl: String, allowDownload: String): Unit

    Update the license data that is currently associated with the dataset.

    Update the license data that is currently associated with the dataset.

    id: The id of the dataset licenseType: A String representing the type of license rightsHolder: A String that is the free-text describing the owner of the license. Only required for certain license types licenseText: Text that describes what the license is licenseUrl: A reference to the license information allowDownload: true or false, to allow downloading of the file or dataset. Relevant only for certain license types

  82. abstract def updateName(id: UUID, name: String): Unit

  83. abstract def updateThumbnail(datasetId: UUID, thumbnailId: UUID): Unit

    Update thumbnail used to represent this dataset.

Concrete 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  18. def toString(): String

    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped