Class ServiceNews

  • 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/news/{appId}")
    public class ServiceNews
    extends AbstractRestWebService
    • Constructor Detail

      • ServiceNews

        public ServiceNews()
    • Method Detail

      • updateNews

        @PUT
        @Consumes("application/json")
        @Path("update")
        public void updateNews​(NewsDTO news)
      • createNews

        @POST
        @Consumes("application/json")
        @Path("create")
        public NewsDTO createNews​(NewsDTO news)
      • getNews

        @GET
        @Produces("application/json")
        @Path("all")
        public List<NewsDTO> getNews()
      • getNewsByPubId

        @GET
        @Produces("application/json")
        @Path("byPubId/{pubId}")
        public NewsDTO getNewsByPubId​(@PathParam("appId")
                                      String appId,
                                      @PathParam("pubId")
                                      String pubId)
      • getResourceBasePath

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

        public String getComponentId()