Class ContentSearchGenerator

java.lang.Object
org.dspace.app.iiif.model.generator.ContentSearchGenerator
All Implemented Interfaces:
IIIFService

@RequestScope @Component public class ContentSearchGenerator extends Object implements IIIFService
This generator wraps the search service annotation that is added to the manifest for searchable items. Only a single search service is defined for the manifest. There should be a single instance of this object per request. The @RequestScope provides a single instance created and available during complete lifecycle of the HTTP request.
  • Constructor Details

    • ContentSearchGenerator

      public ContentSearchGenerator()
  • Method Details

    • setIdentifier

      public void setIdentifier(@NotNull @NotNull String identifier)
      Mandatory URI for search service.
      Parameters:
      identifier -
    • setLabel

      public void setLabel(String label)
      Optional label for the search service.
      Parameters:
      label - the search service label.
    • generateService

      public de.digitalcollections.iiif.model.Service generateService()
      Description copied from interface: IIIFService
      Creates and returns a service model
      Specified by:
      generateService in interface IIIFService
      Returns:
      a service model