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@RequestScopeprovides a single instance created and available during complete lifecycle of the HTTP request.
-
-
Constructor Summary
Constructors Constructor Description ContentSearchGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.iiif.model.ServicegenerateService()Creates and returns a service modelvoidsetIdentifier(@NotNull String identifier)Mandatory URI for search service.voidsetLabel(String label)Optional label for the search service.
-
-
-
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:IIIFServiceCreates and returns a service model- Specified by:
generateServicein interfaceIIIFService- Returns:
- a service model
-
-