public class BoxBlobProvider extends AbstractLiveConnectBlobProvider<BoxOAuth2ServiceProvider>
blobProviderId, propertiesMAX_RESULT| Constructor and Description |
|---|
BoxBlobProvider() |
| Modifier and Type | Method and Description |
|---|---|
ManagedBlob |
freezeVersion(ManagedBlob blob,
Document doc)
Returns a new managed blob pointing to a fixed version of the original blob.
|
protected com.box.sdk.BoxAPIConnection |
getBoxClient(com.google.api.client.auth.oauth2.Credential credential) |
protected com.box.sdk.BoxAPIConnection |
getBoxClient(NuxeoOAuth2Token token) |
protected String |
getCacheName() |
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 com.box.sdk.BoxFile.Info |
retrieveBoxFileInfo(LiveConnectFileInfo fileInfo) |
protected LiveConnectFile |
retrieveFile(LiveConnectFileInfo fileInfo)
Retrieves the file with API.
|
asURI, buildBlobKey, checkChangesAndUpdateBlob, close, getCredential, getCredential, getCredential, getCredentialFactory, getFile, getFileFromCache, getFromCache, getOAuth2Provider, hasChanged, invalidateInCache, isVersion, processDocumentsUpdate, putFileInCache, putInCache, readBlob, toBlob, toBlob, toFileInfo, writeBlobinitialize, supportsUserUpdate, supportsUserUpdateDefaultFalse, supportsUserUpdateDefaultTrueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAppLinks, getAvailableConversions, getBinaryManager, getConvertedStream, initialize, supportsUserUpdatepublic BoxBlobProvider()
protected String getCacheName()
getCacheName in class AbstractLiveConnectBlobProvider<BoxOAuth2ServiceProvider>public String getPageProviderNameForUpdate()
getPageProviderNameForUpdate in class AbstractLiveConnectBlobProvider<BoxOAuth2ServiceProvider>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 ManagedBlob freezeVersion(ManagedBlob blob, Document doc) throws IOException
BlobProviderblob - the original managed blobdoc - the document that holds the blobnull if no change is neededIOExceptionprotected com.box.sdk.BoxAPIConnection getBoxClient(NuxeoOAuth2Token token) throws IOException
IOExceptionprotected com.box.sdk.BoxAPIConnection getBoxClient(com.google.api.client.auth.oauth2.Credential credential) throws IOException
IOExceptionprotected LiveConnectFile retrieveFile(LiveConnectFileInfo fileInfo) throws IOException
AbstractLiveConnectBlobProviderretrieveFile in class AbstractLiveConnectBlobProvider<BoxOAuth2ServiceProvider>fileInfo - the file infoIOExceptionprotected com.box.sdk.BoxFile.Info retrieveBoxFileInfo(LiveConnectFileInfo fileInfo) throws IOException
IOExceptionCopyright © 2016 Nuxeo SA. All rights reserved.