code: public Permissions getPerms(String photoId) throws FlickrException {
          Map<String, Object> parameters = new HashMap<String, Object>();
          parameters.put("method", METHOD_GET_PERMS);
  
          parameters.put("photo_id", photoId);
  
          Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret);
          if (response.isError()) {
              throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
          }
          Element permissionsElement = response.getPayload();
          Permissions permissions = new Permissions();
          permissions.setId(permissionsElement.getAttribute("id"));
          permissions.setPublicFlag("1".equals(permissionsElement.getAttribute("ispublic")));
          permissions.setFamilyFlag("1".equals(permissionsElement.getAttribute("isfamily")));
          permissions.setFriendFlag("1".equals(permissionsElement.getAttribute("isfriend")));
          permissions.setComment(permissionsElement.getAttribute("permcomment"));
          permissions.setAddmeta(permissionsElement.getAttribute("permaddmeta"));
          return permissions;
      }
docs: Get the permission information for the specified photo.
  
  This method requires authentication with 'read' permission.
  
  @param photoId
  The photo id
  @return The Permissions object
  @throws FlickrException