public class AlbumDataImpl extends GphotoDataImpl implements AlbumData
ExtensionPoint and uses it to provide all of the methods that
AlbumData specifies. These methods are handled by using
extension classes to retrieve or set extensions of the appropriate type.ALBUM_CATEGORY, ALBUM_KIND, KIND| Constructor and Description |
|---|
AlbumDataImpl(ExtensionPoint extensionPoint)
Construct a new implementation of AlbumGphotoData with the given
extension point as the backing storage for data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearGeoBoundingBox()
Clears the bounding box and removes the extension point.
|
void |
clearPoint()
Clears the point data and removes the extension point.
|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an Extensible
within the target extension profile.
|
java.lang.String |
getAccess()
The access level of the album, either private, protected, or public.
|
java.lang.Long |
getBytesUsed()
The number of bytes that are used by photos in this album.
|
java.lang.Integer |
getCommentCount()
The number of comments on the album.
|
java.lang.Boolean |
getCommentsEnabled()
Whether or not commenting is allowed on this album.
|
java.util.Date |
getDate()
Gets the date on the album, this is the date set by the user.
|
Box |
getGeoBoundingBox()
Gets the bounding box of this entity.
|
Point |
getGeoLocation()
Gets the geo-location of the entity.
|
java.lang.String |
getImageUrl()
Deprecated.
use the media:content element to get the image source.
|
java.lang.String |
getLocation()
The location of the album is a string representing where the photos in
the album where taken.
|
java.util.List<MediaCategory> |
getMediaCategories()
Retrieve the list of media:category elements inside the media:group on
this element.
|
java.util.List<MediaContent> |
getMediaContents()
Retrieve the list of media:content elements inside the media:group on
this element.
|
java.util.List<MediaCredit> |
getMediaCredits()
Retrieve the list of media:credit elements inside the media:group on
this element.
|
MediaGroup |
getMediaGroup()
Retrieve the media:group element on this element.
|
MediaKeywords |
getMediaKeywords()
Retrieve the list of media:keywords elements inside the media:group on
this element.
|
java.util.List<MediaThumbnail> |
getMediaThumbnails()
Retrieve the list of media:thumbnail elements inside the media:group on
this element.
|
java.lang.String |
getName()
The name of the album is its canonicalized title.
|
java.lang.String |
getNickname()
The nickname of the user who owns the album.
|
java.lang.Integer |
getPhotosLeft()
The number of spaces for photos that are available in the album.
|
java.lang.Integer |
getPhotosUsed()
The number of photos that are contained in this album.
|
java.lang.String |
getThumbnail()
Deprecated.
use the media:thumbnail element to get thumbnails.
|
java.lang.String |
getUsername()
The username of the owner of the album.
|
void |
setAccess(java.lang.String access)
Set the access for the album this entry represents.
|
void |
setBytesUsed(java.lang.Long bytesUsed)
Set the number of bytes used in the album this entry represents.
|
void |
setCommentCount(java.lang.Integer commentCount)
Set the number of comments on the album this entry represents.
|
void |
setCommentsEnabled(java.lang.Boolean commentsEnabled)
Set the whether comments are enabled in the album this entry represents.
|
void |
setDate(java.util.Date date)
Sets the date on the album, this is the user-defined date.
|
void |
setGeoBoundingBox(Box boundingBox)
Sets the bounding box for this entity based on a
Box extension. |
void |
setGeoBoundingBox(Point lowerLeft,
Point upperRight)
Sets the bounding box based on two
Point objects. |
void |
setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
Sets the geo-location of the entity based on the lat and long coordinates
passed in.
|
void |
setGeoLocation(Point point)
Sets the geo-location of the entity based on the Point extension.
|
void |
setImageUrl(java.lang.String imageUrl)
Deprecated.
set the media:content element with the image source.
|
void |
setKeywords(MediaKeywords keywords)
Set the media keywords on this element to the given keywords.
|
void |
setLocation(java.lang.String location)
Set the location for the album this entry represents.
|
void |
setName(java.lang.String name)
Set the name for the album this entry represents.
|
void |
setNickname(java.lang.String nickname)
Set the nickname for the owner of the album this entry represents.
|
void |
setPhotosLeft(java.lang.Integer photosLeft)
Set the number of photos remaining in the album this entry represents.
|
void |
setPhotosUsed(java.lang.Integer photosUsed)
Set the number of photos used on the album this entry represents.
|
void |
setThumbnail(java.lang.String thumbUrl)
Deprecated.
use the media:thumbnail element to set thumbnails.
|
void |
setUsername(java.lang.String username)
Set the username for the owner of the album this entry represents.
|
addExtension, addRepeatingExtension, declare, getExtension, getGphotoId, getRepeatingExtension, getSimpleValue, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setGphotoId, setGphotoIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGphotoId, setGphotoId, setGphotoIdaddExtension, addRepeatingExtension, removeExtension, removeExtension, removeRepeatingExtension, setExtensionpublic AlbumDataImpl(ExtensionPoint extensionPoint)
public void declareExtensions(ExtensionProfile extProfile)
ExtensibleExtensionPoint.declareExtensions(ExtensionProfile).declareExtensions in interface ExtensibledeclareExtensions in class GphotoDataImplextProfile - the ExtensionProfile to initialize.@Deprecated public java.lang.String getThumbnail()
@Deprecated public void setThumbnail(java.lang.String thumbUrl)
thumbUrl - the full url to the thumbnail.@Deprecated public java.lang.String getImageUrl()
@Deprecated public void setImageUrl(java.lang.String imageUrl)
imageUrl - the full url to the image.public java.lang.String getName()
AlbumDatapublic void setName(java.lang.String name)
public java.lang.String getLocation()
AlbumDatagetLocation in interface AlbumDatapublic void setLocation(java.lang.String location)
setLocation in interface AlbumDatalocation - the location of the album.public java.util.Date getDate()
public void setDate(java.util.Date date)
public java.lang.String getAccess()
AlbumDatapublic void setAccess(java.lang.String access)
public java.lang.Integer getPhotosUsed()
AlbumDatagetPhotosUsed in interface AlbumDatapublic void setPhotosUsed(java.lang.Integer photosUsed)
setPhotosUsed in interface AlbumDataphotosUsed - the number of photos used.public java.lang.Integer getPhotosLeft()
AlbumDatagetPhotosLeft in interface AlbumDatapublic void setPhotosLeft(java.lang.Integer photosLeft)
setPhotosLeft in interface AlbumDataphotosLeft - the number of photos left.public java.lang.Long getBytesUsed()
AlbumDatagetBytesUsed in interface AlbumDatapublic void setBytesUsed(java.lang.Long bytesUsed)
setBytesUsed in interface AlbumDatabytesUsed - the number of bytes used.public java.lang.String getUsername()
AlbumDatagetUsername in interface AlbumDatapublic void setUsername(java.lang.String username)
setUsername in interface AlbumDatausername - the username of the owner.public java.lang.String getNickname()
AlbumDatagetNickname in interface AlbumDatapublic void setNickname(java.lang.String nickname)
setNickname in interface AlbumDatanickname - the nickname of the owner.public java.lang.Boolean getCommentsEnabled()
AlbumDatagetCommentsEnabled in interface AlbumDatapublic void setCommentsEnabled(java.lang.Boolean commentsEnabled)
setCommentsEnabled in interface AlbumDatacommentsEnabled - true if comments are enabled in the album.public java.lang.Integer getCommentCount()
AlbumDatagetCommentCount in interface AlbumDatapublic void setCommentCount(java.lang.Integer commentCount)
setCommentCount in interface AlbumDatacommentCount - the number of comments on the album.public void setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
PointDatasetGeoLocation in interface PointDatalat - The latitude coordinate, between -90 and 90 degrees.lon - The longitude coordinate, between -180 and 180 degrees.public void setGeoLocation(Point point)
PointDatasetGeoLocation in interface PointDatapoint - A point containing the latitude and longitude coordinates.public Point getGeoLocation()
PointDatagetGeoLocation in interface PointDatapublic Box getGeoBoundingBox()
BoxDatagetGeoBoundingBox in interface BoxDatapublic void setGeoBoundingBox(Point lowerLeft, Point upperRight)
BoxDataPoint objects. If there is an
existing Box on this object, the new points will be copied into the
existing box rather than creating a new box.setGeoBoundingBox in interface BoxDatalowerLeft - the lower left coordinate of the box.upperRight - the upper right coordinate of the box.public void setGeoBoundingBox(Box boundingBox)
BoxDataBox extension. If
there is an existing Box on this object, the new box will have its points
copied into the existing box rather than using the passed-in box.setGeoBoundingBox in interface BoxDataboundingBox - the box that bounds this entity.public void clearPoint()
PointDataclearPoint in interface PointDatapublic void clearGeoBoundingBox()
BoxDataclearGeoBoundingBox in interface BoxDatapublic MediaGroup getMediaGroup()
MediaDatagetMediaGroup in interface MediaDatapublic java.util.List<MediaContent> getMediaContents()
MediaDatagetMediaContents in interface MediaDatapublic java.util.List<MediaCategory> getMediaCategories()
MediaDatagetMediaCategories in interface MediaDatapublic java.util.List<MediaCredit> getMediaCredits()
MediaDatagetMediaCredits in interface MediaDatapublic java.util.List<MediaThumbnail> getMediaThumbnails()
MediaDatagetMediaThumbnails in interface MediaDatapublic MediaKeywords getMediaKeywords()
MediaDatanull will be returned.getMediaKeywords in interface MediaDatanull.public void setKeywords(MediaKeywords keywords)
MediaDatasetKeywords in interface MediaData