Class AdopterRegistrationRestService
java.lang.Object
org.opencastproject.adopter.registration.AdopterRegistrationRestService
The REST endpoint for the adopter statistics service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe rest docsprotected AdopterRegistrationServiceImplThe service that provides methods for the registration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetDocs()javax.ws.rs.core.Responsejavax.ws.rs.core.Responseregister()javax.ws.rs.core.Responseregister(String organisationName, String departmentName, String firstName, String lastName, String email, String country, String postalCode, String city, String street, String streetNo, boolean contactMe, boolean agreedToPolicy, String systemType, boolean allowsErrorReports, boolean allowsStatistics, boolean registered) voidsetRegistrationService(AdopterRegistrationServiceImpl registrationService) OSGi setter for the registration service
-
Field Details
-
docs
The rest docs -
registrationService
The service that provides methods for the registration
-
-
Constructor Details
-
AdopterRegistrationRestService
public AdopterRegistrationRestService()
-
-
Method Details
-
setRegistrationService
OSGi setter for the registration service -
getRegistrationForm
-
getAdopterStatistics
@GET @Path("summary") @Produces("application/json") public javax.ws.rs.core.Response getAdopterStatistics() -
register
@POST @Path("registration") public javax.ws.rs.core.Response register(@FormParam("organisationName") String organisationName, @FormParam("departmentName") String departmentName, @FormParam("firstName") String firstName, @FormParam("lastName") String lastName, @FormParam("email") String email, @FormParam("country") String country, @FormParam("postalCode") String postalCode, @FormParam("city") String city, @FormParam("street") String street, @FormParam("streetNo") String streetNo, @FormParam("contactMe") boolean contactMe, @FormParam("agreedToPolicy") boolean agreedToPolicy, @FormParam("systemType") String systemType, @FormParam("allowsErrorReports") boolean allowsErrorReports, @FormParam("allowsStatistics") boolean allowsStatistics, @FormParam("registered") boolean registered) -
register
@POST @Path("registration/finalize") public javax.ws.rs.core.Response register() -
isUpToDate
@GET @Produces("text/plain") @Path("isUpToDate") public javax.ws.rs.core.Response isUpToDate() -
deleteRegistrationData
@DELETE @Path("registration") public javax.ws.rs.core.Response deleteRegistrationData() -
getLatestTermsofUse
-
getDocs
-