org.exoplatform.clouddrive.sharepoint
Class SharepointConnector

java.lang.Object
  extended by org.exoplatform.container.component.BaseComponentPlugin
      extended by org.exoplatform.clouddrive.CloudDriveConnector
          extended by org.exoplatform.clouddrive.cmis.CMISConnector
              extended by org.exoplatform.clouddrive.sharepoint.SharepointConnector
All Implemented Interfaces:
org.exoplatform.clouddrive.cmis.CMISConnectorImpl, org.exoplatform.container.component.ComponentPlugin

public class SharepointConnector
extends org.exoplatform.clouddrive.cmis.CMISConnector
implements org.exoplatform.clouddrive.cmis.CMISConnectorImpl

Sharepoint Connector.
Created by The eXo Platform SAS

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

Nested Class Summary
protected  class SharepointConnector.API
          Internal API builder.
 
Nested classes/interfaces inherited from class org.exoplatform.clouddrive.CloudDriveConnector
org.exoplatform.clouddrive.CloudDriveConnector.PredefinedServices
 
Field Summary
static String SP_AUTHPROVIDERID
           
static String SP_PRODUCTNAME
           
static String SP_VENDORNAME
           
 
Fields inherited from class org.exoplatform.clouddrive.cmis.CMISConnector
CONFIG_PREDEFINED
 
Fields inherited from class org.exoplatform.clouddrive.CloudDriveConnector
config, CONFIG_CONNECTOR_HOST, CONFIG_CONNECTOR_SCHEMA, CONFIG_LOGIN_SSO, CONFIG_PREDEFINED_SERVICES, CONFIG_PROVIDER_CLIENT_ID, CONFIG_PROVIDER_CLIENT_SECRET, CONFIG_PROVIDER_ID, CONFIG_PROVIDER_NAME, connectorHost, connectorSchema, jcrFinder, jcrService, LOG, loginSSO, mimeTypes, predefinedServices, provider, PROVIDER_REQUEST_ATTEMPT_TIMEOUT, PROVIDER_REQUEST_ATTEMPTS, sessionProviders
 
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name
 
Constructor Summary
SharepointConnector(org.exoplatform.services.jcr.RepositoryService jcrService, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders, org.exoplatform.clouddrive.jcr.NodeFinder finder, org.exoplatform.clouddrive.utils.ExtendedMimeTypeResolver mimeTypes, org.exoplatform.container.xml.InitParams params, org.exoplatform.clouddrive.cmis.login.CodeAuthentication codeAuth)
           
 
Method Summary
protected  SharepointAPI createAPI(org.exoplatform.clouddrive.cmis.login.CodeAuthentication.Identity userId)
          
protected  org.exoplatform.clouddrive.CloudDrive createDrive(org.exoplatform.clouddrive.CloudUser user, javax.jcr.Node driveNode)
          
protected  SharepointUser createUser(org.exoplatform.clouddrive.cmis.login.CodeAuthentication.Identity userId)
          
protected  String getAuthProviderId()
          
 SharepointConnector getConnector()
          
 boolean hasSupport(org.apache.chemistry.opencmis.commons.data.RepositoryInfo repo)
          
protected  org.exoplatform.clouddrive.CloudDrive loadDrive(javax.jcr.Node driveNode)
          
 
Methods inherited from class org.exoplatform.clouddrive.cmis.CMISConnector
authenticate, createProvider, exoURL, getProvider
 
Methods inherited from class org.exoplatform.clouddrive.CloudDriveConnector
getClientId, getClientSecret, getConnectorHost, 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

SP_VENDORNAME

public static final String SP_VENDORNAME
See Also:
Constant Field Values

SP_PRODUCTNAME

public static final String SP_PRODUCTNAME
See Also:
Constant Field Values

SP_AUTHPROVIDERID

public static final String SP_AUTHPROVIDERID
See Also:
Constant Field Values
Constructor Detail

SharepointConnector

public SharepointConnector(org.exoplatform.services.jcr.RepositoryService jcrService,
                           org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
                           org.exoplatform.clouddrive.jcr.NodeFinder finder,
                           org.exoplatform.clouddrive.utils.ExtendedMimeTypeResolver mimeTypes,
                           org.exoplatform.container.xml.InitParams params,
                           org.exoplatform.clouddrive.cmis.login.CodeAuthentication codeAuth)
                    throws org.exoplatform.clouddrive.ConfigurationException
Throws:
org.exoplatform.clouddrive.ConfigurationException
Method Detail

hasSupport

public boolean hasSupport(org.apache.chemistry.opencmis.commons.data.RepositoryInfo repo)

Specified by:
hasSupport in interface org.exoplatform.clouddrive.cmis.CMISConnectorImpl

getConnector

public SharepointConnector getConnector()

Specified by:
getConnector in interface org.exoplatform.clouddrive.cmis.CMISConnectorImpl

createAPI

protected SharepointAPI createAPI(org.exoplatform.clouddrive.cmis.login.CodeAuthentication.Identity userId)
                           throws org.exoplatform.clouddrive.cmis.CMISException,
                                  org.exoplatform.clouddrive.CloudDriveException

Overrides:
createAPI in class org.exoplatform.clouddrive.cmis.CMISConnector
Throws:
org.exoplatform.clouddrive.cmis.CMISException
org.exoplatform.clouddrive.CloudDriveException

createUser

protected SharepointUser createUser(org.exoplatform.clouddrive.cmis.login.CodeAuthentication.Identity userId)
                             throws org.exoplatform.clouddrive.cmis.CMISException,
                                    org.exoplatform.clouddrive.CloudDriveException

Overrides:
createUser in class org.exoplatform.clouddrive.cmis.CMISConnector
Throws:
org.exoplatform.clouddrive.cmis.CMISException
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

Overrides:
createDrive in class org.exoplatform.clouddrive.cmis.CMISConnector
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

Overrides:
loadDrive in class org.exoplatform.clouddrive.cmis.CMISConnector
Throws:
org.exoplatform.clouddrive.DriveRemovedException
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

getAuthProviderId

protected String getAuthProviderId()
                            throws org.exoplatform.clouddrive.ConfigurationException

Overrides:
getAuthProviderId in class org.exoplatform.clouddrive.cmis.CMISConnector
Throws:
org.exoplatform.clouddrive.ConfigurationException


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