Class AdopterRegistrationRestService

java.lang.Object
org.opencastproject.adopter.registration.AdopterRegistrationRestService

@Path("/admin-ng/adopter") public class AdopterRegistrationRestService extends Object
The REST endpoint for the adopter statistics service.
  • Field Details

    • docs

      protected String docs
      The rest docs
    • registrationService

      protected AdopterRegistrationServiceImpl registrationService
      The service that provides methods for the registration
  • Constructor Details

    • AdopterRegistrationRestService

      public AdopterRegistrationRestService()
  • Method Details

    • setRegistrationService

      public void setRegistrationService(AdopterRegistrationServiceImpl registrationService)
      OSGi setter for the registration service
    • getRegistrationForm

      @GET @Path("registration") @Produces("application/json") public String 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

      @GET @Produces("text/plain") @Path("latestToU") public String getLatestTermsofUse()
    • getDocs

      @GET @Produces("text/html") @Path("docs") public String getDocs()