@@ -42,7 +42,6 @@ public final class GalleryResourceURIs {
42
42
public static final String GALLERY_ALBUMS_URI_PART = "albums" ;
43
43
public static final String GALLERY_PHOTOS_PART = "photos" ;
44
44
public static final String GALLERY_PHOTO_RESOLUTION_PARAM = "resolution" ;
45
- public static final String GALLERY_DOWNLOAD_CONTEXT_PARAM = "downloadContext" ;
46
45
public static final String GALLERY_VIDEOS_PART = "videos" ;
47
46
public static final String GALLERY_SOUNDS_PART = "sounds" ;
48
47
public static final String GALLERY_MEDIA_CONTENT_PART = "content" ;
@@ -101,7 +100,7 @@ public static URI buildMediaContentURI(Media media, MediaResolution mediaResolut
101
100
return null ;
102
101
}
103
102
UriBuilder uriBuilder = SilverpeasWebResource .getBasePathBuilder ().path (GALLERY_BASE_URI )
104
- .path (media .getComponentInstanceId ()).path (media .getType ().getMediaWebUriPart ())
103
+ .path (media .getInstanceId ()).path (media .getType ().getMediaWebUriPart ())
105
104
.path (media .getId ()).path (GALLERY_MEDIA_CONTENT_PART )
106
105
.queryParam ("_t" , media .getLastUpdateDate ().getTime ());
107
106
if (mediaResolution != null && mediaResolution != MediaResolution .ORIGINAL ) {
@@ -121,7 +120,7 @@ public static URI buildMediaEmbedURI(Media media, MediaResolution mediaResolutio
121
120
return null ;
122
121
}
123
122
UriBuilder uriBuilder = SilverpeasWebResource .getBasePathBuilder ().path (GALLERY_BASE_URI )
124
- .path (media .getComponentInstanceId ()).path (media .getType ().getMediaWebUriPart ())
123
+ .path (media .getInstanceId ()).path (media .getType ().getMediaWebUriPart ())
125
124
.path (media .getId ()).path (GALLERY_MEDIA_EMBED_PART );
126
125
if (mediaResolution != null && mediaResolution != MediaResolution .ORIGINAL ) {
127
126
uriBuilder .queryParam (GALLERY_PHOTO_RESOLUTION_PARAM , mediaResolution );
@@ -141,7 +140,7 @@ public static URI buildVideoThumbnailURI(Media media, ThumbnailPeriod thumbnail)
141
140
}
142
141
UriBuilder uriBuilder =
143
142
SilverpeasWebResource .getBasePathBuilder ().path (GALLERY_BASE_URI )
144
- .path (media .getComponentInstanceId ()).path (media .getType ().getMediaWebUriPart ())
143
+ .path (media .getInstanceId ()).path (media .getType ().getMediaWebUriPart ())
145
144
.path (media .getId ()).path (GALLERY_MEDIA_THUMBNAIL_PART )
146
145
.path (Integer .toString (thumbnail .getIndex ()))
147
146
.queryParam ("_t" , media .getLastUpdateDate ().getTime ());
0 commit comments