Modifier and Type | Field and Description |
---|---|
protected org.springframework.social.google.docs.connect.GoogleDocsConnectionFactory |
connectionFactory
A connection factory to use for managing the OAuth process with Google Docs.
|
protected boolean |
enabled
If this Google Docs subsystem is currently enabled or not.
|
protected int |
idleThreshold
The threshold allowed when checking if a document has concurrent editors.
|
protected org.springframework.core.io.Resource |
newDocument
A blank Google Docs representation of a Word document to use when creating a new Google document.
|
protected org.springframework.core.io.Resource |
newPresentation
A blank Google Docs representation of a PowerPoint presentation to use when creating a new Google presentation.
|
protected org.springframework.core.io.Resource |
newSpreadsheet
A blank Google Docs representation of an Excel spreadsheet to use when creating a new Google spreadsheet.
|
protected java.lang.String |
redirectURI
A default redirectURI to specify to the OAuth handshake.
|
Constructor and Description |
---|
AbstractGoogleImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRedirectURI()
Returns the redirect URI to use when authorizing the application through OAuth.
|
boolean |
isEnabled()
Returns if the Google Docs subsystem is enabled.
|
void |
setConnectionFactory(org.springframework.social.google.docs.connect.GoogleDocsConnectionFactory connectionFactory)
Used by Spring to inject the Google Docs connection factory.
|
void |
setEnabled(boolean enabled)
Used by Spring to inject whether or not the Google Docs subsystem is enabled.
|
void |
setIdleThreshold(int idleThreshold)
Used by Spring to inject the threshold to use when checking for concurrent Google Docs editors.
|
void |
setNewDocument(org.springframework.core.io.Resource newDocument)
Used by Spring to inject the blank Word document resource to use when creating a new Google document.
|
void |
setNewPresentation(org.springframework.core.io.Resource newPresentation)
Used by Spring to inject the blank PowerPoint presentation resource to use when creating a new Google presentation.
|
void |
setNewSpreadsheet(org.springframework.core.io.Resource newSpreadsheet)
Used by Spring to inject the blank Excel spreadsheet resource to use when creating a new Google spreadsheet.
|
void |
setRedirectURI(java.lang.String redirectURI)
Used by Spring to inject the redirect URI to use when authorizing the application through OAuth.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkOutForGoogleDocsEditing, completeGoogleDocsAuthentication, createGoogleDocument, discardGoogleDocument, getEditingInGoogleDocsConditions, getGoogleDocsAuthenticationUrl, isGoogleDocsAuthenticated, saveGoogleDocument, uploadGoogleDocument
protected org.springframework.social.google.docs.connect.GoogleDocsConnectionFactory connectionFactory
protected org.springframework.core.io.Resource newDocument
protected org.springframework.core.io.Resource newSpreadsheet
protected org.springframework.core.io.Resource newPresentation
protected int idleThreshold
protected boolean enabled
protected java.lang.String redirectURI
public void setConnectionFactory(org.springframework.social.google.docs.connect.GoogleDocsConnectionFactory connectionFactory)
connectionFactory
- the connection factory instance to use for OAuth connections.public void setNewDocument(org.springframework.core.io.Resource newDocument)
newDocument
- a blank Word document resource.public void setNewSpreadsheet(org.springframework.core.io.Resource newSpreadsheet)
newSpreadsheet
- a blank Excel spreadsheet resource.public void setNewPresentation(org.springframework.core.io.Resource newPresentation)
newPresentation
- a blank PowerPoint presentation resource.public void setIdleThreshold(int idleThreshold)
idleThreshold
- the threshold to use when checking for concurrent Google Docs editors.public void setEnabled(boolean enabled)
enabled
- true if the Google Docs subsystem is enabled, false otherwise.public boolean isEnabled()
public void setRedirectURI(java.lang.String redirectURI)
redirectURI
- the redirect URI to use when authorizing the application through OAuth.public java.lang.String getRedirectURI()