Class ServiceSurvey

  • All Implemented Interfaces:
    org.silverpeas.core.web.rs.ProtectedWebResource, org.silverpeas.core.web.rs.WebAuthenticationValidation, org.silverpeas.core.web.rs.WebAuthorizationValidation, org.silverpeas.core.web.SilverpeasWebResource

    @WebService
    @Authorized
    @Path("mobile/survey/{appId}")
    public class ServiceSurvey
    extends AbstractRestWebService
    Service de gestion des news.
    Author:
    svu
    • Constructor Detail

      • ServiceSurvey

        public ServiceSurvey()
    • Method Detail

      • getSurveys

        @GET
        @Produces("application/json")
        @Path("all/")
        public List<SurveyDTO> getSurveys()
      • saveSurvey

        @POST
        @Produces("application/json")
        @Consumes("application/json")
        @Path("")
        public void saveSurvey​(SurveyDetailDTO data)
      • getSurvey

        @GET
        @Produces("application/json")
        @Path("{id}/")
        public SurveyDetailDTO getSurvey​(@PathParam("id")
                                         String id)
      • getResourceBasePath

        protected String getResourceBasePath()
        Specified by:
        getResourceBasePath in class org.silverpeas.core.web.rs.RESTWebService
      • getComponentId

        public String getComponentId()