* @throws FlickrException
*/
public void setPerms(String photoId, Permissions permissions) throws IOException,
SAXException, FlickrException {
List parameters = new ArrayList();
parameters.add(new Parameter("method", METHOD_SET_PERMS));
parameters.add(new Parameter("api_key", apiKey));
parameters.add(new Parameter("photo_id", photoId));
parameters.add(new Parameter("is_public", permissions.isPublicFlag() ? "1" : "0"));
parameters.add(new Parameter("is_friend", permissions.isFriendFlag() ? "1" : "0"));
parameters.add(new Parameter("is_family", permissions.isFamilyFlag() ? "1" : "0"));
parameters.add(new Parameter("perm_comment", permissions.getComment()));
parameters.add(new Parameter("perm_addmeta", permissions.getAddmeta()));
parameters.add(
new Parameter(
"api_sig",
AuthUtilities.getSignature(sharedSecret, parameters)
)
);