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