public class UserFeed extends GphotoFeed<UserFeed> implements UserData, AtomData
AlbumEntry or TagEntry kind. The user feed itself also
contains all of the metadata available as part of a UserData object.BaseFeed.FeedHandler, BaseFeed.FeedStateSource.SourceHandler, Source.SourceStateExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandlerentries, entryClass, feedStatexmlBloblocalName, namespaceKIND, USER_CATEGORY, USER_KIND| Constructor and Description |
|---|
UserFeed()
Constructs a new empty user feed.
|
UserFeed(BaseFeed<?,?> sourceFeed)
Constructs a new user feed from a shallow copy of the data in the source
feed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
|
java.util.List<AlbumEntry> |
getAlbumEntries()
Get a list of entries of the
AlbumEntry kind. |
java.lang.Integer |
getMaxPhotos()
The number of photos a user can have in a single album.
|
java.lang.String |
getNickname()
The nickname of the user.
|
java.lang.Long |
getQuotaLimit()
The quota limit of the user.
|
java.lang.Long |
getQuotaUsed()
The quota in bytes that the user has used.
|
java.util.List<TagEntry> |
getTagEntries()
Get a list of entries of the
TagEntry kind. |
java.lang.String |
getThumbnail()
A url to the user's portrait.
|
java.lang.String |
getUsername()
The username of the user.
|
void |
setMaxPhotos(java.lang.Integer max)
Set the maximum number of photos the user is allowed.
|
void |
setNickname(java.lang.String nickname)
Set the nickname of the user this data represents.
|
void |
setQuotaLimit(java.lang.Long quota)
Set the quota limit for the user this data represents.
|
void |
setQuotaUsed(java.lang.Long quota)
Set the used quota for the user.
|
void |
setThumbnail(java.lang.String thumbnail)
Set the thumbnail for the user portrait.
|
void |
setUsername(java.lang.String username)
Set the username for the user this data 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 UserFeed()
public UserFeed(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<UserFeed>extProfile - the ExtensionProfile to initialize.ExtensionProfile.addDeclarations(Kind.Adaptor)public java.util.List<AlbumEntry> getAlbumEntries()
AlbumEntry kind.public java.util.List<TagEntry> getTagEntries()
TagEntry kind.public java.lang.Integer getMaxPhotos()
UserDatagetMaxPhotos in interface UserDatapublic java.lang.String getNickname()
UserDatagetNickname in interface UserDatapublic java.lang.Long getQuotaLimit()
UserDatagetQuotaLimit in interface UserDatapublic java.lang.Long getQuotaUsed()
UserDatagetQuotaUsed in interface UserDatapublic java.lang.String getThumbnail()
UserDatagetThumbnail in interface UserDatapublic java.lang.String getUsername()
UserDatagetUsername in interface UserDatapublic void setMaxPhotos(java.lang.Integer max)
UserDatasetMaxPhotos in interface UserDatamax - the number of photos the user is allowed.public void setNickname(java.lang.String nickname)
UserDatasetNickname in interface UserDatanickname - the nickname of the user.public void setQuotaLimit(java.lang.Long quota)
UserDatasetQuotaLimit in interface UserDataquota - the quota in bytes for the user.public void setQuotaUsed(java.lang.Long quota)
UserDatasetQuotaUsed in interface UserDataquota - the quota usage in bytes for this user.public void setThumbnail(java.lang.String thumbnail)
UserDatasetThumbnail in interface UserDatathumbnail - the url to the user portrait image.public void setUsername(java.lang.String username)
UserDatasetUsername in interface UserDatausername - the username of the user.