public class OneDriveBlobProvider extends AbstractLiveConnectBlobProvider<OneDriveOAuth2ServiceProvider>
blobProviderId, propertiesMAX_RESULT| Constructor and Description |
|---|
OneDriveBlobProvider() |
| Modifier and Type | Method and Description |
|---|---|
List<AppLink> |
getAppLinks(String username,
ManagedBlob blob)
Returns a list of application links for the given blob.
|
protected String |
getCacheName() |
protected org.nuxeo.onedrive.client.OneDriveAPI |
getOneDriveAPI(com.google.api.client.auth.oauth2.Credential credential) |
protected org.nuxeo.onedrive.client.OneDriveAPI |
getOneDriveAPI(LiveConnectFileInfo fileInfo) |
protected String |
getPageProviderNameForUpdate() |
InputStream |
getStream(ManagedBlob blob)
Gets an
InputStream for the data of a managed blob. |
InputStream |
getThumbnail(ManagedBlob blob)
Gets an
InputStream for a thumbnail of a managed blob. |
URI |
getURI(ManagedBlob blob,
BlobManager.UsageHint usage,
javax.servlet.http.HttpServletRequest servletRequest)
Gets an
URI for the content of a managed blob. |
protected org.nuxeo.onedrive.client.OneDriveFile |
prepareOneDriveFile(LiveConnectFileInfo fileInfo) |
protected LiveConnectFile |
retrieveFile(LiveConnectFileInfo fileInfo)
Retrieves the file with API.
|
protected org.nuxeo.onedrive.client.OneDriveFile.Metadata |
retrieveOneDriveFileMetadata(LiveConnectFileInfo fileInfo) |
asURI, buildBlobKey, checkChangesAndUpdateBlob, close, getCredential, getCredential, getCredential, getCredentialFactory, getFile, getFileFromCache, getFromCache, getOAuth2Provider, hasChanged, invalidateInCache, isVersion, performsExternalAccessControl, processDocumentsUpdate, putFileInCache, putInCache, readBlob, toBlob, toBlob, toFileInfo, toFileInfo, writeBlobinitialize, supportsUserUpdate, supportsUserUpdateDefaultFalse, supportsUserUpdateDefaultTrueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfreezeVersion, getAvailableConversions, getBinaryManager, getConvertedStream, initialize, supportsUserUpdatepublic OneDriveBlobProvider()
protected String getCacheName()
getCacheName in class AbstractLiveConnectBlobProvider<OneDriveOAuth2ServiceProvider>protected String getPageProviderNameForUpdate()
getPageProviderNameForUpdate in class AbstractLiveConnectBlobProvider<OneDriveOAuth2ServiceProvider>public URI getURI(ManagedBlob blob, BlobManager.UsageHint usage, javax.servlet.http.HttpServletRequest servletRequest) throws IOException
BlobProviderURI for the content of a managed blob.blob - the managed blobusage - BlobManager.UsageHintservletRequest - the servlet request, or nullURI, or null if none availableIOExceptionpublic InputStream getStream(ManagedBlob blob) throws IOException
BlobProviderInputStream for the data of a managed blob.
Like all InputStream, the result must be closed when done with it to avoid resource leaks.
blob - the managed blobIOExceptionpublic InputStream getThumbnail(ManagedBlob blob) throws IOException
BlobProviderInputStream for a thumbnail of a managed blob.
Like all InputStream, the result must be closed when done with it to avoid resource leaks.
blob - the managed blobIOExceptionpublic List<AppLink> getAppLinks(String username, ManagedBlob blob) throws IOException
BlobProviderIOExceptionprotected org.nuxeo.onedrive.client.OneDriveAPI getOneDriveAPI(LiveConnectFileInfo fileInfo) throws IOException
IOExceptionprotected org.nuxeo.onedrive.client.OneDriveAPI getOneDriveAPI(com.google.api.client.auth.oauth2.Credential credential)
protected LiveConnectFile retrieveFile(LiveConnectFileInfo fileInfo) throws IOException
AbstractLiveConnectBlobProviderretrieveFile in class AbstractLiveConnectBlobProvider<OneDriveOAuth2ServiceProvider>fileInfo - the file infoIOExceptionprotected org.nuxeo.onedrive.client.OneDriveFile.Metadata retrieveOneDriveFileMetadata(LiveConnectFileInfo fileInfo) throws IOException
IOExceptionprotected org.nuxeo.onedrive.client.OneDriveFile prepareOneDriveFile(LiveConnectFileInfo fileInfo) throws IOException
IOExceptionCopyright © 2016 Nuxeo SA. All rights reserved.