|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.shephertz.app42.paas.sdk.jme.gallery.PhotoService
public class PhotoService
Adds Photo to the created Album on the Cloud All photos for a given Album can be managed through this service. Photos can be uploaded to the cloud. Uploaded photos are accessible through the generated URL. The service also creates a thumbnail for the Photo which has been uploaded.
Album
,
Album.Photo
Constructor Summary | |
---|---|
PhotoService(java.lang.String apiKey,
java.lang.String secretKey,
java.lang.String baseURL)
The costructor for the Service |
Method Summary | |
---|---|
Album |
addPhoto(java.lang.String userName,
java.lang.String albumName,
java.lang.String photoName,
java.lang.String photoDescription,
java.io.InputStream imageIS)
Adds Photo for a particular user and album via Stream. |
Album |
addTagToPhoto(java.lang.String userName,
java.lang.String albumName,
java.lang.String photoName,
java.util.Vector tagList)
Add tags to the Photos for the user in the album. |
java.util.Vector |
getPhotos(java.lang.String userName)
Fetches all the Photos based on the userName |
Album |
getPhotosByAlbumAndPhotoName(java.lang.String userName,
java.lang.String albumName,
java.lang.String photoName)
Fetches the particular photo based on the userName, album name and photo name |
Album |
getPhotosByAlbumName(java.lang.String userName,
java.lang.String albumName)
Fetches all Photos based on the userName and albumName |
Album |
getPhotosByAlbumName(java.lang.String userName,
java.lang.String albumName,
java.lang.Integer max,
java.lang.Integer offset)
Fetches all Photos based on the userName and album name by paging. |
App42Response |
getPhotosCountByAlbumName(java.lang.String userName,
java.lang.String albumName)
Fetches the count of all Photos based on the userName and album name |
java.util.Vector |
getTaggedPhotos(java.lang.String userName,
java.lang.String tag)
Fetches all the Photos based on the userName and tag |
App42Response |
removePhoto(java.lang.String userName,
java.lang.String albumName,
java.lang.String photoName)
Removes the particular Photo from the specified Album for a particular user. |
java.lang.String |
testUpload(java.lang.String path)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PhotoService(java.lang.String apiKey, java.lang.String secretKey, java.lang.String baseURL)
apiKey
- secretKey
- baseURL
- Method Detail |
---|
public Album addPhoto(java.lang.String userName, java.lang.String albumName, java.lang.String photoName, java.lang.String photoDescription, java.io.InputStream imageIS) throws App42Exception
userName
- - Name of the User whose photo has to be addedalbumName
- - Name of the Album in which photo has to be addedphotoName
- - Name of the Photo that has to be addedphotoDescription
- - Description of the Photo that has to be addedinputStream
- - Input Stream for the Photo that has to be added
App42Exception
public Album addTagToPhoto(java.lang.String userName, java.lang.String albumName, java.lang.String photoName, java.util.Vector tagList) throws App42Exception
userName
- - Name of the User whose name has to be tagged to photoalbumName
- - Album name whose photo is to be taggedphotoName
- - Photo name to be taggedtagList
- - List of tages in Photo
App42Exception
public java.util.Vector getPhotos(java.lang.String userName) throws App42Exception
userName
- - Name of the User whose photos have to be fetched
App42Exception
public Album getPhotosByAlbumAndPhotoName(java.lang.String userName, java.lang.String albumName, java.lang.String photoName) throws App42Exception
userName
- - Name of the User whose photo has to be fetchedalbumName
- - Name of the Album from which photo has to be fetchedphotoName
- - Name of the Photo that has to be fetched
App42Exception
public Album getPhotosByAlbumName(java.lang.String userName, java.lang.String albumName) throws App42Exception
userName
- - Name of the User whose photos have to be fetchedalbumName
- - Name of the Album from which photos have to be fetched
App42Exception
public Album getPhotosByAlbumName(java.lang.String userName, java.lang.String albumName, java.lang.Integer max, java.lang.Integer offset) throws App42Exception
userName
- - Name of the User whose photos have to be fetchedalbumName
- - Name of the Album from which photos have to be fetchedmax
- - Maximum number of records to be fetchedoffset
- - From where the records are to be fetched
App42Exception
public App42Response getPhotosCountByAlbumName(java.lang.String userName, java.lang.String albumName) throws App42Exception
userName
- - Name of the User whose count of photos have to be fetchedalbumName
- - Name of the Album from which count of photos have to be
fetched
App42Exception
public java.util.Vector getTaggedPhotos(java.lang.String userName, java.lang.String tag) throws App42Exception
userName
- - Name of the User whose photos have to be fetchedtag
- - tag on which basis photos have to be fetched
App42Exception
public App42Response removePhoto(java.lang.String userName, java.lang.String albumName, java.lang.String photoName) throws App42Exception
userName
- - Name of the User whose photo has to be removedalbumName
- - Name of the Album in which photo has to be removedphotoName
- - Name of the Photo that has to be removed
App42Exception
public java.lang.String testUpload(java.lang.String path) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |