public class GoogleDriveSession
extends java.lang.Object
| Constructor and Description |
|---|
GoogleDriveSession(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String refreshToken)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close session.
|
void |
getChildren(org.apache.manifoldcf.connectorcommon.common.XThreadStringBuffer idBuffer,
java.lang.String nodeId)
Get the list of child documents for a document.
|
void |
getGoogleDriveOutputStream(org.apache.manifoldcf.connectorcommon.common.XThreadInputStream inputStream,
java.lang.String documentURI)
Get a stream representing the specified document.
|
com.google.api.services.drive.model.File |
getObject(java.lang.String id)
Get an individual document.
|
java.util.Map<java.lang.String,java.lang.String> |
getRepositoryInfo()
Obtain repository information.
|
void |
getSeeds(org.apache.manifoldcf.connectorcommon.common.XThreadStringBuffer idBuffer,
java.lang.String googleDriveQuery)
Get the list of matching root documents, e.g.
|
public GoogleDriveSession(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String refreshToken)
throws java.io.IOException,
java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic void close()
public java.util.Map<java.lang.String,java.lang.String> getRepositoryInfo()
throws java.io.IOException
java.io.IOExceptionpublic void getSeeds(org.apache.manifoldcf.connectorcommon.common.XThreadStringBuffer idBuffer,
java.lang.String googleDriveQuery)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic com.google.api.services.drive.model.File getObject(java.lang.String id)
throws java.io.IOException
java.io.IOExceptionpublic void getChildren(org.apache.manifoldcf.connectorcommon.common.XThreadStringBuffer idBuffer,
java.lang.String nodeId)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void getGoogleDriveOutputStream(org.apache.manifoldcf.connectorcommon.common.XThreadInputStream inputStream,
java.lang.String documentURI)
throws java.io.IOException
java.io.IOException