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, getGphotoId, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setGphotoId, setGphotoId
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGphotoId, setGphotoId, setGphotoId
addExtension, addRepeatingExtension, removeExtension, removeExtension, removeRepeatingExtension, setExtension
public UserDataImpl(ExtensionPoint extensionPoint)
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.