public interface AlbumService
| Modifier and Type | Interface and Description |
|---|---|
static class |
AlbumService.NotImplementedAlbumService |
| Modifier and Type | Method and Description |
|---|---|
Future<Void> |
createAlbum(UserId userId,
String appId,
Album album,
SecurityToken token)
Creates an album for the given user.
|
Future<Void> |
deleteAlbum(UserId userId,
String appId,
String albumId,
SecurityToken token)
Deletes a single album for the given user with the given album ID.
|
Future<Album> |
getAlbum(UserId userId,
String appId,
Set<String> fields,
String albumId,
SecurityToken token)
Retrieves a single album for the given user with the given album ID.
|
Future<RestfulCollection<Album>> |
getAlbums(Set<UserId> userIds,
GroupId groupId,
String appId,
Set<String> fields,
CollectionOptions options,
SecurityToken token)
Retrieves albums for the given user and group.
|
Future<RestfulCollection<Album>> |
getAlbums(UserId userId,
String appId,
Set<String> fields,
CollectionOptions options,
Set<String> albumIds,
SecurityToken token)
Retrieves albums for the given user with the given album IDs.
|
Future<Void> |
updateAlbum(UserId userId,
String appId,
Album album,
String albumId,
SecurityToken token)
Updates an album for the given user.
|
Future<Album> getAlbum(UserId userId, String appId, Set<String> fields, String albumId, SecurityToken token) throws ProtocolException
userId - Identifies the person to retrieve the album fromappId - Identifies the application to retrieve the album fromfields - Indicates the fields to return. Empty set implies allalbumId - Identifies the album to retrievetoken - A valid SecurityTokenProtocolExceptionFuture<RestfulCollection<Album>> getAlbums(UserId userId, String appId, Set<String> fields, CollectionOptions options, Set<String> albumIds, SecurityToken token) throws ProtocolException
userId - Identifies the person to retrieve albums forappId - Identifies the application to retrieve albums fromfields - The fields to return; empty set implies alloptions - The sorting/filtering/pagination optionsalbumIds - The set of album ids to fetchtoken - A valid SecurityTokenProtocolExceptionFuture<RestfulCollection<Album>> getAlbums(Set<UserId> userIds, GroupId groupId, String appId, Set<String> fields, CollectionOptions options, SecurityToken token) throws ProtocolException
userIds - Identifies the users to retrieve albums fromgroupId - Identifies the group to retrieve albums fromappId - Identifies the application to retrieve albums fromfields - The fields to return. Empty set implies alloptions - The sorting/filtering/pagination optionstoken - A valid SecurityTokenProtocolExceptionFuture<Void> deleteAlbum(UserId userId, String appId, String albumId, SecurityToken token) throws ProtocolException
userId - Identifies the user to delete the album fromappId - Identifies the application to delete the album fromalbumId - Identifies the album to deletetoken - A valid SecurityTokenProtocolExceptionFuture<Void> createAlbum(UserId userId, String appId, Album album, SecurityToken token) throws ProtocolException
userId - Identifies the user to create the album forappId - Identifies the application to create the album inalbum - The album to createtoken - A valid SecurityTokenProtocolExceptionFuture<Void> updateAlbum(UserId userId, String appId, Album album, String albumId, SecurityToken token) throws ProtocolException
userId - Identifies the user to update the album forappId - Identifies the application to update the album inalbum - Defines the updated albumalbumId - Identifies the ID of the album to updatetoken - A valid SecurityTokenProtocolExceptionCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.