Class GoogleProvider
java.lang.Object
org.exoplatform.services.cms.clouddrives.CloudProvider
org.exoplatform.services.cms.clouddrives.gdrive.GoogleProvider
public class GoogleProvider
extends org.exoplatform.services.cms.clouddrives.CloudProvider
Created by The eXo Platform SAS.
- Version:
- $Id: GoogleProvider.java 00000 Oct 13, 2012 pnedonosko $
- Author:
- Peter Nedonosko
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringThe auth URL.protected final org.exoplatform.services.jcr.RepositoryServiceThe jcr service.protected final StringThe redirect URL.Fields inherited from class org.exoplatform.services.cms.clouddrives.CloudProvider
AUTH_NOSTATE, CONNECT_URL_BASE, hashCode, id, name -
Constructor Summary
ConstructorsConstructorDescriptionGoogleProvider(String id, String name, String authURL, String redirectURL, org.exoplatform.services.jcr.RepositoryService jcrService) Instantiates a new google provider. -
Method Summary
Modifier and TypeMethodDescriptionGets the auth URL.getErrorMessage(String error, String errorDescription) Gets the redirect URL.booleanMethods inherited from class org.exoplatform.services.cms.clouddrives.CloudProvider
equals, getErrorMessage, getId, getName, hashCode, toString
-
Field Details
-
authURL
The auth URL. -
redirectURL
The redirect URL. -
jcrService
protected final org.exoplatform.services.jcr.RepositoryService jcrServiceThe jcr service.
-
-
Constructor Details
-
GoogleProvider
public GoogleProvider(String id, String name, String authURL, String redirectURL, org.exoplatform.services.jcr.RepositoryService jcrService) Instantiates a new google provider.- Parameters:
id- the idname- the nameauthURL- the auth URLredirectURL- the redirect URLjcrService- the jcr service
-
-
Method Details
-
getAuthURL
Gets the auth URL.- Specified by:
getAuthURLin classorg.exoplatform.services.cms.clouddrives.CloudProvider- Returns:
- the auth URL
- Throws:
org.exoplatform.services.cms.clouddrives.CloudDriveException- the cloud drive exception
-
getErrorMessage
- Overrides:
getErrorMessagein classorg.exoplatform.services.cms.clouddrives.CloudProvider
-
getRedirectURL
Gets the redirect URL.- Returns:
- the redirectURL
-
retryOnProviderError
public boolean retryOnProviderError()- Specified by:
retryOnProviderErrorin classorg.exoplatform.services.cms.clouddrives.CloudProvider
-