com.aetrion.flickr.photos.licenses
Class LicensesInterface
java.lang.Object
com.aetrion.flickr.photos.licenses.LicensesInterface
public class LicensesInterface
- extends java.lang.Object
Interface for working with copyright licenses.
- Author:
- Anthony Eden
Method Summary |
java.util.Collection |
getInfo()
|
void |
setLicense(java.lang.String photoId,
int licenseId)
Sets the license for a photo. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
METHOD_GET_INFO
public static final java.lang.String METHOD_GET_INFO
- See Also:
- Constant Field Values
METHOD_SET_LICENSE
public static final java.lang.String METHOD_SET_LICENSE
- See Also:
- Constant Field Values
LicensesInterface
public LicensesInterface(java.lang.String apiKey,
Transport transport)
getInfo
public java.util.Collection getInfo()
throws java.io.IOException,
org.xml.sax.SAXException,
FlickrException
- Returns:
- A collection of License objects
- Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException
setLicense
public void setLicense(java.lang.String photoId,
int licenseId)
throws java.io.IOException,
org.xml.sax.SAXException,
FlickrException
- Sets the license for a photo.
This method requires authentication with 'write' permission.
- Parameters:
photoId
- The photo to update the license for.licenseId
- The license to apply, or 0 (zero) to remove the current license.
- Throws:
java.io.IOException
org.xml.sax.SAXException
FlickrException
Copyright (C) 2005-2007 Aetrion LLC. All Rights Reserved.