| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.web.RESTWebService
com.silverpeas.gallery.web.AbstractGalleryResource
com.silverpeas.gallery.web.GalleryResource
@Service @RequestScoped @Authorized public class GalleryResource
A REST Web resource giving gallery data.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class com.silverpeas.web.RESTWebService | 
|---|
com.silverpeas.web.RESTWebService.WebProcess<RETURN_VALUE>, com.silverpeas.web.RESTWebService.WebTreatment<RETURN_VALUE> | 
| Field Summary | 
|---|
| Fields inherited from class com.silverpeas.web.RESTWebService | 
|---|
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE | 
| Constructor Summary | |
|---|---|
GalleryResource()
 | 
|
| Method Summary | |
|---|---|
 AlbumEntity | 
getAlbum(String albumId,
         MediaSort sort)
Gets the JSON representation of an album.  | 
 AbstractMediaEntity | 
getPhoto(String albumId,
         String photoId)
Gets the JSON representation of a photo.  | 
 javax.ws.rs.core.Response | 
getPhotoContent(String photoId,
                String size,
                MediaResolution mediaResolution)
Gets the content of a photo.  | 
 AbstractMediaEntity | 
getSound(String albumId,
         String soundId)
Gets the JSON representation of a sound.  | 
 javax.ws.rs.core.Response | 
getSoundContent(String soundId)
Gets the content of a sound.  | 
 com.sun.jersey.api.view.Viewable | 
getSoundEmbed(String soundId)
Gets the embed content of a sound.  | 
 AbstractMediaEntity | 
getStreaming(String albumId,
             String streamingId)
Gets the JSON representation of a streaming.  | 
 StreamingProviderDataEntity | 
getStreamingProviderDataFromStreamingId(String streamingId)
Gets the provider data of a streamin from its url.  | 
 StreamingProviderDataEntity | 
getStreamingProviderDataFromUrl(String url)
Gets the provider data of a streamin from its url.  | 
 AbstractMediaEntity | 
getVideo(String albumId,
         String videoId)
Gets the JSON representation of a video.  | 
 javax.ws.rs.core.Response | 
getVideoContent(String videoId)
Gets the content of a video.  | 
 com.sun.jersey.api.view.Viewable | 
getVideoEmbed(String videoId)
Gets the embed centent of a video.  | 
 javax.ws.rs.core.Response | 
getVideoThumbnail(String videoId,
                  String size,
                  String thumbnailId)
Get the video thumbnail.  | 
| Methods inherited from class com.silverpeas.gallery.web.AbstractGalleryResource | 
|---|
asWebEntity, checkNotFoundStatus, getComponentId, getMediaContent, getMediaEmbed, getMediaEntity, getMediaService, getMediaThumbnail, hasUserMediaAccess, isUserPrivileged, isViewAllPhotoAuthorized, verifyMediaIsInAlbum, verifyUserMediaAccess | 
| Methods inherited from class com.silverpeas.web.RESTWebService | 
|---|
getBundle, getBundleLocation, getGreaterUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getOrganisationController, getUriInfo, getUserDetail, getUserPreferences, getUserRoles, process, validateUserAuthentication, validateUserAuthorization | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public GalleryResource()
| Method Detail | 
|---|
public AlbumEntity getAlbum(String albumId,
                            MediaSort sort)
albumId - the identifier of the photo
public AbstractMediaEntity getPhoto(String albumId,
                                    String photoId)
photoId - the identifier of the photo
public AbstractMediaEntity getVideo(String albumId,
                                    String videoId)
videoId - the identifier of the video
public AbstractMediaEntity getSound(String albumId,
                                    String soundId)
soundId - the identifier of the sound
public AbstractMediaEntity getStreaming(String albumId,
                                        String streamingId)
streamingId - the identifier of the streaming
public javax.ws.rs.core.Response getPhotoContent(String photoId,
                                                 String size,
                                                 MediaResolution mediaResolution)
photoId - the identifier of the photosize - not used for the moment
public javax.ws.rs.core.Response getVideoContent(String videoId)
videoId - the identifier of the video
public javax.ws.rs.core.Response getVideoThumbnail(String videoId,
                                                   String size,
                                                   String thumbnailId)
videoId - the identifier of the videosize - not used for the moment
public javax.ws.rs.core.Response getSoundContent(String soundId)
soundId - the identifier of the sound
public StreamingProviderDataEntity getStreamingProviderDataFromStreamingId(String streamingId)
streamingId - the identifier of the streaming
public StreamingProviderDataEntity getStreamingProviderDataFromUrl(String url)
url - the url of the streaming
public com.sun.jersey.api.view.Viewable getVideoEmbed(String videoId)
videoId - the identifier of the video
public com.sun.jersey.api.view.Viewable getSoundEmbed(String soundId)
soundId - the identifier of the sound
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||