Class ServiceMedia

  • 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/medialib/{appId}")
    public class ServiceMedia
    extends AbstractRestWebService
    Service de gestion des galleries d'images.
    Author:
    svuillet
    • Constructor Detail

      • ServiceMedia

        public ServiceMedia()
    • Method Detail

      • uploadPicture

        @POST
        @Produces("application/json")
        @Consumes("application/json")
        @Path("add/{name}/{data}/{idGallery}/{idAlbum}")
        public void uploadPicture​(@PathParam("name")
                                  String name,
                                  @PathParam("data")
                                  String data,
                                  @PathParam("idGallery")
                                  String idGallery,
                                  @PathParam("idAlbum")
                                  String idAlbum)
        Importation d'une image dans un album.
      • getMedia

        @GET
        @Produces("application/json")
        @Path("media/{id}")
        public MediaDTO getMedia​(@PathParam("appId")
                                 String instanceId,
                                 @PathParam("id")
                                 String id)
      • getAlbumsAndPictures

        @GET
        @Produces("application/json")
        @Path("albumsandpics/{rootAlbumId}/{callNumber}")
        public StreamingList<BaseDTO> getAlbumsAndPictures​(@PathParam("appId")
                                                           String instanceId,
                                                           @PathParam("rootAlbumId")
                                                           String rootAlbumId,
                                                           @PathParam("callNumber")
                                                           int callNumber)
      • getSound

        @GET
        @Produces("application/json")
        @Path("sound/{id}")
        public SoundDTO getSound​(@PathParam("appId")
                                 String instanceId,
                                 @PathParam("id")
                                 String soundId)
      • getVideo

        @GET
        @Produces("application/json")
        @Path("video/{videoId}")
        public VideoDTO getVideo​(@PathParam("appId")
                                 String instanceId,
                                 @PathParam("videoId")
                                 String videoId)
      • getVideoStreaming

        @GET
        @Produces("application/json")
        @Path("videostream/{videoId}")
        public VideoStreamingDTO getVideoStreaming​(@PathParam("appId")
                                                   String instanceId,
                                                   @PathParam("videoId")
                                                   String videoId)
      • getPreviewPicture

        @GET
        @Produces("application/json")
        @Path("photo/{pictureId}")
        public PhotoDTO getPreviewPicture​(@PathParam("appId")
                                          String instanceId,
                                          @PathParam("pictureId")
                                          String pictureId)
        Retourne la photo preview.
      • getResourceBasePath

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

        public String getComponentId()