public class OneDriveBlobProvider extends AbstractLiveConnectBlobProvider<OneDriveOAuth2ServiceProvider>
blobProviderId, properties
MAX_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, writeBlob
initialize, supportsUserUpdate, supportsUserUpdateDefaultFalse, supportsUserUpdateDefaultTrue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAvailableConversions, getBinaryManager, initialize, supportsUserUpdate
freezeVersion, getConvertedStream
public 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
BlobProvider
URI
for the content of a managed blob.blob
- the managed blobusage
- BlobManager.UsageHint
servletRequest
- the servlet request, or null
URI
, or null
if none availableIOException
public InputStream getStream(ManagedBlob blob) throws IOException
BlobProvider
InputStream
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 blobIOException
public InputStream getThumbnail(ManagedBlob blob) throws IOException
BlobProvider
InputStream
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 blobIOException
public List<AppLink> getAppLinks(String username, ManagedBlob blob) throws IOException
BlobProvider
IOException
protected org.nuxeo.onedrive.client.OneDriveAPI getOneDriveAPI(LiveConnectFileInfo fileInfo) throws IOException
IOException
protected org.nuxeo.onedrive.client.OneDriveAPI getOneDriveAPI(com.google.api.client.auth.oauth2.Credential credential)
protected LiveConnectFile retrieveFile(LiveConnectFileInfo fileInfo) throws IOException
AbstractLiveConnectBlobProvider
retrieveFile
in class AbstractLiveConnectBlobProvider<OneDriveOAuth2ServiceProvider>
fileInfo
- the file infoIOException
protected org.nuxeo.onedrive.client.OneDriveFile.Metadata retrieveOneDriveFileMetadata(LiveConnectFileInfo fileInfo) throws IOException
IOException
protected org.nuxeo.onedrive.client.OneDriveFile prepareOneDriveFile(LiveConnectFileInfo fileInfo) throws IOException
IOException
Copyright © 2018 Nuxeo. All rights reserved.