|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.scohen.juploadr.uploadapi.ImageUploadApi
This is the overal FlickrApi It gives some direct access to the methods we utilize from the Flickr API In the future a further split-up may be required to keep the number of methods manageable
| Field Summary | |
protected Image |
icon
|
| Constructor Summary | |
ImageUploadApi()
|
|
| Method Summary | |
abstract java.util.List |
allAccounts()
Get a list of all the accounts in this protocol implementation |
static java.util.List |
allAccountsForAllApis()
|
abstract boolean |
authenticate(Account toAuthenticate)
Authenticate with the new flickr auth api. |
void |
authenticateCurrentAccount()
|
static void |
changeImplementation(java.lang.String newImplementation,
JUploadr parent)
|
abstract java.lang.Class[] |
getConfiurationDialogs()
Returns the class names of configuration dialogs for this API. |
abstract Account |
getCurrentAccount()
Returns the currently enabled account |
Image |
getIcon()
|
static ImageUploadApi |
getInstance()
|
static ImageUploadApi[] |
getRegisteredImplemtations()
|
abstract java.lang.String |
getSiteName()
Returns the friendly name of the upload site. |
abstract void |
initialize()
Do any initialization stuff that needs to be done. |
boolean |
isCurrentAccountAuthenticated()
|
abstract boolean |
isCurrentAccountNullAccount()
|
abstract Account |
newAccount(java.lang.String name)
Creates a new account with the given name |
abstract void |
postProcessAllUploads(java.util.Collection collection)
Event handler that is fired after all photos have finished uploading |
abstract void |
postProcessUpload(UploadCompleteEvent e,
ImageAttributes atts)
|
abstract void |
setCurrentAccount(Account account)
Sets the currently enabled acconut to the one passed in |
abstract PopupHandler |
thumbnailRightClicked(Decorations parent,
JUploadr uploadr,
ImageAttributes clicked)
|
abstract void |
upload(UploadImage imageAttributes,
UploadStatusMonitor monitor)
Uploads the image and data in imageAttributes for Flickr
user userInfo and notifying monitor of
upload bar. |
protected static void |
versionCheck()
|
abstract PopupHandler |
windowRightClicked(Decorations parent,
JUploadr clicked)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Image icon
| Constructor Detail |
public ImageUploadApi()
| Method Detail |
public static ImageUploadApi getInstance()
public static final void changeImplementation(java.lang.String newImplementation,
JUploadr parent)
public Image getIcon()
public abstract java.lang.String getSiteName()
public abstract Account getCurrentAccount()
public abstract Account newAccount(java.lang.String name)
name - the name to give the account
public abstract void setCurrentAccount(Account account)
account - the account to enable.public abstract void initialize()
public abstract boolean authenticate(Account toAuthenticate)
throws ProtocolException,
CommunicationException
ProtocolException
CommunicationException
public abstract void upload(UploadImage imageAttributes,
UploadStatusMonitor monitor)
throws UploadFailedException,
CommunicationException
imageAttributes for Flickr
user userInfo and notifying monitor of
upload bar.
imageAttributes - the image to be uploadedmonitor - The monitor that should be notified of upload bar
UploadFailedException - When a problem occurs during the uploading
CommunicationExceptionpublic abstract java.lang.Class[] getConfiurationDialogs()
public abstract PopupHandler windowRightClicked(Decorations parent,
JUploadr clicked)
public abstract PopupHandler thumbnailRightClicked(Decorations parent,
JUploadr uploadr,
ImageAttributes clicked)
public abstract void postProcessUpload(UploadCompleteEvent e,
ImageAttributes atts)
public abstract void postProcessAllUploads(java.util.Collection collection)
collection - All the photos that have been uploaded: consists of
ImageAttributes objectspublic boolean isCurrentAccountAuthenticated()
public abstract boolean isCurrentAccountNullAccount()
public void authenticateCurrentAccount()
throws ProtocolException,
CommunicationException
ProtocolException
CommunicationExceptionpublic static ImageUploadApi[] getRegisteredImplemtations()
public abstract java.util.List allAccounts()
protected static void versionCheck()
public static java.util.List allAccountsForAllApis()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||