services.mongodb

MongoDBMetadataService

class MongoDBMetadataService extends MetadataService

MongoDB Metadata Service Implementation

Annotations
@Singleton()
Linear Supertypes
MetadataService, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoDBMetadataService
  2. MetadataService
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoDBMetadataService(contextService: ContextLDService, datasets: DatasetService, files: FileService, folders: FolderService, curations: CurationService)

    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. def addDefinition(definition: MetadataDefinition): Unit

    Add vocabulary definitions, leaving it unchanged if one with a matching label or formal uri exists *

    Add vocabulary definitions, leaving it unchanged if one with a matching label or formal uri exists *

    Definition Classes
    MongoDBMetadataServiceMetadataService
  7. def addMetadata(content_ld: JsValue, context: JsValue, attachedTo: ResourceRef, createdAt: Date, creator: Agent, spaceId: Option[UUID]): JsObject

    Add metadata to the metadata collection and attach to a section /file/dataset/collection

    Add metadata to the metadata collection and attach to a section /file/dataset/collection

    Definition Classes
    MongoDBMetadataServiceMetadataService
  8. def addMetadata(metadata: Metadata): UUID

    Add metadata to the metadata collection and attach to a section /file/dataset/collection

    Add metadata to the metadata collection and attach to a section /file/dataset/collection

    Definition Classes
    MongoDBMetadataServiceMetadataService
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def copyMetadataSummary(sourceResourceRef: ResourceRef, targetResourceRef: ResourceRef): Unit

    Get the current summary of all metadata actions for this resource

    Get the current summary of all metadata actions for this resource

    Definition Classes
    MongoDBMetadataServiceMetadataService
  12. def deleteDefinition(id: UUID): Unit

    Delete vocabulary definitions*

    Delete vocabulary definitions*

    Definition Classes
    MongoDBMetadataServiceMetadataService
  13. def editDefinition(id: UUID, json: JsValue): Unit

    Edit vocabulary definitions*

    Edit vocabulary definitions*

    Definition Classes
    MongoDBMetadataServiceMetadataService
  14. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def generateMetadataSummary(resourceRef: ResourceRef, space: Option[UUID]): RdfMetadata

    First time creation of a metadatasummary doc for this resource - right now this is called dynamically when needed, but could also be called from a database update mechanism for any annotatable resource with cat:user entries.

  18. def getAffectedResources(resourceRef: ResourceRef, currentSpace: Option[UUID]): ListBuffer[ResourceRef]

  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def getContextSpace(resourceRef: ResourceRef, space: Option[UUID]): Option[UUID]

    Get the space (or None) holding the metadata definitions used for this resource

    Get the space (or None) holding the metadata definitions used for this resource

    Definition Classes
    MongoDBMetadataServiceMetadataService
  21. def getDefinition(id: UUID): Option[MetadataDefinition]

    Get vocabulary based on id *

    Get vocabulary based on id *

    Definition Classes
    MongoDBMetadataServiceMetadataService
  22. def getDefinitionByLabelAndSpace(label: String, spaceId: Option[String] = None): Option[MetadataDefinition]

    Get vocabulary based on uri and space *

    Get vocabulary based on uri and space *

    Definition Classes
    MongoDBMetadataServiceMetadataService
  23. def getDefinitionByUriAndSpace(uri: String, spaceId: Option[String] = None): Option[MetadataDefinition]

    Get vocabulary based on uri and space *

    Get vocabulary based on uri and space *

    Definition Classes
    MongoDBMetadataServiceMetadataService
  24. def getDefinitions(spaceId: Option[UUID] = None): List[MetadataDefinition]

    Vocabulary definitions for user fields *

    Vocabulary definitions for user fields *

    Definition Classes
    MongoDBMetadataServiceMetadataService
  25. def getDefinitionsDistinctName(user: Option[User]): List[MetadataDefinition]

    Vocabulary definitions with distinct names *

    Vocabulary definitions with distinct names *

    Definition Classes
    MongoDBMetadataServiceMetadataService
  26. def getDefinitionsMap(defsList: List[MetadataDefinition]): Map[String, String]

  27. def getExtractedMetadataByAttachTo(resourceRef: ResourceRef, extractor: String): List[Metadata]

    Get Extractor metadata by attachTo, from a specific extractor if given

    Get Extractor metadata by attachTo, from a specific extractor if given

    Definition Classes
    MongoDBMetadataServiceMetadataService
  28. def getMetadataByAttachTo(resourceRef: ResourceRef): List[Metadata]

    Get Metadata based on Id of an element (section/file/dataset/collection)

    Get Metadata based on Id of an element (section/file/dataset/collection)

    Definition Classes
    MongoDBMetadataServiceMetadataService
  29. def getMetadataByCreator(resourceRef: ResourceRef, typeofAgent: String): List[Metadata]

    Get metadata based on type i.

    Get metadata based on type i.e. user generated metadata or technical metadata

    Definition Classes
    MongoDBMetadataServiceMetadataService
  30. def getMetadataById(id: UUID): Option[Metadata]

    Get Metadata By Id

    Get Metadata By Id

    Definition Classes
    MongoDBMetadataServiceMetadataService
  31. def getMetadataBycontextId(contextId: UUID): List[Metadata]

  32. def getMetadataContext(metadataId: UUID): Option[JsValue]

    Get metadata context if available *

    Get metadata context if available *

    Definition Classes
    MongoDBMetadataServiceMetadataService
  33. def getMetadataSummary(resourceRef: ResourceRef, space: Option[UUID]): RdfMetadata

    Get the current summary of all metadata actions for this resource

    Get the current summary of all metadata actions for this resource

    Definition Classes
    MongoDBMetadataServiceMetadataService
  34. def hashCode(): Int

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

    Definition Classes
    Any
  36. def makeDefinitionAddable(id: UUID, addable: Boolean): Unit

    Make vocabulary definition appear in "Add Metadata" menu (or not)*

    Make vocabulary definition appear in "Add Metadata" menu (or not)*

    Definition Classes
    MongoDBMetadataServiceMetadataService
  37. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  40. def removeDefinitionsBySpace(spaceId: UUID): Unit

    Remove all metadata definitions related to a space*

    Remove all metadata definitions related to a space*

    Definition Classes
    MongoDBMetadataServiceMetadataService
  41. def removeMetadata(attachedTo: ResourceRef, term: String, itemId: String, deletedAt: Date, deletor: Agent, spaceId: Option[UUID], host: String): JsValue

    Remove metadata, if this metadata does not exist, nothing is executed.

    Remove metadata, if this metadata does not exist, nothing is executed. Return removed metadata

    Definition Classes
    MongoDBMetadataServiceMetadataService
  42. def removeMetadataByAttachTo(resourceRef: ResourceRef, host: String): List[UUID]

    Remove metadata by attachTo

    Remove metadata by attachTo

    Definition Classes
    MongoDBMetadataServiceMetadataService
  43. def removeMetadataByAttachToAndExtractor(resourceRef: ResourceRef, extractorName: String, host: String): List[UUID]

    Remove metadata by attached ID and extractor name *

    Remove metadata by attached ID and extractor name *

    Definition Classes
    MongoDBMetadataServiceMetadataService
  44. def removeMetadataById(id: UUID): Unit

    Remove metadata, if this metadata does not exist, nothing is executed.

    Remove metadata, if this metadata does not exist, nothing is executed. Return removed metadata

    Definition Classes
    MongoDBMetadataServiceMetadataService
  45. def searchbyKeyInDataset(key: String, datasetId: UUID): List[Metadata]

    Search for metadata that have a key in a dataset *

    Search for metadata that have a key in a dataset *

    Definition Classes
    MongoDBMetadataServiceMetadataService
  46. def synchMetadataContext(resourceRef: ResourceRef): Unit

    Updates metadata to match a new contextSpace (derived from the resourceRef and, for Datasets (which can be in more than one space with some plugins), the requested space.

    Updates metadata to match a new contextSpace (derived from the resourceRef and, for Datasets (which can be in more than one space with some plugins), the requested space.

    Definition Classes
    MongoDBMetadataServiceMetadataService
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  48. def toString(): String

    Definition Classes
    AnyRef → Any
  49. def updateAuthorFullName(userId: UUID, fullName: String): Unit

    Update author full name*

    Update author full name*

    Definition Classes
    MongoDBMetadataServiceMetadataService
  50. def updateMetadata(content_ld: JsValue, context: JsValue, attachedTo: ResourceRef, itemId: String, updatedAt: Date, updator: Agent, spaceId: Option[UUID]): JsValue

    Update metadata TODO: implement

    Update metadata TODO: implement

    itemId

    - entry the metadata is attached to

    Definition Classes
    MongoDBMetadataServiceMetadataService
  51. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from MetadataService

Inherited from AnyRef

Inherited from Any

Ungrouped