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

    Add file to dataset.

  3. abstract def addMetadata(id: UUID, json: String): Unit

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

  5. abstract def addUserMetadata(id: UUID, json: String): Unit

  6. abstract def addXMLMetadata(id: UUID, fileId: UUID, json: String): Unit

  7. abstract def count(): Long

    The number of datasets

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

    Set new thumbnail.

  9. abstract def findByFileId(file_id: UUID): List[Dataset]

  10. abstract def findByTag(tag: String): List[Dataset]

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

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

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

  14. abstract def first(): Option[Dataset]

    First dataset in chronological order.

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

    Get dataset.

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

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

  17. abstract def getMetadata(id: UUID): Map[String, Any]

  18. abstract def getTechnicalMetadataJSON(id: UUID): String

  19. abstract def getUserMetadata(id: UUID): Map[String, Any]

  20. abstract def getUserMetadataJSON(id: UUID): String

  21. abstract def getXMLMetadataJSON(id: UUID): String

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

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

    Insert dataset.

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

    Check if dataset belongs to a collection.

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

    Check if a dataset is in a specific collection.

  26. abstract def latest(): Option[Dataset]

    Lastest dataset in chronological order.

  27. abstract def listDatasets(): List[Dataset]

    List all datasets in the system.

  28. abstract def listDatasetsAfter(date: String, limit: Int): List[Dataset]

    List datasets after a specified date.

  29. abstract def listDatasetsBefore(date: String, limit: Int): List[Dataset]

    List datasets before a specified date.

  30. abstract def listDatasetsChronoReverse(): List[Dataset]

    List all datasets in the system in reverse chronological order.

  31. abstract def listInsideCollection(collectionId: UUID): List[Dataset]

  32. abstract def modifyRDFOfMetadataChangedDatasets(): Unit

  33. abstract def modifyRDFUserMetadata(id: UUID, mappingNumber: String = "1"): Unit

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

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

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

  37. abstract def removeDataset(id: UUID): Unit

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

    Remove file from dataset.

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

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

  41. abstract def removeXMLMetadata(id: UUID, fileId: UUID): Unit

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

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

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

  45. abstract def searchUserMetadata(id: UUID, requestedMetadataQuery: Any): Boolean

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

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

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

  48. abstract def setNotesHTML(id: UUID, notesHTML: String): Unit

  49. abstract def setUserMetadataWasModified(id: UUID, wasModified: Boolean): Unit

  50. abstract def toJSON(dataset: Dataset): JsValue

    Get JSON representation.

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

  52. 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.

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

  54. 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