Class DropboxProvider


  • public class DropboxProvider
    extends org.exoplatform.services.cms.clouddrives.CloudProvider
    Dropbox provider.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.exoplatform.clouddrive.dropbox.DropboxConnector.API authFactory
      The auth bilder.
      protected org.exoplatform.services.jcr.RepositoryService jcrService
      The jcr service.
      • Fields inherited from class org.exoplatform.services.cms.clouddrives.CloudProvider

        AUTH_NOSTATE, CONNECT_URL_BASE, hashCode, id, name
    • Constructor Summary

      Constructors 
      Constructor Description
      DropboxProvider​(String id, String name, org.exoplatform.clouddrive.dropbox.DropboxConnector.API authFactory, org.exoplatform.services.jcr.RepositoryService jcrService)
      Instantiates a new dropbox provider.
    • Field Detail

      • authFactory

        protected final org.exoplatform.clouddrive.dropbox.DropboxConnector.API authFactory
        The auth bilder.
      • jcrService

        protected final org.exoplatform.services.jcr.RepositoryService jcrService
        The jcr service.
    • Constructor Detail

      • DropboxProvider

        public DropboxProvider​(String id,
                               String name,
                               org.exoplatform.clouddrive.dropbox.DropboxConnector.API authFactory,
                               org.exoplatform.services.jcr.RepositoryService jcrService)
        Instantiates a new dropbox provider.
        Parameters:
        id - the id
        name - the name
        authFactory - the API factory
        jcrService - the jcr service
    • Method Detail

      • getAuthURL

        public String getAuthURL()
                          throws org.exoplatform.services.cms.clouddrives.CloudDriveException
        Specified by:
        getAuthURL in class org.exoplatform.services.cms.clouddrives.CloudProvider
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
      • retryOnProviderError

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

        public String getErrorMessage​(String error,
                                      String errorDescription)
        Overrides:
        getErrorMessage in class org.exoplatform.services.cms.clouddrives.CloudProvider