Class ServiceMedia

java.lang.Object
org.silverpeas.core.web.rs.RESTWebService
org.silverpeas.mobile.server.services.AbstractRestWebService
org.silverpeas.mobile.server.services.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 Details

    • ServiceMedia

      public ServiceMedia()
  • Method Details

    • 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("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("id") String soundId)
    • getVideo

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

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

      @GET @Produces("application/json") @Path("photo/{pictureId}") public PhotoDTO getPreviewPicture(@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()