Class 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 Detail

      • ContentSearchGenerator

        public ContentSearchGenerator()
    • Method Detail

      • 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