services

MetadataService

trait MetadataService extends AnyRef

MetadataService for add and query metadata

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MetadataService
  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 addDefinition(definition: MetadataDefinition): Unit

    Add vocabulary definitions *

  2. abstract def addMetadata(metadata: Metadata): UUID

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

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

  4. abstract def copyMetadataSummary(sourceResourceRef: ResourceRef, targetResourceRef: ResourceRef): Unit

    Get the current summary of all metadata actions for this resource

  5. abstract def deleteDefinition(id: UUID): Unit

    Delete vocabulary definitions*

  6. abstract def editDefinition(id: UUID, json: JsValue): Unit

    Edit vocabulary definitions*

  7. abstract def getContextSpace(resourceRef: ResourceRef, space: Option[UUID]): Option[UUID]

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

  8. abstract def getDefinition(id: UUID): Option[MetadataDefinition]

    Get vocabulary based on id *

  9. abstract def getDefinitionByLabelAndSpace(label: String, spaceId: Option[String] = None): Option[MetadataDefinition]

    Get vocabulary based on uri and space *

  10. abstract def getDefinitionByUriAndSpace(uri: String, spaceId: Option[String] = None): Option[MetadataDefinition]

    Get vocabulary based on uri and space *

  11. abstract def getDefinitions(spaceId: Option[UUID] = None): List[MetadataDefinition]

    Vocabulary definitions for user fields *

  12. abstract def getDefinitionsDistinctName(user: Option[User] = None): List[MetadataDefinition]

    Vocabulary definitions with distinct names *

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

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

  14. abstract def getMetadataByAttachTo(resourceRef: ResourceRef): List[Metadata]

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

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

  16. abstract def getMetadataById(id: UUID): Option[Metadata]

    Get Metadata By Id

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

    Get metadata context if available

  18. abstract def getMetadataSummary(resourceRef: ResourceRef, spaceId: Option[UUID]): RdfMetadata

    Get the current summary of all metadata actions for this resource

  19. abstract def makeDefinitionAddable(id: UUID, addable: Boolean): Unit

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

  20. abstract def removeDefinitionsBySpace(spaceId: UUID): Unit

    Remove all metadata definitions related to a space*

  21. abstract def removeMetadata(attachedTo: ResourceRef, term: String, itemId: String, deletedAt: Date, deletor: Agent, spaceId: Option[UUID], host: String): JsValue

    Remove metadata

  22. abstract def removeMetadataByAttachTo(resourceRef: ResourceRef, host: String): Long

    Remove metadata by attachTo

  23. abstract def removeMetadataByAttachToAndExtractor(resourceRef: ResourceRef, extractorName: String, host: String): Long

    Remove metadata by attachTo from a specific extractor

  24. abstract def removeMetadataById(metadataId: UUID): Unit

    Remove metadata

  25. abstract def searchbyKeyInDataset(key: String, datasetId: UUID): List[Metadata]

    Search for metadata that have a key in a dataset *

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

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

    Update author full name*

  28. abstract def updateMetadata(content_ld: JsValue, context: JsValue, attachedTo: ResourceRef, itemId: String, updatedAt: Date, updator: Agent, spaceId: Option[UUID]): JsValue

    Update metadata value

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