Class ContentSearchGenerator
java.lang.Object
org.dspace.app.iiif.model.generator.ContentSearchGenerator
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.digitalcollections.iiif.model.ServiceCreates and returns a service modelvoidsetIdentifier(@NotNull String identifier) Mandatory URI for search service.voidOptional label for the search service.
-
Constructor Details
-
ContentSearchGenerator
public ContentSearchGenerator()
-
-
Method Details
-
setIdentifier
Mandatory URI for search service.- Parameters:
identifier-
-
setLabel
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
-