public class Album extends Resource<com.google.gdata.data.photos.AlbumEntry> implements java.io.Serializable
Constructor and Description |
---|
Album()
Creates an empty album
|
Album(java.lang.String name)
Creates an empty album with a given name
|
Modifier and Type | Method and Description |
---|---|
void |
addMedia(Media e,
boolean singleAdd)
Add a media to the album
|
java.lang.String |
getAccess()
Get the access level to this album
|
java.util.Date |
getDate()
Get the Date the album was taken
|
com.google.gdata.data.photos.AlbumEntry |
getEntry()
Get the entry of the album (to match Picasa albums)
|
Media
|
getMediaByTitle(java.lang.String name)
Get a media in the album described by his title
|
java.util.ArrayList<Media> |
getMedias()
Get all medias in the album
|
int |
getOnlineSize()
Get the real online size (useful for albums being downloaded in
threads)
|
void |
loadOnlineData()
Load all online data in a thread : download all album & medias data
|
void |
removeMedia(Media e)
Remove a media from the album
|
void |
setAccess(java.lang.String access)
Set the access level to this album
|
void |
setDate(java.util.Date d)
Set the Date the album was taken
|
void |
setEntry(com.google.gdata.data.photos.AlbumEntry entry)
Set the entry of the album
|
int |
size()
Get the media size
|
void |
synchronizeNewAlbum()
Synchronize an album with Picasa A local album is uploaded, an online
album is downloaded
|
void |
synchronizeWithDisk()
Scan local folder to find newly added medias
|
void |
synchronizeWithPicasa()
Check for synchronized albums if all values are the same locally and
remotely
|
delete,
downloadTags,
getDescription,
getGeoLocation,
getId, getResourcePath,
getSerialEntry,
getStatus,
getTags, getThumbnailPath,
getTitle,
resetTags,
save, save,
setDescription,
setGeoLocation,
setId,
setResourcePath,
setSerialEntry,
setStatus,
setTags,
setThumbnailPath,
setTitle,
setTitle
public Album() throws java.net.URISyntaxException
java.net.URISyntaxException
public Album(java.lang.String name) throws java.net.URISyntaxException
name
- name of the albumjava.net.URISyntaxException
public Media getMediaByTitle(java.lang.String name)
name
- title of the mediapublic void addMedia(Media e, boolean singleAdd)
e
- media to addsingleAdd
- indicate if you add a single media, from drag'n drop or
contextual "Add media" menu, to upload it if true (different
from batch addMedia calls)
public void removeMedia(Media e)
e
- media to removepublic int size()
public java.util.ArrayList<Media> getMedias()
public com.google.gdata.data.photos.AlbumEntry getEntry()
public void setEntry(com.google.gdata.data.photos.AlbumEntry entry)
public java.lang.String getAccess()
public void setAccess(java.lang.String access)
access
- access (private, protected or public)public java.util.Date getDate()
public void setDate(java.util.Date d)
public void synchronizeNewAlbum() throws java.io.IOException, com.google.gdata.util.ServiceException, java.net.URISyntaxException
java.io.IOException
com.google.gdata.util.ServiceException
java.net.URISyntaxException
public int getOnlineSize() throws java.io.IOException, com.google.gdata.util.ServiceException
java.io.IOException
com.google.gdata.util.ServiceException
public void synchronizeWithPicasa() throws java.io.IOException, com.google.gdata.util.ServiceException
com.google.gdata.util.ServiceException
java.io.IOException
public void synchronizeWithDisk() throws java.io.IOException, com.google.gdata.util.ServiceException, java.net.URISyntaxException
com.google.gdata.util.ServiceException
java.io.IOException
java.net.URISyntaxException
public void loadOnlineData() throws java.io.IOException, com.google.gdata.util.ServiceException, java.net.URISyntaxException
java.io.IOException
com.google.gdata.util.ServiceException
java.net.URISyntaxException