public class UserDataImpl extends GphotoDataImpl implements UserData
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.KIND, USER_CATEGORY, USER_KIND| Constructor and Description |
|---|
UserDataImpl(ExtensionPoint extensionPoint)
Construct a new implementation of UserGphotoData with the given
extension point as the backing storage for data.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 UserDataImpl(ExtensionPoint extensionPoint)
public void declareExtensions(ExtensionProfile extProfile)
ExtensibleExtensionPoint.declareExtensions(ExtensionProfile).declareExtensions in interface ExtensibledeclareExtensions in class GphotoDataImplextProfile - the ExtensionProfile to initialize.public java.lang.String getUsername()
UserDatagetUsername in interface UserDatapublic void setUsername(java.lang.String username)
setUsername in interface UserDatausername - the username of the user.public java.lang.String getNickname()
UserDatagetNickname in interface UserDatapublic void setNickname(java.lang.String nickname)
setNickname in interface UserDatanickname - the nickname of the user.public java.lang.String getThumbnail()
UserDatagetThumbnail in interface UserDatapublic void setThumbnail(java.lang.String thumbnail)
setThumbnail in interface UserDatathumbnail - the url to the user portrait image.public java.lang.Long getQuotaUsed()
UserDatagetQuotaUsed in interface UserDatapublic void setQuotaUsed(java.lang.Long quota)
setQuotaUsed in interface UserDataquota - the quota usage in bytes for this user.public java.lang.Long getQuotaLimit()
UserDatagetQuotaLimit in interface UserDatapublic void setQuotaLimit(java.lang.Long quota)
setQuotaLimit in interface UserDataquota - the quota in bytes for the user.public java.lang.Integer getMaxPhotos()
UserDatagetMaxPhotos in interface UserDatapublic void setMaxPhotos(java.lang.Integer max)
setMaxPhotos in interface UserDatamax - the number of photos the user is allowed.