|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.photos.impl.GphotoDataImpl
com.google.gdata.data.photos.impl.UserDataImpl
public class UserDataImpl
Implementation class for user data objects. This class takes an
ExtensionPoint
and uses it to provide all of the methods that
UserData
specifies. These methods are handled by using
extension classes to retrieve or set extensions of the appropriate type.
Field Summary |
---|
Fields inherited from interface com.google.gdata.data.photos.UserData |
---|
KIND, USER_CATEGORY, USER_KIND |
Constructor Summary | |
---|---|
UserDataImpl(ExtensionPoint extensionPoint)
Construct a new implementation of UserGphotoData with the given extension point as the backing storage for data. |
Method Summary | |
---|---|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an Extensible within the target extension profile. |
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.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 item represents. |
void |
setQuotaLimit(java.lang.Long quota)
Set the quota limit for the user this item 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 item represents. |
Methods inherited from class com.google.gdata.data.photos.impl.GphotoDataImpl |
---|
addExtension, addRepeatingExtension, getGphotoId, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setGphotoId, setGphotoId |
Methods inherited from class java.lang.Object |
---|
equals, 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 |
Constructor Detail |
---|
public UserDataImpl(ExtensionPoint extensionPoint)
Method Detail |
---|
public void declareExtensions(ExtensionProfile extProfile)
Extensible
ExtensionPoint.declareExtensions(ExtensionProfile)
.
declareExtensions
in interface Extensible
declareExtensions
in class GphotoDataImpl
extProfile
- the ExtensionProfile to initialize.public java.lang.String getUsername()
UserData
getUsername
in interface UserData
public void setUsername(java.lang.String username)
setUsername
in interface UserData
username
- the username of the user.public java.lang.String getNickname()
UserData
getNickname
in interface UserData
public void setNickname(java.lang.String nickname)
setNickname
in interface UserData
nickname
- the nickname of the user.public java.lang.String getThumbnail()
UserData
getThumbnail
in interface UserData
public void setThumbnail(java.lang.String thumbnail)
setThumbnail
in interface UserData
thumbnail
- the url to the user portrait image.public java.lang.Long getQuotaUsed()
UserData
getQuotaUsed
in interface UserData
public void setQuotaUsed(java.lang.Long quota)
setQuotaUsed
in interface UserData
quota
- the quota usage in bytes for this user.public java.lang.Long getQuotaLimit()
UserData
getQuotaLimit
in interface UserData
public void setQuotaLimit(java.lang.Long quota)
setQuotaLimit
in interface UserData
quota
- the quota in bytes for the user.public java.lang.Integer getMaxPhotos()
UserData
getMaxPhotos
in interface UserData
public void setMaxPhotos(java.lang.Integer max)
setMaxPhotos
in interface UserData
max
- the number of photos the user is allowed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |