Class DemoPresentationRepositoryImpl
java.lang.Object
de.digitalcollections.iiif.hymir.presentation.backend.PresentationRepositoryImpl
de.digitalcollections.iiif.demo.repository.DemoPresentationRepositoryImpl
- All Implemented Interfaces:
de.digitalcollections.iiif.hymir.presentation.backend.api.PresentationRepository
@Primary
@Repository
public class DemoPresentationRepositoryImpl
extends de.digitalcollections.iiif.hymir.presentation.backend.PresentationRepositoryImpl
IIIF Presentation repository for all manifests.
-
Constructor Summary
Constructors Constructor Description DemoPresentationRepositoryImpl() -
Method Summary
Modifier and Type Method Description java.lang.StringgetResourceJson(de.digitalcollections.model.api.identifiable.resource.FileResource resource)java.lang.StringreplaceUrlEndpoints(java.lang.String json)voidsetServerUrl(java.lang.String serverUrl)
-
Constructor Details
-
DemoPresentationRepositoryImpl
public DemoPresentationRepositoryImpl()
-
-
Method Details
-
getResourceJson
public java.lang.String getResourceJson(de.digitalcollections.model.api.identifiable.resource.FileResource resource) throws de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceIOException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException- Overrides:
getResourceJsonin classde.digitalcollections.iiif.hymir.presentation.backend.PresentationRepositoryImpl- Throws:
de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceIOExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
-
setServerUrl
public void setServerUrl(java.lang.String serverUrl) -
replaceUrlEndpoints
public java.lang.String replaceUrlEndpoints(java.lang.String json)
-