| java.lang.Object | ||||
| ↳ | com.google.gdata.client.Service | |||
| ↳ | com.google.gdata.client.GoogleService | |||
| ↳ | com.google.gdata.client.media.MediaService | |||
| ↳ | com.google.gdata.client.docs.DocsService | |||
Extends the basic MediaService abstraction to define a service that
is preconfigured for access to the Google Documents List Data API.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DocsService.Versions | GData versions supported by the Google Documents List Data API. | ||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | DOCS_SERVICE | The abbreviated name of Google Documents List Data API recognized by Google. | |||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.client.media.MediaService
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DEFAULT_VERSION | Default GData version used by the Google Documents List Data API. | ||||||||||
| DOCS_SERVICE_VERSION | The version ID of the service. | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.client.media.MediaService
| |||||||||||
From class
com.google.gdata.client.GoogleService
| |||||||||||
From class
com.google.gdata.client.Service
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an instance connecting to the Google Documents List Data API for
an application with the name
applicationName. | |||||||||||
Constructs an instance connecting to the Google Documents List Data API for
an application with the name
applicationName and the given GDataRequestFactory and AuthTokenFactory. | |||||||||||
Constructs an instance connecting to the Google Documents List Data API
with name
serviceName for an application with the name applicationName. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds the Google Docs extensions.
| |||||||||||
Deletes an existing AclEntry from the specified feed URL.
| |||||||||||
Returns information about the service version.
| |||||||||||
Returns the current GData version used by the Google Documents List Data
API.
| |||||||||||
Inserts a new
AclEntry into a feed
associated with the target service. | |||||||||||
Start a new request to download the documents that match all search
criteria as a zip file.
| |||||||||||
Updates an existing
AclEntry by writing
it to the specified feed URL. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gdata.client.media.MediaService
| |||||||||||
From class
com.google.gdata.client.GoogleService
| |||||||||||
From class
com.google.gdata.client.Service
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.client.AuthTokenFactory.TokenListener
| |||||||||||
The abbreviated name of Google Documents List Data API recognized by Google. The service name is used when requesting an authentication token.
Default GData version used by the Google Documents List Data API.
The version ID of the service.
Constructs an instance connecting to the Google Documents List Data API for
an application with the name applicationName.
| applicationName | The name of the client application accessing the service. Application names should preferably have the format [company-id]-[app-name]-[app-version]. The name will be used by the Google servers to monitor the source of authentication. |
|---|
Constructs an instance connecting to the Google Documents List Data API for
an application with the name applicationName and the given GDataRequestFactory and AuthTokenFactory. Use this constructor to
override the default factories.
| applicationName | The name of the client application accessing the service. Application names should preferably have the format [company-id]-[app-name]-[app-version]. The name will be used by the Google servers to monitor the source of authentication. |
|---|---|
| requestFactory | The request factory that generates gdata request objects |
| authTokenFactory | The factory that creates auth tokens |
Constructs an instance connecting to the Google Documents List Data API
with name serviceName for an application with the name applicationName. The service will authenticate at the provided domainName.
| applicationName | The name of the client application accessing the service. Application names should preferably have the format [company-id]-[app-name]-[app-version]. The name will be used by the Google servers to monitor the source of authentication. |
|---|---|
| protocol | Name of protocol to use for authentication ("http"/"https") |
| domainName | The name of the domain hosting the login handler |
Adds the Google Docs extensions.
Deletes an existing AclEntry from the specified feed URL. specified edit URL.
This is a convenience method. It constructs the entry edit URL from the feed URL and scope.
| aclFeedUrl | The POST URI associated with the target acl feed |
|---|---|
| scope | The scope of the to-be-deleted acl |
| IOException | an ill-formed URI, internal error. See makeEntryUrl |
|---|---|
| ServiceException | delete request failed due to lack of permissions, unsupported role or scope, system error, etc |
Returns information about the service version.
Returns the current GData version used by the Google Documents List Data API.
Inserts a new AclEntry into a feed
associated with the target service. It will return the inserted AclEntry,
including any additional attributes or extensions set by the GData server.
This is a convenience method. It constructs the AclEntry from the specified AclScope and AclRole.
| aclFeedUrl | The POST URL associated with the target acl feed |
|---|---|
| scope | The scope of the new acl |
| role | The desired role for scope |
| IOException | an ill-formed URI, internal error. See makeEntryUrl |
|---|---|
| ServiceException | insert request failed due to lack of permissions, scope already defined on this feed, unsupported role or scope, system error, etc |
Start a new request to download the documents that match all search criteria as a zip file.
| exportFeedUrl | The POST URL associated with the target export feed. |
|---|---|
| params | The search criteria. |
| IOException | an ill-formed URI, internal error. |
|---|---|
| ServiceException | insert request failed due to lack of permissions, scope already defined on this feed, unsupported role or scope, system error, etc. |
Updates an existing AclEntry by writing
it to the specified feed URL. The resulting AclEntry (after update)
will be returned.
This is a convenience method. It constructs the entry edit URL from the feed URL and scope, and also constructs the AclEntry.
| aclFeedUrl | The POST URL associated with the target acl feed |
|---|---|
| scope | The scope of the to-be-updated acl |
| role | The desired role for scope |
| IOException | an ill-formed URI, internal error. See makeEntryUrl |
|---|---|
| ServiceException | update request failed due to lack of permissions, unsupported role or scope, system error, etc |