Hi all,
I have a query regarding getcanedit & setcanedit APIs. 
https://developers.google.com/gdata/javadoc/com/google/gdata/data/BaseEntry#getCanEdit%28%29

I wanted to test a use case where a client can not modify an album. In 
order to test this use case I have created an album as below
public void createAlbum() throws Exception {
        String API_PREFIX = 
"https://picasaweb.google.com/data/feed/api/user/";;
        AlbumEntry album = new AlbumEntry();
        album.setTitle(new PlainTextConstruct("testalbum"));
        album.setDescription(new PlainTextConstruct("test"));
        album.setCanEdit(false);
        String feedUrl = API_PREFIX + "default";
        service.insert(new URL(feedUrl), album);
    }
As per definition of setCanEdit() I expected that this album can NOT be 
modified by any client.
But when I queried to get all the albums, I saw that the getCanEdit 
returned TRUE for the album created above and I can insert/delete a picture 
in this album.

So I just wanted to know what is the exact usage of setcanedit or 
getcanedit methods?

Thanks,
Sangram


-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to