|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.Source
com.google.gdata.data.BaseFeed<F,E>
com.google.gdata.data.media.MediaFeed<F,GphotoEntry>
com.google.gdata.data.photos.GphotoFeed<UserFeed>
com.google.gdata.data.photos.UserFeed
public class UserFeed
Feed for a User in our google photos api. This feed represents a user
as the container for other objects. A User feed contains entries
of AlbumEntry
or TagEntry
kind. The user feed itself also
contains all of the metadata available as part of a UserData
object.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.data.BaseFeed |
---|
BaseFeed.FeedHandler, BaseFeed.FeedState |
Nested classes/interfaces inherited from class com.google.gdata.data.Source |
---|
Source.SourceHandler, Source.SourceState |
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
---|
AbstractExtension.AttributesHandler |
Field Summary |
---|
Fields inherited from class com.google.gdata.data.BaseFeed |
---|
entries, entryClass, feedState |
Fields inherited from class com.google.gdata.data.Source |
---|
srcState |
Fields inherited from class com.google.gdata.data.ExtensionPoint |
---|
xmlBlob |
Fields inherited from class com.google.gdata.data.AbstractExtension |
---|
localName, namespace |
Fields inherited from interface com.google.gdata.data.photos.UserData |
---|
KIND, USER_CATEGORY, USER_KIND |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.google.gdata.data.photos.GphotoFeed |
---|
generateRss, getDescription, getGphotoId, setDescription, setGphotoId, setGphotoId |
Methods inherited from class com.google.gdata.data.media.MediaFeed |
---|
insert, insert, setService |
Methods inherited from class com.google.gdata.data.BaseFeed |
---|
addAdaptor, createEntry, generate, generateAtom, generateFeedEnd, generateFeedStart, getAdaptedFeed, getAdaptor, getAdaptors, getCanPost, getEntries, getEntries, getEntryPostLink, getEtag, getFeedBatchLink, getHandler, getItemsPerPage, getNextLink, getPreviousLink, getSelf, getSelfLink, getService, getStartIndex, getTotalResults, insert, parseAtom, parseAtom, parseAtom, readFeed, readFeed, setCanPost, setEntries, setEtag, setItemsPerPage, setStartIndex, setTotalResults, visitChildren |
Methods inherited from class com.google.gdata.data.Source |
---|
addHtmlLink, addLink, addLink, generateInnerAtom, getAuthors, getCategories, getContributors, getGenerator, getHtmlLink, getIcon, getId, getLink, getLinks, getLinks, getLogo, getRights, getSubtitle, getTitle, getUpdated, removeLinks, setGenerator, setGenerator, setIcon, setId, setLogo, setRights, setSubtitle, setTitle, setUpdated |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
consumeAttributes, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.gdata.data.photos.GphotoData |
---|
getGphotoId, setGphotoId, setGphotoId |
Methods inherited from interface com.google.gdata.data.photos.Extensible |
---|
addExtension, addRepeatingExtension, removeExtension, removeExtension, removeRepeatingExtension, setExtension |
Methods inherited from interface com.google.gdata.data.photos.AtomData |
---|
getAuthors, getCategories, getContributors, getDescription, getId, getLinks, getRights, getTitle, getUpdated, setDescription, setId, setRights, setTitle, setUpdated |
Methods inherited from interface com.google.gdata.data.IFeed |
---|
addLink, getCategories, getGenerator, getId, getLink, getLinks, getLogo, getSubtitle, getTitle, getUpdated, setGenerator, setId, setLogo, setUpdated |
Constructor Detail |
---|
public UserFeed()
public UserFeed(BaseFeed<?,?> sourceFeed)
Method Detail |
---|
public void declareExtensions(ExtensionProfile extProfile)
BaseFeed
The implementation of this method for BaseFeed will declare any extensions associated with the contained entry type.
declareExtensions
in interface Kind.Adaptor
declareExtensions
in interface Extensible
declareExtensions
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()
UserData
getMaxPhotos
in interface UserData
public java.lang.String getNickname()
UserData
getNickname
in interface UserData
public java.lang.Long getQuotaLimit()
UserData
getQuotaLimit
in interface UserData
public java.lang.Long getQuotaUsed()
UserData
getQuotaUsed
in interface UserData
public java.lang.String getThumbnail()
UserData
getThumbnail
in interface UserData
public java.lang.String getUsername()
UserData
getUsername
in interface UserData
public void setMaxPhotos(java.lang.Integer max)
UserData
setMaxPhotos
in interface UserData
max
- the number of photos the user is allowed.public void setNickname(java.lang.String nickname)
UserData
setNickname
in interface UserData
nickname
- the nickname of the user.public void setQuotaLimit(java.lang.Long quota)
UserData
setQuotaLimit
in interface UserData
quota
- the quota in bytes for the user.public void setQuotaUsed(java.lang.Long quota)
UserData
setQuotaUsed
in interface UserData
quota
- the quota usage in bytes for this user.public void setThumbnail(java.lang.String thumbnail)
UserData
setThumbnail
in interface UserData
thumbnail
- the url to the user portrait image.public void setUsername(java.lang.String username)
UserData
setUsername
in interface UserData
username
- the username of the user.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |