Class ChangeDiscoveryResource
java.lang.Object
io.goobi.viewer.api.rest.v1.records.ChangeDiscoveryResource
- Author:
- florian
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionde.intranda.api.iiif.discovery.OrderedCollection<de.intranda.api.iiif.discovery.Activity>
Provides a view of the entire list of all activities by linking to the first and last page of the collection.de.intranda.api.iiif.discovery.OrderedCollectionPage<de.intranda.api.iiif.discovery.Activity>
getPage
(int pageNo) Provides a partial list ofActivities
along with links to the preceding and succeeding page as well as the parent collection as provided by/iiif/discovery/activities/
The number of Activities on the page is determined byConfiguration#getIIIFDiscoveryAvtivitiesPerPage()
-
Constructor Details
-
ChangeDiscoveryResource
public ChangeDiscoveryResource()
-
-
Method Details
-
getAllChanges
@GET @Produces("application/json") public de.intranda.api.iiif.discovery.OrderedCollection<de.intranda.api.iiif.discovery.Activity> getAllChanges() throws PresentationException, IndexUnreachableExceptionProvides a view of the entire list of all activities by linking to the first and last page of the collection. The pages contain the actual activity entries and are provided by/iiif/discovery/activities/<pageNo>/
. This resource also contains a count of the total number of activities- Returns:
- An
OrderedCollection
ofActivities
- Throws:
PresentationException
- if any.IndexUnreachableException
- if any.
-
getPage
@GET @Path("/{pageNo}") @Produces("application/json") public de.intranda.api.iiif.discovery.OrderedCollectionPage<de.intranda.api.iiif.discovery.Activity> getPage(@PathParam("pageNo") int pageNo) throws PresentationException, IndexUnreachableException Provides a partial list ofActivities
along with links to the preceding and succeeding page as well as the parent collection as provided by/iiif/discovery/activities/
The number of Activities on the page is determined byConfiguration#getIIIFDiscoveryAvtivitiesPerPage()
- Parameters:
pageNo
- The page number, starting with 0- Returns:
- An
OrderedCollectionPage
ofActivities
- Throws:
PresentationException
- if any.IndexUnreachableException
- if any.
-