docs: public void setPerms(String photoId, Permissions permissions) throws FlickrException {
          Map<String, Object> parameters = new HashMap<String, Object>();
          parameters.put("method", METHOD_SET_PERMS);
  
          parameters.put("photo_id", photoId);
          parameters.put("is_public", permissions.isPublicFlag() ? "1" : "0");
          parameters.put("is_friend", permissions.isFriendFlag() ? "1" : "0");
          parameters.put("is_family", permissions.isFamilyFlag() ? "1" : "0");
          parameters.put("perm_comment", Integer.toString(permissions.getComment()));
          parameters.put("perm_addmeta", Integer.toString(permissions.getAddmeta()));
  
          Response response = transport.post(transport.getPath(), parameters, apiKey, sharedSecret);
          if (response.isError()) {
              throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
          }
      }