...
The primary development for Google Documents integration will be the creation of a ContentHostingHandler which presents Google data to the ContentHostingService, called the GoogleContentHostingHandler. This plugin will generate, and manage ContentEntity objects (GoogleContentEntity and its subclasses GoogleContentResource and GoogleContentCollection) which represent resources maintained by Google. Each GoogleContentResource will contain those identifiers and connection information required to acquire and stream document data from Google to CLE users.
The authority to access a user's documents within Google Documents is obtained by presenting a valid OAuth access token. Such a token is created when the user validates the token through Google's Web applications. In order to manage and track OAuth tokens, an OAuthTokenService will be created. This service will allow retrieval of OAuth tokens which already exist for a user for a particular application. In this way a single Google Document OAuth access token can serve to authorize access to all documents published to the CLE by the same user.