URL albumPostUrl = new URL("https://picasaweb.google.com/data/feed/api/user/username/albumid/albumid"); PhotoEntry myPhoto = new PhotoEntry(); myPhoto.setTitle(new PlainTextConstruct("Puppies FTW")); myPhoto.setDescription(new PlainTextConstruct("Puppies are the greatest.")); myPhoto.setClient("myClientName"); MediaFileSource myMedia = new MediaFileSource(new File("/home/liz/puppies.jpg"), "image/jpeg"); myPhoto.setMediaSource(myMedia); PhotoEntry returnedPhoto = myService.insert(albumPostUrl, myPhoto);
public String getAlbumAccess() { GphotoAccess ext = getAlbumAccessExt(); return ext == null ? null : ext.getValue(); }
/** * Default mutable constructor. */ public PhotoEntry() { super(); getCategories().add(CATEGORY); }
/** * 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); }
/** * @throws ServiceException no longer, but used to. */ public Boolean getCommentsEnabled() throws ServiceException { GphotoCommentsEnabled ext = getCommentsEnabledExt(); return ext == null ? null : ext.getValue(); }
/** * @throws ServiceException no longer, but used to. */ public Integer getCommentCount() throws ServiceException { GphotoCommentCount ext = getCommentCountExt(); return ext == null ? null : ext.getValue(); }
public String getClient() { GphotoClient ext = getClientExt(); return ext == null ? null : ext.getValue(); }
public String getChecksum() { GphotoChecksum ext = getChecksumExt(); return ext == null ? null : ext.getValue(); }
public String getAlbumId() { GphotoAlbumId ext = getAlbumIdExt(); return ext == null ? null : ext.getValue(); }
public void addStreamId(String streamId) { GphotoStreamId ext = new GphotoStreamId(streamId); addStreamIdsExt(ext); }
/** * 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); }
/** * @throws ServiceException no longer, but used to. */ public Boolean getCommentsEnabled() throws ServiceException { GphotoCommentsEnabled ext = getCommentsEnabledExt(); return ext == null ? null : ext.getValue(); }
/** * @throws ServiceException no longer, but used to. */ public Integer getCommentCount() throws ServiceException { GphotoCommentCount ext = getCommentCountExt(); return ext == null ? null : ext.getValue(); }
public String getClient() { GphotoClient ext = getClientExt(); return ext == null ? null : ext.getValue(); }
public String getChecksum() { GphotoChecksum ext = getChecksumExt(); return ext == null ? null : ext.getValue(); }
public String getAlbumId() { GphotoAlbumId ext = getAlbumIdExt(); return ext == null ? null : ext.getValue(); }
public void addStreamId(String streamId) { GphotoStreamId ext = new GphotoStreamId(streamId); addStreamIdsExt(ext); }
/** * Default mutable constructor. */ public PhotoEntry() { super(); getCategories().add(CATEGORY); }
public String getAlbumAccess() { GphotoAccess ext = getAlbumAccessExt(); return ext == null ? null : ext.getValue(); }