public class OneDriveBlobUploader extends Object implements JSFBlobUploader
Modifier and Type | Field and Description |
---|---|
protected String |
id |
static String |
UPLOAD_ONEDRIVE_FACET_NAME |
Constructor and Description |
---|
OneDriveBlobUploader(String id) |
Modifier and Type | Method and Description |
---|---|
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(OneDriveOAuth2ServiceProvider provider) |
protected OneDriveBlobProvider |
getOneDriveBlobProvider() |
void |
hookSubComponent(javax.faces.component.UIInput parent)
Constructs the needed subcomponent.
|
boolean |
isEnabled()
OneDrive upload button is added to the file widget if and only if OneDrive 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_ONEDRIVE_FACET_NAME
public OneDriveBlobUploader(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
true
if OneDrive OAuth service provider is enabled or false
otherwiseprotected String getClientId(OneDriveOAuth2ServiceProvider provider)
protected OneDriveBlobProvider getOneDriveBlobProvider()
Copyright © 2016 Nuxeo SA. All rights reserved.