Class GoogleDriveSession
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.googledrive.GoogleDriveSession
-
public class GoogleDriveSession extends java.lang.Object- Author:
- andrew
-
-
Constructor Summary
Constructors Constructor Description GoogleDriveSession(java.lang.String clientId, java.lang.String clientSecret, java.lang.String refreshToken)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close session.voidgetChildren(org.apache.manifoldcf.connectorcommon.common.XThreadStringBuffer idBuffer, java.lang.String nodeId)Get the list of child documents for a document.voidgetGoogleDriveOutputStream(org.apache.manifoldcf.connectorcommon.common.XThreadInputStream inputStream, java.lang.String documentURI)Get a stream representing the specified document.com.google.api.services.drive.model.FilegetObject(java.lang.String id)Get an individual document.java.util.Map<java.lang.String,java.lang.String>getRepositoryInfo()Obtain repository information.voidgetSeeds(org.apache.manifoldcf.connectorcommon.common.XThreadStringBuffer idBuffer, java.lang.String googleDriveQuery)Get the list of matching root documents, e.g.
-
-
-
Constructor Detail
-
GoogleDriveSession
public GoogleDriveSession(java.lang.String clientId, java.lang.String clientSecret, java.lang.String refreshToken) throws java.io.IOException, java.security.GeneralSecurityExceptionConstructor. Create a session.- Throws:
java.io.IOExceptionjava.security.GeneralSecurityException
-
-
Method Detail
-
close
public void close()
Close session.
-
getRepositoryInfo
public java.util.Map<java.lang.String,java.lang.String> getRepositoryInfo() throws java.io.IOExceptionObtain repository information.- Throws:
java.io.IOException
-
getSeeds
public void getSeeds(org.apache.manifoldcf.connectorcommon.common.XThreadStringBuffer idBuffer, java.lang.String googleDriveQuery) throws java.io.IOException, java.lang.InterruptedExceptionGet the list of matching root documents, e.g. seeds.- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
getObject
public com.google.api.services.drive.model.File getObject(java.lang.String id) throws java.io.IOExceptionGet an individual document.- Throws:
java.io.IOException
-
getChildren
public void getChildren(org.apache.manifoldcf.connectorcommon.common.XThreadStringBuffer idBuffer, java.lang.String nodeId) throws java.io.IOException, java.lang.InterruptedExceptionGet the list of child documents for a document.- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
getGoogleDriveOutputStream
public void getGoogleDriveOutputStream(org.apache.manifoldcf.connectorcommon.common.XThreadInputStream inputStream, java.lang.String documentURI) throws java.io.IOExceptionGet a stream representing the specified document.- Throws:
java.io.IOException
-
-