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
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
MAINSESSIONCONTROLLER_ATTRIBUT_NAME, USER_ATTRIBUT_NAMEFields inherited from class org.silverpeas.core.web.rs.RESTWebService
RESPONSE_HEADER_ARRAYSIZEFields inherited from interface org.silverpeas.core.web.SilverpeasWebResource
BASE_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlbumsAndPictures(String instanceId, String rootAlbumId, int callNumber) getPreviewPicture(String pictureId) Retourne la photo preview.protected StringgetVideoStreaming(String videoId) voiduploadPicture(String name, String data, String idGallery, String idAlbum) Importation d'une image dans un album.Methods inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
authenticate, createStreamingList, getMainSessionController, getSettings, initSilverpeasSession, makeStreamingListMethods inherited from class org.silverpeas.core.web.rs.RESTWebService
createWebResourceUri, fromPage, getBundle, getBundleLocation, getHighestUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getLanguage, getOrganisationController, getSilverpeasContext, getUri, getUser, getUserPreferences, getUserRoles, identifiedBy, identifiedBy, initContext, initWebResourceUri, isUserDefined, processMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.silverpeas.core.web.rs.ProtectedWebResource
validateUserAuthorizationMethods inherited from interface org.silverpeas.core.web.rs.WebAuthenticationValidation
validateUserAuthentication
-
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
-
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
-
getVideo
-
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
- Specified by:
getResourceBasePathin classorg.silverpeas.core.web.rs.RESTWebService
-
getComponentId
-