Class BoxProvider


  • public class BoxProvider
    extends org.exoplatform.services.cms.clouddrives.CloudProvider
    Box provider copies GoogleDrive's provider by the code because of OAuth2. Created by The eXo Platform SAS.
    Version:
    $Id: BoxProvider.java 00000 Aug 30, 2013 pnedonosko $
    Author:
    Peter Nedonosko
    • Field Detail

      • authURL

        protected final String authURL
        The auth URL.
      • redirectURL

        protected final String redirectURL
        The redirect URL.
      • loginSSO

        protected final boolean loginSSO
        The login SSO.
      • jcrService

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

      • BoxProvider

        public BoxProvider​(String id,
                           String name,
                           String authURL,
                           String redirectURL,
                           boolean loginSSO,
                           org.exoplatform.services.jcr.RepositoryService jcrService)
        Instantiates a new box provider.
        Parameters:
        id - the id
        name - the name
        authURL - the auth URL
        redirectURL - the redirect URL
        loginSSO - the login SSO
        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
      • getRedirectURL

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

        public boolean isLoginSSO()
        Checks if is login SSO.
        Returns:
        the loginSSO
      • retryOnProviderError

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