mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 23:13:10 +00:00
Add attributions to the main iiif classes
This commit is contained in:
@@ -23,6 +23,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* Controller for IIIF Presentation and Search API.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/iiif")
|
||||
|
@@ -27,6 +27,9 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* IIIF Service facade to support IIIF Presentation and Search API requests.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
@Service
|
||||
public class IIIFServiceFacade {
|
||||
|
@@ -14,6 +14,9 @@ import de.digitalcollections.iiif.model.enums.ViewingHint;
|
||||
* displaying the resource.
|
||||
*
|
||||
* With IIIF Presentation API 3.0 the viewingHint property is renamed to "behavior".
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
public class BehaviorGenerator implements IIIFValue {
|
||||
|
||||
|
@@ -18,6 +18,9 @@ import de.digitalcollections.iiif.model.sharedcanvas.Resource;
|
||||
|
||||
/**
|
||||
* This generator wraps the domain model for a single {@code Canvas}.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
public class CanvasGenerator implements IIIFResource {
|
||||
|
||||
|
@@ -25,6 +25,9 @@ import org.springframework.web.context.annotation.RequestScope;
|
||||
*
|
||||
* <p>Sequence is removed with Presentation API version 3.0. Canvases are added to the Manifest items property instead.
|
||||
* </p>
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
@RequestScope
|
||||
@Component
|
||||
|
@@ -18,6 +18,9 @@ import de.digitalcollections.iiif.model.sharedcanvas.Resource;
|
||||
* Presentation API version 2.1.1: The ImageContent entity is contained in the "resource"
|
||||
* field of annotations with motivation "sc:painting". Image resources, and only image resources,
|
||||
* are included in the image's property of the canvas. This changes in API version 3.0.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
public class ImageContentGenerator implements IIIFResource {
|
||||
|
||||
|
@@ -13,6 +13,9 @@ import de.digitalcollections.iiif.model.image.ImageService;
|
||||
/**
|
||||
* This service generator wraps the image service property model. An image service
|
||||
* annotation is added to each canvas annotation.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
public class ImageServiceGenerator implements IIIFService {
|
||||
|
||||
|
@@ -39,6 +39,9 @@ import org.springframework.web.context.annotation.RequestScope;
|
||||
*
|
||||
* Please note that this is a request scoped bean. This means that for each http request a
|
||||
* different instance will be initialized by Spring and used to serve this specific request.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
@RequestScope
|
||||
@Component
|
||||
|
@@ -13,6 +13,9 @@ import org.dspace.core.I18nUtil;
|
||||
|
||||
/**
|
||||
* Wraps the domain model metadata property.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
public class MetadataEntryGenerator implements IIIFValue {
|
||||
|
||||
|
@@ -24,6 +24,9 @@ import org.dspace.app.iiif.service.RangeService;
|
||||
*
|
||||
* This is used to populate the "structures" element of the Manifest. The structure is derived from the iiif.toc
|
||||
* metadata and the ordered sequence of bitstreams (canvases)
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
public class RangeGenerator implements IIIFResource {
|
||||
|
||||
|
@@ -17,6 +17,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
/**
|
||||
* Base class for services.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
public abstract class AbstractResourceService {
|
||||
/**
|
||||
|
@@ -31,6 +31,9 @@ import org.springframework.web.context.annotation.RequestScope;
|
||||
* This service provides methods for creating an {@code Annotation List}. There should be a single instance of
|
||||
* this service per request. The {@code @RequestScope} provides a single instance created and available during
|
||||
* complete lifecycle of the HTTP request.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
@RequestScope
|
||||
@Component
|
||||
|
@@ -24,6 +24,9 @@ import org.springframework.web.context.annotation.RequestScope;
|
||||
* This service provides methods for creating a single {@code Canvas}. There should be a single instance of
|
||||
* this service per request. The {@code @RequestScope} provides a single instance created and available during
|
||||
* complete lifecycle of the HTTP request.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
@RequestScope
|
||||
@Component
|
||||
|
@@ -35,6 +35,9 @@ import org.springframework.web.context.annotation.RequestScope;
|
||||
* This service provides methods for creating {@code Canvases}. There should be a single instance of
|
||||
* this service per request. The {@code @RequestScope} provides a single instance created and available during
|
||||
* complete lifecycle of the HTTP request.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
@RequestScope
|
||||
@Component
|
||||
|
@@ -20,6 +20,9 @@ import org.springframework.web.context.annotation.RequestScope;
|
||||
* This service provides methods for creating a {@code Image Resource} annotation. There should be a single instance of
|
||||
* this service per request. The {@code @RequestScope} provides a single instance created and available during
|
||||
* complete lifecycle of the HTTP request.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
@RequestScope
|
||||
@Component
|
||||
|
@@ -43,6 +43,9 @@ import org.springframework.web.context.annotation.RequestScope;
|
||||
* prototype (that will turn in a request scope when injected in a request scope
|
||||
* bean). The generators for top-level domain objects need to be request scoped as they act as a builder
|
||||
* storing the object state during each incremental building step until the final object is returned (IIIF Resource).
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
@RequestScope
|
||||
@Component
|
||||
|
@@ -17,6 +17,9 @@ import org.springframework.web.context.annotation.RequestScope;
|
||||
* This service provides methods for creating a {@code Range}. There should be a single instance of this service
|
||||
* per request. The {@code @RequestScope} provides a single instance created and available during complete lifecycle
|
||||
* of the HTTP request.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
@RequestScope
|
||||
@Component
|
||||
|
@@ -17,6 +17,9 @@ import org.springframework.web.context.annotation.RequestScope;
|
||||
* This service provides methods for creating a {@code related} annotation. There should be a single instance of
|
||||
* this service per request. The {@code @RequestScope} provides a single instance created and available during
|
||||
* complete lifecycle of the HTTP request.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
@RequestScope
|
||||
@Component
|
||||
|
@@ -18,6 +18,9 @@ import org.springframework.web.context.annotation.RequestScope;
|
||||
* This service provides methods for creating {@code seAlso} external link. There should be a single instance of
|
||||
* this service per request. The {@code @RequestScope} provides a single instance created and available during
|
||||
* complete lifecycle of the HTTP request.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
@RequestScope
|
||||
@Component
|
||||
|
@@ -23,6 +23,9 @@ import org.springframework.web.context.annotation.RequestScope;
|
||||
* This service provides methods for creating a {@code Sequence}. There should be a single instance of
|
||||
* this service per request. The {@code @RequestScope} provides a single instance created and available during
|
||||
* complete lifecycle of the HTTP request.
|
||||
*
|
||||
* @author Michael Spalti mspalti@willamette.edu
|
||||
* @author Andrea Bollini (andrea.bollini at 4science.it)
|
||||
*/
|
||||
@RequestScope
|
||||
@Component
|
||||
|
Reference in New Issue
Block a user