org.exoplatform.clouddrive.box
Class BoxConnector

java.lang.Object
  extended by org.exoplatform.container.component.BaseComponentPlugin
      extended by org.exoplatform.clouddrive.CloudDriveConnector
          extended by org.exoplatform.clouddrive.box.BoxConnector
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class BoxConnector
extends org.exoplatform.clouddrive.CloudDriveConnector

Created by The eXo Platform SAS

Version:
$Id: BoxConnector.java 00000 Aug 30, 2013 pnedonosko $
Author:
Peter Nedonosko

Field Summary
static String CONFIG_LOGIN_SSO_PARTNERIDPID
          Partner's PartnerIdpId used by Box SSO support.
static String CONFIG_LOGIN_SSO_URL
          Full URL for Box SSO support without redirect URL at the end.
 
Fields inherited from class org.exoplatform.clouddrive.CloudDriveConnector
config, CONFIG_CONNECTOR_HOST, CONFIG_CONNECTOR_SCHEMA, CONFIG_LOGIN_SSO, CONFIG_PROVIDER_CLIENT_ID, CONFIG_PROVIDER_CLIENT_SECRET, CONFIG_PROVIDER_ID, CONFIG_PROVIDER_NAME, connectorHost, connectorSchema, jcrFinder, jcrService, LOG, loginSSO, provider, PROVIDER_REQUEST_ATTEMPT_TIMEOUT, PROVIDER_REQUEST_ATTEMPTS, sessionProviders
 
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name
 
Constructor Summary
BoxConnector(org.exoplatform.services.jcr.RepositoryService jcrService, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders, org.exoplatform.clouddrive.jcr.NodeFinder finder, org.exoplatform.container.xml.InitParams params)
           
 
Method Summary
protected  org.exoplatform.clouddrive.CloudUser authenticate(String code)
           
protected  org.exoplatform.clouddrive.CloudDrive createDrive(org.exoplatform.clouddrive.CloudUser user, javax.jcr.Node driveNode)
           
protected  org.exoplatform.clouddrive.CloudProvider createProvider()
           
protected  String getConnectorHost()
          
protected  BoxProvider getProvider()
          
protected  org.exoplatform.clouddrive.CloudDrive loadDrive(javax.jcr.Node driveNode)
           
 
Methods inherited from class org.exoplatform.clouddrive.CloudDriveConnector
getClientId, getClientSecret, getConnectorSchema, getProviderId, getProviderName, sessionProvider
 
Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_LOGIN_SSO_PARTNERIDPID

public static final String CONFIG_LOGIN_SSO_PARTNERIDPID
Partner's PartnerIdpId used by Box SSO support. It will be used to construct the SSO auth link.

See Also:
Constant Field Values

CONFIG_LOGIN_SSO_URL

public static final String CONFIG_LOGIN_SSO_URL
Full URL for Box SSO support without redirect URL at the end. This URL will be used to construct auth link by adding encoded redirect URL at the end. If this parameter present in the configuration it will be preferred to use instead of constructing from CONFIG_LOGIN_SSO_PARTNERIDPID.

See Also:
Constant Field Values
Constructor Detail

BoxConnector

public BoxConnector(org.exoplatform.services.jcr.RepositoryService jcrService,
                    org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
                    org.exoplatform.clouddrive.jcr.NodeFinder finder,
                    org.exoplatform.container.xml.InitParams params)
             throws org.exoplatform.clouddrive.ConfigurationException
Throws:
org.exoplatform.clouddrive.ConfigurationException
Method Detail

getProvider

protected BoxProvider getProvider()

Overrides:
getProvider in class org.exoplatform.clouddrive.CloudDriveConnector

getConnectorHost

protected String getConnectorHost()

Overrides:
getConnectorHost in class org.exoplatform.clouddrive.CloudDriveConnector

createProvider

protected org.exoplatform.clouddrive.CloudProvider createProvider()
Specified by:
createProvider in class org.exoplatform.clouddrive.CloudDriveConnector

authenticate

protected org.exoplatform.clouddrive.CloudUser authenticate(String code)
                                                     throws org.exoplatform.clouddrive.CloudDriveException
Specified by:
authenticate in class org.exoplatform.clouddrive.CloudDriveConnector
Throws:
org.exoplatform.clouddrive.CloudDriveException

createDrive

protected org.exoplatform.clouddrive.CloudDrive createDrive(org.exoplatform.clouddrive.CloudUser user,
                                                            javax.jcr.Node driveNode)
                                                     throws org.exoplatform.clouddrive.CloudDriveException,
                                                            javax.jcr.RepositoryException
Specified by:
createDrive in class org.exoplatform.clouddrive.CloudDriveConnector
Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

loadDrive

protected org.exoplatform.clouddrive.CloudDrive loadDrive(javax.jcr.Node driveNode)
                                                   throws org.exoplatform.clouddrive.DriveRemovedException,
                                                          org.exoplatform.clouddrive.CloudDriveException,
                                                          javax.jcr.RepositoryException
Specified by:
loadDrive in class org.exoplatform.clouddrive.CloudDriveConnector
Throws:
org.exoplatform.clouddrive.DriveRemovedException
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.