Class 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 Detail

      • authURL

        protected final String authURL
        The auth URL.
      • redirectURL

        protected final String redirectURL
        The redirect URL.
      • jcrService

        protected final org.exoplatform.services.jcr.RepositoryService jcrService
        The jcr service.
    • 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 id
        name - the name
        authURL - the auth URL
        redirectURL - the redirect URL
        jcrService - the jcr service
    • Method Detail

      • getAuthURL

        public String getAuthURL()
                          throws org.exoplatform.services.cms.clouddrives.CloudDriveException
        Gets the auth URL.
        Specified by:
        getAuthURL in class org.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:
        getErrorMessage in class org.exoplatform.services.cms.clouddrives.CloudProvider
      • getRedirectURL

        public String getRedirectURL()
        Gets the redirect URL.
        Returns:
        the redirectURL
      • retryOnProviderError

        public boolean retryOnProviderError()
        Specified by:
        retryOnProviderError in class org.exoplatform.services.cms.clouddrives.CloudProvider