Package org.ctan.site.services.upload
Interface SubmitService
- All Known Implementing Classes:
Submit11Service
public interface SubmitService
This class contains the submit service interface.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
The classFieldOptions
contains the transport object for field descriptions.static class
The classFields
contains the transport object for field specifications.static class
The classUploadData
contains the transport object for the upload meta data. -
Method Summary
Modifier and TypeMethodDescriptionThe methodgetFields
provides means to retrieve the supported fields and their attributes.This is the getter for the version number.upload
(String api, SubmitService.UploadData data, Archive archive, User user) This method performs a validation and a following upload if the validation has succeeded.validate
(String api, SubmitService.UploadData data, Archive archive) This service method performs a validation and tries to store the data as upload.
-
Method Details
-
getFields
The methodgetFields
provides means to retrieve the supported fields and their attributes.- Parameters:
api
- the number of the requested API- Returns:
- the fields
- Throws:
UnsupportedOperationException
- if a wrong API version is given
-
getVersion
String getVersion()This is the getter for the version number.- Returns:
- the version number
-
upload
This method performs a validation and a following upload if the validation has succeeded.- Parameters:
api
- the version of the APIdata
- the parametersarchive
- the archiveuser
- the authenticated user ornull
- Returns:
- the list of messages
-
validate
This service method performs a validation and tries to store the data as upload.- Parameters:
api
- the version of the APIdata
- the parametersarchive
- the archive- Returns:
- the messages
-