public interface MediaService
| Modifier and Type | Method and Description |
|---|---|
String |
createAlbum(String name,
String description)
Creates a new photo album.
|
Album |
getAlbum(String albumId)
Retrieves data for a specific album.
|
byte[] |
getAlbumImage(String albumId)
Retrieves an album's image as an array of bytes.
|
byte[] |
getAlbumImage(String albumId,
ImageType imageType)
Retrieves an album's image as an array of bytes.
|
List<Album> |
getAlbums()
Retrieves a list of albums belonging to the authenticated user.
|
List<Album> |
getAlbums(int offset,
int limit)
Retrieves a list of albums belonging to the authenticated user.
|
List<Album> |
getAlbums(String ownerId)
Retrieves a list of albums belonging to a specific owner (user, page, etc).
|
List<Album> |
getAlbums(String ownerId,
int offset,
int limit)
Retrieves a list of albums belonging to a specific owner (user, page, etc).
|
Photo |
getPhoto(String photoId)
Retrieve data for a specified photo.
|
byte[] |
getPhotoImage(String photoId)
Retrieves a photo's image as an array of bytes.
|
byte[] |
getPhotoImage(String photoId,
ImageType imageType)
Retrieves a photo's image as an array of bytes.
|
List<Photo> |
getPhotos(String objectId)
Retrieves data for up to 25 photos from a specific album or that a user is tagged in.
|
List<Photo> |
getPhotos(String objectId,
int offset,
int limit)
Retrieves photo data from a specific album or that a user is tagged in.
|
Video |
getVideo(String videoId)
Retrieves data for a specific video.
|
byte[] |
getVideoImage(String videoId)
Retrieves a video's image as an array of bytes.
|
byte[] |
getVideoImage(String videoId,
ImageType imageType)
Retrieves a video's image as an array of bytes.
|
List<Video> |
getVideos()
Retrieves a list of up to 25 videos that the authenticated user is tagged in.
|
List<Video> |
getVideos(int offset,
int limit)
Retrieves a list of videos that the authenticated user is tagged in.
|
List<Video> |
getVideos(String userId)
Retrieves a list of up to 25 videos that a specified user is tagged in.
|
List<Video> |
getVideos(String userId,
int offset,
int limit)
Retrieves a list of videos that a specified user is tagged in.
|
List<Album> getAlbums()
Albums for the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_photos" or "friends_photos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Album> getAlbums(int offset, int limit)
offset - the offset into the list of albumslimit - the maximum number of albums to returnAlbums for the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_photos" or "friends_photos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Album> getAlbums(String ownerId)
ownerId - the album owner's IDAlbums for the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_photos" or "friends_photos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Album> getAlbums(String ownerId, int offset, int limit)
ownerId - the album owner's IDoffset - the offset into the list of albumslimit - the maximum number of albums to returnAlbums for the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_photos" or "friends_photos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Album getAlbum(String albumId)
albumId - the album IDAlbum object.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the album is not public and if the user has not granted "user_photos" or
"friends_photos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.String createAlbum(String name, String description)
name - the name of the album.description - the album's description.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_stream" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.byte[] getAlbumImage(String albumId)
albumId - the album IDApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the album is not public and if the user has not granted "user_photos" or
"friends_photos" permission.byte[] getAlbumImage(String albumId, ImageType imageType)
albumId - the album IDimageType - the image type (eg., small, normal, large. square)ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the album is not public and if the user has not granted "user_photos" or
"friends_photos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Photo> getPhotos(String objectId)
objectId - either an album ID or a user IDPhotos in the specified album.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the album is not public and if the user has not granted "user_photos" or
"friends_photos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Photo> getPhotos(String objectId, int offset, int limit)
objectId - either an album ID or a user IDoffset - the offset into the list of photoslimit - the maximum number of photos to returnPhotos in the specified album.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the album is not public and if the user has not granted "user_photos" or
"friends_photos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Photo getPhoto(String photoId)
photoId - the photo's IDPhotoApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the photo is not public and if the user has not granted "user_photos" or
"friends_photos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.byte[] getPhotoImage(String photoId)
photoId - the photo IDApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the photo is not public and if the user has not granted "user_photos" or
"friends_photos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.byte[] getPhotoImage(String photoId, ImageType imageType)
photoId - the photo IDimageType - the image type (eg., small, normal, large. square)ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the photo is not public and if the user has not granted "user_photos" or
"friends_photos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Video> getVideos()
Video belonging to the authenticated user.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_videos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Video> getVideos(int offset, int limit)
offset - the offset into the list of videoslimit - the maximum number of videos to returnVideo belonging to the authenticated user.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_videos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Video> getVideos(String userId)
userId - the ID of the user who is tagged in the videosVideo which the specified user is tagged in.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_videos" or "friends_videos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Video> getVideos(String userId, int offset, int limit)
userId - the ID of the user who is tagged in the videosoffset - the offset into the list of videoslimit - the maximum number of videos to returnVideo which the specified user is tagged in.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_videos" or "friends_videos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Video getVideo(String videoId)
videoId - the ID of the video.Video data.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_videos" or "friends_videos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.byte[] getVideoImage(String videoId)
videoId - the video IDApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_videos" or "friends_videos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.byte[] getVideoImage(String videoId, ImageType imageType)
videoId - the video IDimageType - the image type (eg., small, normal, large. square)ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_videos" or "friends_videos" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Copyright © 2011-2013 Seam Framework. All Rights Reserved.