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>
getAllChanges
(String startDate, String filterQuery) 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>
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/
.
-
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(@QueryParam("start") String startDate, @QueryParam("filter") String filterQuery) throws PresentationException, IndexUnreachableException Provides 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- Parameters:
startDate
- If not null, must have the form 'yyyy-MM-dd'. Then only activities at or after this date will be listedfilterQuery
- If not null or empty, must be a valid SOLR query string which is used to filter the results- 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, @QueryParam("start") String startDate, @QueryParam("filter") String filterQuery) 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 0startDate
- If not null, must have the form 'yyyy-MM-dd'. Then only activities at or after this date will be listedfilterQuery
- If not null or empty, must be a valid SOLR query string which is used to filter the results- Returns:
- An
OrderedCollectionPage
ofActivities
- Throws:
PresentationException
- if any.IndexUnreachableException
- if any.
-