public class DropboxBlobUploader extends Object implements JSFBlobUploader
Modifier and Type | Field and Description |
---|---|
protected String |
id |
static String |
UPLOAD_DROPBOX_FACET_NAME |
Constructor and Description |
---|
DropboxBlobUploader(String id) |
Modifier and Type | Method and Description |
---|---|
protected Blob |
createBlob(LiveConnectFileInfo fileInfo)
Creates a Dropbox managed blob.
|
void |
encodeBeginUpload(javax.faces.component.UIInput parent,
javax.faces.context.FacesContext context,
String onClick)
Generates the HTML for an upload choice.
|
String |
getChoice()
Gets the choice key associated to this uploader.
|
protected String |
getClientId() |
protected DropboxBlobProvider |
getDropboxBlobProvider() |
void |
hookSubComponent(javax.faces.component.UIInput parent)
Constructs the needed subcomponent.
|
boolean |
isEnabled()
Dropbox upload button is added to the file widget if and only if Dropbox OAuth service provider is enabled
|
void |
validateUpload(javax.faces.component.UIInput parent,
javax.faces.context.FacesContext context,
InputFileInfo submitted)
Transforms input into a blob.
|
public static final String UPLOAD_DROPBOX_FACET_NAME
public DropboxBlobUploader(String id)
public String getChoice()
JSFBlobUploader
getChoice
in interface JSFBlobUploader
public void hookSubComponent(javax.faces.component.UIInput parent)
JSFBlobUploader
hookSubComponent
in interface JSFBlobUploader
public void encodeBeginUpload(javax.faces.component.UIInput parent, javax.faces.context.FacesContext context, String onClick) throws IOException
JSFBlobUploader
encodeBeginUpload
in interface JSFBlobUploader
IOException
public void validateUpload(javax.faces.component.UIInput parent, javax.faces.context.FacesContext context, InputFileInfo submitted)
JSFBlobUploader
validateUpload
in interface JSFBlobUploader
submitted
- the value into which the input is storedpublic boolean isEnabled()
isEnabled
in interface JSFBlobUploader
protected Blob createBlob(LiveConnectFileInfo fileInfo)
fileInfo
- the Dropbox file infoprotected String getClientId()
protected DropboxBlobProvider getDropboxBlobProvider()
Copyright © 2016 Nuxeo SA. All rights reserved.