/** * Returns the geolocation as a georss:where. * * @return geolocation as a georss:where */ public GeoRssWhere getGeoRssWhere() { return getExtension(GeoRssWhere.class); }
/** * Retrieve the album feed and associated entries. The kinds parameter is a * list of the associated entries to return. For example * <code>AlbumFeed albumAndPhotos = albumEntry.getFeed(PhotoData.KIND, * TagData.KIND);</code> If no kind parameters are passed, the default of * {@link PhotoData#KIND} will be used. * * @see PhotoData#KIND * @see TagData#KIND * @param kinds the kinds of entries to retrieve, or empty to use the default. * @return a feed of the album and the requested kinds. */ public AlbumFeed getFeed(String... kinds) throws IOException, ServiceException { return getFeed(AlbumFeed.class, kinds); }
/** * Declare the extensions of the feeds for the Picasa Web Albums Data API. */ private void declareExtensions() { extProfile.setAutoExtending(true); new AlbumEntry().declareExtensions(extProfile); new AlbumFeed().declareExtensions(extProfile); new CommentEntry().declareExtensions(extProfile); new PhotoEntry().declareExtensions(extProfile); new PhotoFeed().declareExtensions(extProfile); new TagEntry().declareExtensions(extProfile); new UserEntry().declareExtensions(extProfile); new UserFeed().declareExtensions(extProfile); }
/** * Default mutable constructor. */ public AlbumEntry() { super(); getCategories().add(CATEGORY); }
public Date getDate() { GphotoTimestamp date = getDateExt(); if (date == null) { return null; } return new Date(date.getValue()); }
public Boolean getCommentsEnabled() { GphotoCommentsEnabled commentsEnabled = getCommentsEnabledExt(); return commentsEnabled == null ? null : commentsEnabled.getValue(); }
public Long getBytesUsed() { GphotoBytesUsed bytesUsed = getBytesUsedExt(); return bytesUsed == null ? null : bytesUsed.getValue(); }
public String getAccess() { GphotoAccess access = getAccessExt(); return access == null ? null : access.getValue().toLowerCase(); }
public Integer getCommentCount() { GphotoCommentCount commentCount = getCommentCountExt(); return commentCount == null ? null : commentCount.getValue(); }
/** * Declare the extensions of the feeds for the Picasa Web Albums Data API. */ private void declareExtensions() { extProfile.setAutoExtending(true); new AlbumEntry().declareExtensions(extProfile); new AlbumFeed().declareExtensions(extProfile); new CommentEntry().declareExtensions(extProfile); new PhotoEntry().declareExtensions(extProfile); new PhotoFeed().declareExtensions(extProfile); new TagEntry().declareExtensions(extProfile); new UserEntry().declareExtensions(extProfile); new UserFeed().declareExtensions(extProfile); }
/** * Default mutable constructor. */ public AlbumEntry() { super(); getCategories().add(CATEGORY); }
public Date getDate() { GphotoTimestamp date = getDateExt(); if (date == null) { return null; } return new Date(date.getValue()); }
public Boolean getCommentsEnabled() { GphotoCommentsEnabled commentsEnabled = getCommentsEnabledExt(); return commentsEnabled == null ? null : commentsEnabled.getValue(); }
public Long getBytesUsed() { GphotoBytesUsed bytesUsed = getBytesUsedExt(); return bytesUsed == null ? null : bytesUsed.getValue(); }
public String getAccess() { GphotoAccess access = getAccessExt(); return access == null ? null : access.getValue().toLowerCase(); }
public Integer getCommentCount() { GphotoCommentCount commentCount = getCommentCountExt(); return commentCount == null ? null : commentCount.getValue(); }
/** * Returns the geolocation as a gml:point. * * @return geolocation as a gml:point */ public GmlPoint getGmlPoint() { return getExtension(GmlPoint.class); }
/** * Retrieve the album feed and associated entries. The kinds parameter is a * list of the associated entries to return. For example * <code>AlbumFeed albumAndPhotos = albumEntry.getFeed(PhotoData.KIND, * TagData.KIND);</code> If no kind parameters are passed, the default of * {@link PhotoData#KIND} will be used. * * @see PhotoData#KIND * @see TagData#KIND * @param kinds the kinds of entries to retrieve, or empty to use the default. * @return a feed of the album and the requested kinds. */ public AlbumFeed getFeed(String... kinds) throws IOException, ServiceException { return getFeed(AlbumFeed.class, kinds); }
/** * Returns the username of the owner of the album. * * @return username of the owner of the album */ public GphotoUsername getUsernameExt() { return getExtension(GphotoUsername.class); }
/** * Returns the access level for the album. * * @return access level for the album */ public GphotoAccess getAccessExt() { return getExtension(GphotoAccess.class); }