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.CloudProviderCreated by The eXo Platform SAS.- Version:
- $Id: GoogleProvider.java 00000 Oct 13, 2012 pnedonosko $
- Author:
- Peter Nedonosko
-
-
Field Summary
Fields Modifier and Type Field Description protected StringauthURLThe auth URL.protected org.exoplatform.services.jcr.RepositoryServicejcrServiceThe jcr service.protected StringredirectURLThe redirect URL.
-
Constructor Summary
Constructors Constructor Description GoogleProvider(String id, String name, String authURL, String redirectURL, org.exoplatform.services.jcr.RepositoryService jcrService)Instantiates a new google provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthURL()Gets the auth URL.StringgetErrorMessage(String error, String errorDescription)StringgetRedirectURL()Gets the redirect URL.booleanretryOnProviderError()
-
-
-
Constructor Detail
-
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 Detail
-
getAuthURL
public String getAuthURL() throws org.exoplatform.services.cms.clouddrives.CloudDriveException
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
public String getErrorMessage(String error, String errorDescription)
- Overrides:
getErrorMessagein classorg.exoplatform.services.cms.clouddrives.CloudProvider
-
getRedirectURL
public String getRedirectURL()
Gets the redirect URL.- Returns:
- the redirectURL
-
retryOnProviderError
public boolean retryOnProviderError()
- Specified by:
retryOnProviderErrorin classorg.exoplatform.services.cms.clouddrives.CloudProvider
-
-