Package org.ctan.site.resources.upload
Class Upload3Resource
java.lang.Object
org.ctan.site.resources.upload.Upload3Resource
The class
Upload3Resource
contains the controller for the upload
resource.-
Constructor Summary
ConstructorsConstructorDescriptionUpload3Resource
(@NonNull UploadService service) This is the constructor for the classTexArchive3Resource
. -
Method Summary
Modifier and TypeMethodDescriptionThe methodgetAddendum
provides means to retrieve the upload addendum file.The methodgetList
provides means to retrieve the list of unprocessed uploads.The methodgetStatistics
provides means to retrieve the cached upload statistics.The methodgetVersion
provides means to retrieve the version number of the API.
-
Constructor Details
-
Upload3Resource
This is the constructor for the classTexArchive3Resource
.- Parameters:
service
- the underlying service
-
-
Method Details
-
getAddendum
The methodgetAddendum
provides means to retrieve the upload addendum file.- Returns:
- the addendum
-
getList
@GET @Path("/list") public UploadService.IncomingTo getList(@QueryParam("page") Long page, @QueryParam("size") Long size) The methodgetList
provides means to retrieve the list of unprocessed uploads.- Parameters:
page
- the current pagesize
- the page size- Returns:
- the list of upload items
-
getStatistics
@GET @Path("/statistics") @PermitAll @UnitOfWork("siteDb") public Map<String,Integer> getStatistics()The methodgetStatistics
provides means to retrieve the cached upload statistics. The upload statistics contains the number of uploads per month.The statistics are cached and updated every 30 minutes.
- Returns:
- the statistics
-
getVersion
The methodgetVersion
provides means to retrieve the version number of the API.- Returns:
- a Map with a single attribute
version
containing the version number as String.
-