public class

UserDataImpl

extends GphotoDataImpl
implements UserData
java.lang.Object
   ↳ com.google.gdata.data.photos.impl.GphotoDataImpl
     ↳ com.google.gdata.data.photos.impl.UserDataImpl

Class Overview

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.

Summary

[Expand]
Inherited Constants
From interface com.google.gdata.data.photos.UserData
[Expand]
Inherited Fields
From class com.google.gdata.data.photos.impl.GphotoDataImpl
From interface com.google.gdata.data.photos.UserData
Public Constructors
UserDataImpl(ExtensionPoint extensionPoint)
Construct a new implementation of UserGphotoData with the given extension point as the backing storage for data.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an Extensible within the target extension profile.
Integer getMaxPhotos()
The number of photos a user can have in a single album.
String getNickname()
The nickname of the user.
Long getQuotaLimit()
The quota limit of the user.
Long getQuotaUsed()
The quota in bytes that the user has used.
String getThumbnail()
A url to the user's portrait.
String getUsername()
The username of the user.
void setMaxPhotos(Integer max)
Set the maximum number of photos the user is allowed.
void setNickname(String nickname)
Set the nickname of the user this item represents.
void setQuotaLimit(Long quota)
Set the quota limit for the user this item represents.
void setQuotaUsed(Long quota)
Set the used quota for the user.
void setThumbnail(String thumbnail)
Set the thumbnail for the user portrait.
void setUsername(String username)
Set the username for the user this item represents.
[Expand]
Inherited Methods
From class com.google.gdata.data.photos.impl.GphotoDataImpl
From class java.lang.Object
From interface com.google.gdata.data.photos.Extensible
From interface com.google.gdata.data.photos.GphotoData
From interface com.google.gdata.data.photos.UserData

Public Constructors

public UserDataImpl (ExtensionPoint extensionPoint)

Construct a new implementation of UserGphotoData with the given extension point as the backing storage for data.

Parameters
extensionPoint

Public Methods

public void declareExtensions (ExtensionProfile extProfile)

Declares the set of expected Extension types for an Extensible within the target extension profile. Forwards to declareExtensions(ExtensionProfile).

Parameters
extProfile The ExtensionProfile to initialize.

public Integer getMaxPhotos ()

The number of photos a user can have in a single album. Calculated on the server.

Returns
  • the maximum number of photos the user can have in an album.

public String getNickname ()

The nickname of the user. This is the display name of the user, defined by editing the user information through the UI.

Returns
  • the nickname of the user this item represents.

public Long getQuotaLimit ()

The quota limit of the user. Set on the server, only modifiable by purchasing more storage through the UI.

Returns
  • the quota limit for the user in bytes.

public Long getQuotaUsed ()

The quota in bytes that the user has used. This is calculated on the server.

Returns
  • the quota used up for this user.

public String getThumbnail ()

A url to the user's portrait.

Returns
  • the thumbnail for the user this item represents.

public String getUsername ()

The username of the user. The username is the user's current persona, and is not a valid email address but is instead a unique name of the user on the server.

Returns
  • the username of the user this item represents.

public void setMaxPhotos (Integer max)

Set the maximum number of photos the user is allowed.

Parameters
max The number of photos the user is allowed.

public void setNickname (String nickname)

Set the nickname of the user this item represents.

Parameters
nickname The nickname of the user.

public void setQuotaLimit (Long quota)

Set the quota limit for the user this item represents.

Parameters
quota The quota in bytes for the user.

public void setQuotaUsed (Long quota)

Set the used quota for the user.

Parameters
quota The quota usage in bytes for this user.

public void setThumbnail (String thumbnail)

Set the thumbnail for the user portrait.

Parameters
thumbnail The url to the user portrait image.

public void setUsername (String username)

Set the username for the user this item represents.

Parameters
username The username of the user.