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
IOExceptionGeneralSecurityExceptionpublic void close()
public Map<String,String> getRepositoryInfo() throws IOException
IOExceptionpublic void getSeeds(XThreadStringBuffer idBuffer, String googleDriveQuery) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic com.google.api.services.drive.model.File getObject(String id) throws IOException
IOExceptionpublic void getChildren(XThreadStringBuffer idBuffer, String nodeId) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void getGoogleDriveOutputStream(XThreadInputStream inputStream, String documentURI) throws IOException
IOException