public class AlbumFeed extends GphotoFeed<AlbumFeed> implements AlbumData, AtomData
PhotoEntry or TagEntry kind. The album feed itself also
contains all of the metadata available as part of an AlbumData
object.BaseFeed.FeedHandler, BaseFeed.FeedStateSource.SourceHandler, Source.SourceStateExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandlerentries, entryClass, feedStatexmlBloblocalName, namespaceALBUM_CATEGORY, ALBUM_KIND, KIND| Constructor and Description |
|---|
AlbumFeed()
Constructs a new empty album feed.
|
AlbumFeed(BaseFeed<?,?> sourceFeed)
Constructs a new album feed from a shallow copy of the data in the source
feed.
|
| 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 ExtensionPoint 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()
The date the album was taken.
|
Box |
getGeoBoundingBox()
Gets the bounding box of this entity.
|
Point |
getGeoLocation()
Gets the geo-location of the entity.
|
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.util.List<PhotoEntry> |
getPhotoEntries()
Get a list of entries of the
PhotoEntry kind. |
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.util.List<TagEntry> |
getTagEntries()
Get a list of entries of the
TagEntry kind. |
java.lang.String |
getUsername()
The username of the owner of the album.
|
PhotoEntry |
insertPhoto(MediaSource photoSource)
Insert a photo into this album by inserting a
MediaSource
containing the photo data. |
void |
setAccess(java.lang.String access)
Set the access for the album this data object represents.
|
void |
setBytesUsed(java.lang.Long bytesUsed)
Set the number of bytes used in the album this data object represents.
|
void |
setCommentCount(java.lang.Integer commentCount)
Set the number of comments on the album.
|
void |
setCommentsEnabled(java.lang.Boolean commentsEnabled)
Set the whether comments are enabled in the album.
|
void |
setDate(java.util.Date date)
Set the date of the album.
|
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 |
setKeywords(MediaKeywords keywords)
Set the media keywords on this element to the given keywords.
|
void |
setLocation(java.lang.String location)
Set the location string for where the photos in the album were taken.
|
void |
setName(java.lang.String name)
Set the canonical name of the album.
|
void |
setNickname(java.lang.String nickname)
Set the nickname for the owner of the album this data object represents.
|
void |
setPhotosLeft(java.lang.Integer photosLeft)
Set the number of photos remaining that can be uploaded to this album.
|
void |
setPhotosUsed(java.lang.Integer photosUsed)
Set the number of photos used on the album this data object represents.
|
void |
setUsername(java.lang.String username)
Set the username for the owner of the album this data object represents.
|
generateRss, getDescription, getGphotoId, setDescription, setGphotoId, setGphotoIdinsert, insert, setServiceaddAdaptor, createEntry, generate, generateAtom, generateFeedEnd, generateFeedStart, getAdaptedFeed, getAdaptor, getAdaptors, getCanPost, getEntries, getEntries, getEntryPostLink, getEtag, getFeedBatchLink, getHandler, getItemsPerPage, getKind, getNextLink, getPreviousLink, getSelectedFields, getSelf, getSelfLink, getService, getStartIndex, getTotalResults, getVersionId, insert, parseAtom, parseAtom, parseAtom, readFeed, readFeed, setCanPost, setEntries, setEtag, setItemsPerPage, setKind, setSelectedFields, setStartIndex, setTotalResults, setVersionId, visitChildrenaddHtmlLink, addLink, addLink, generateInnerAtom, getAuthors, getCategories, getContributors, getGenerator, getHtmlLink, getIcon, getId, getLink, getLinks, getLinks, getLogo, getRights, getSubtitle, getTitle, getUpdated, removeLinks, removeLinks, setGenerator, setGenerator, setIcon, setId, setLogo, setRights, setSubtitle, setTitle, setUpdatedaddExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChildconsumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGphotoId, setGphotoId, setGphotoIdaddExtension, addRepeatingExtension, removeExtension, removeExtension, removeRepeatingExtension, setExtensiongetAuthors, getCategories, getContributors, getDescription, getId, getLinks, getRights, getTitle, getUpdated, setDescription, setId, setRights, setTitle, setUpdatedgetGenerator, getLogo, getSubtitle, setGenerator, setLogoaddLink, getAuthors, getCategories, getId, getLink, getLinks, getTitle, getUpdated, removeLinks, removeLinks, setId, setUpdatedpublic AlbumFeed()
public AlbumFeed(BaseFeed<?,?> sourceFeed)
public void declareExtensions(ExtensionProfile extProfile)
BaseFeedThe implementation of this method for BaseFeed will declare any extensions associated with the contained entry type.
declareExtensions in interface Kind.AdaptordeclareExtensions in interface ExtensibledeclareExtensions in class GphotoFeed<AlbumFeed>extProfile - the ExtensionProfile to initialize.ExtensionProfile.addDeclarations(Kind.Adaptor)public PhotoEntry insertPhoto(MediaSource photoSource) throws ServiceException, java.io.IOException
MediaSource
containing the photo data.ServiceExceptionjava.io.IOExceptionpublic java.util.List<PhotoEntry> getPhotoEntries()
PhotoEntry kind.public java.util.List<TagEntry> getTagEntries()
TagEntry kind.public java.lang.String getAccess()
AlbumDatapublic java.lang.Long getBytesUsed()
throws ServiceException
AlbumDatagetBytesUsed in interface AlbumDataServiceExceptionpublic java.lang.Integer getCommentCount()
throws ServiceException
AlbumDatagetCommentCount in interface AlbumDataServiceExceptionpublic java.lang.Boolean getCommentsEnabled()
throws ServiceException
AlbumDatagetCommentsEnabled in interface AlbumDataServiceExceptionpublic java.util.Date getDate()
throws ServiceException
AlbumDatagetDate in interface AlbumDataServiceExceptionpublic java.lang.String getLocation()
AlbumDatagetLocation in interface AlbumDatapublic java.lang.String getName()
AlbumDatapublic java.lang.String getNickname()
AlbumDatagetNickname in interface AlbumDatapublic java.lang.Integer getPhotosLeft()
throws ServiceException
AlbumDatagetPhotosLeft in interface AlbumDataServiceExceptionpublic java.lang.Integer getPhotosUsed()
throws ServiceException
AlbumDatagetPhotosUsed in interface AlbumDataServiceExceptionpublic java.lang.String getUsername()
AlbumDatagetUsername in interface AlbumDatapublic void setAccess(java.lang.String access)
AlbumDatapublic void setBytesUsed(java.lang.Long bytesUsed)
AlbumDatasetBytesUsed in interface AlbumDatabytesUsed - the number of bytes used.public void setCommentCount(java.lang.Integer commentCount)
AlbumDatasetCommentCount in interface AlbumDatacommentCount - the number of comments on the album.public void setCommentsEnabled(java.lang.Boolean commentsEnabled)
AlbumDatasetCommentsEnabled in interface AlbumDatacommentsEnabled - true if comments are enabled in the album.public void setDate(java.util.Date date)
AlbumDatapublic void setLocation(java.lang.String location)
AlbumDatasetLocation in interface AlbumDatalocation - the location of the album.public void setName(java.lang.String name)
AlbumDataAtomData.setTitle(com.google.gdata.data.TextConstruct).public void setNickname(java.lang.String nickname)
AlbumDatasetNickname in interface AlbumDatanickname - the nickname of the owner.public void setPhotosLeft(java.lang.Integer photosLeft)
AlbumDatasetPhotosLeft in interface AlbumDataphotosLeft - the number of photos left.public void setPhotosUsed(java.lang.Integer photosUsed)
AlbumDatasetPhotosUsed in interface AlbumDataphotosUsed - the number of photos used.public void setUsername(java.lang.String username)
AlbumDatasetUsername in interface AlbumDatausername - the username of the owner.public void setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
throws java.lang.IllegalArgumentException
PointDatasetGeoLocation in interface PointDatalat - The latitude coordinate, between -90 and 90 degrees.lon - The longitude coordinate, between -180 and 180 degrees.java.lang.IllegalArgumentException - if the latitude and longitude coordinates
are invalid.public void setGeoLocation(Point point)
PointDatasetGeoLocation in interface PointDatapoint - A point containing the latitude and longitude coordinates.public Point getGeoLocation()
PointDatagetGeoLocation in interface PointDatapublic void clearPoint()
PointDataclearPoint in interface PointDatapublic void clearGeoBoundingBox()
BoxDataclearGeoBoundingBox in interface BoxDatapublic 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 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