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

    Fields
    Modifier and Type
    Field
    Description
    protected final String
    The auth URL.
    protected final org.exoplatform.services.jcr.RepositoryService
    The jcr service.
    protected final String
    The redirect URL.

    Fields inherited from class org.exoplatform.services.cms.clouddrives.CloudProvider

    AUTH_NOSTATE, CONNECT_URL_BASE, hashCode, id, name
  • 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

    Modifier and Type
    Method
    Description
    Gets the auth URL.
    getErrorMessage(String error, String errorDescription)
    Gets the redirect URL.
    boolean

    Methods inherited from class org.exoplatform.services.cms.clouddrives.CloudProvider

    equals, getErrorMessage, getId, getName, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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 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 id
      name - the name
      authURL - the auth URL
      redirectURL - the redirect URL
      jcrService - the jcr service
  • Method Details

    • 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