/** * Default mutable constructor. */ public CommentEntry() { super(); getCategories().add(CATEGORY); }
/** * Returns the photo ID of the album this comment is on. * * @return photo ID of the album this comment is on */ public GphotoPhotoId getPhotoIdExt() { return getExtension(GphotoPhotoId.class); }
/** * Returns whether it has the album ID of the album this comment is on. * * @return whether it has the album ID of the album this comment is on */ public boolean hasAlbumIdExt() { return hasExtension(GphotoAlbumId.class); }
/** * Sets the album ID of the album this comment is on. * * @param albumIdExt album ID of the album this comment is on or * <code>null</code> to reset */ public void setAlbumIdExt(GphotoAlbumId albumIdExt) { if (albumIdExt == null) { removeExtension(GphotoAlbumId.class); } else { setExtension(albumIdExt); } }
/** * 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); }
PicasawebService myService = new PicasawebService("exampleCo-exampleApp-1"); // just id myService.setUserCredentials( "liz@gmail.com", "mypassword"); // your mailaddress, password // change "username", "albumid" and "photoid" URL feedUrl = new URL( "https://picasaweb.google.com/data/feed/api/" + "user/username/albumid/albumid/photoid/photoid"); CommentEntry myComment = new CommentEntry(); myComment.setContent( new PlainTextConstruct("great photo!")); // there is comment myService.insert(feedUrl, myComment);
public void setAlbumId(String albumId) { GphotoAlbumId ext = null; if (albumId != null) { ext = new GphotoAlbumId(albumId); } setAlbumIdExt(ext); }
public String getAlbumId() { GphotoAlbumId ext = getAlbumIdExt(); return ext == null ? null : ext.getValue(); }
public String getPhotoId() { GphotoPhotoId ext = getPhotoIdExt(); return ext == null ? null : ext.getValue(); }
/** * Sets the photo ID of the album this comment is on. * * @param photoIdExt photo ID of the album this comment is on or * <code>null</code> to reset */ public void setPhotoIdExt(GphotoPhotoId photoIdExt) { if (photoIdExt == null) { removeExtension(GphotoPhotoId.class); } else { setExtension(photoIdExt); } }
/** * 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); }
public void setAlbumId(Long albumId) { GphotoAlbumId ext = null; if (albumId != null) { ext = GphotoAlbumId.from(albumId); } setAlbumIdExt(ext); }
public String getAlbumId() { GphotoAlbumId ext = getAlbumIdExt(); return ext == null ? null : ext.getValue(); }
public String getPhotoId() { GphotoPhotoId ext = getPhotoIdExt(); return ext == null ? null : ext.getValue(); }
/** * Sets the photo ID of the album this comment is on. * * @param photoIdExt photo ID of the album this comment is on or * <code>null</code> to reset */ public void setPhotoIdExt(GphotoPhotoId photoIdExt) { if (photoIdExt == null) { removeExtension(GphotoPhotoId.class); } else { setExtension(photoIdExt); } }
public void setAlbumId(String albumId) { GphotoAlbumId ext = null; if (albumId != null) { ext = new GphotoAlbumId(albumId); } setAlbumIdExt(ext); }
/** * Returns whether it has the album ID of the album this comment is on. * * @return whether it has the album ID of the album this comment is on */ public boolean hasAlbumIdExt() { return hasExtension(GphotoAlbumId.class); }
/** * Returns the album ID of the album this comment is on. * * @return album ID of the album this comment is on */ public GphotoAlbumId getAlbumIdExt() { return getExtension(GphotoAlbumId.class); }
/** * Default mutable constructor. */ public CommentEntry() { super(); getCategories().add(CATEGORY); }
/** * Sets the album ID of the album this comment is on. * * @param albumIdExt album ID of the album this comment is on or * <code>null</code> to reset */ public void setAlbumIdExt(GphotoAlbumId albumIdExt) { if (albumIdExt == null) { removeExtension(GphotoAlbumId.class); } else { setExtension(albumIdExt); } }