GDocsService
Description
In BBj 11.0 and higher, the GDocsService class is one of the BBj CustomObjects that comprises the GApps utility. This class can used in a BBj application to interface with one of the Google Docs services.
Creation
The GDocsService class is found in <bbj install>/utils/gapps/gapps.bbj.
GDocsService()
Parameters
None.
Methods of GDocsService
|
Return Value |
Method |
|---|---|
|
void |
createFolder(string folderName) |
|
static DocsService |
|
|
getDocument(string resourceID) |
|
|
getDocument(string title, string type, boolean createIfNeeded) |
|
|
getDocument(string title, string type, string mimeType, string folder, boolean createIfNeeded) |
|
|
uploadDocument(string fileName, string title, string type, string folder, boolean convert) |
|
|
uploadDocument(string fileName, string title, string type, string folder, boolean convert, boolean overwrite) |
Methods inherited from GAppsService
|
Return Value |
Method |
|---|---|
|
int |
|
|
string |
|
|
string |
getUser() |
|
string |
|
|
boolean |
isAuthenticated(boolean promptUser) |
|
void |
|
|
void |
setUserCredentials(string user, string password) |
|
void |
setUserCredentials(string user, string password) |
|
void |
setUserToken(string token) |
|
void |
setUserToken(string token, boolean remember) |
Remarks
This class extends a GAppsService.
Constants
|
Name |
Value |
|
FILE_NOT_FOUND_ERROR |
303 |
|
DOC_NOT_FOUND_ERROR |
304 |
|
UPLOAD_ERROR |
305 |
|
CREATE_ERROR |
306 |
|
ALREADY_EXISTS_ERROR |
307 |
Example
|