public class SharepointConnector
extends org.exoplatform.clouddrive.cmis.CMISConnector
implements org.exoplatform.clouddrive.cmis.CMISConnectorImpl
| Modifier and Type | Class and Description |
|---|---|
protected class |
SharepointConnector.API
Internal API builder.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
SP_AUTHPROVIDERID
The Constant SP_AUTHPROVIDERID.
|
static String |
SP_PRODUCTNAME
The Constant SP_PRODUCTNAME.
|
static String |
SP_VENDORNAME
The Constant SP_VENDORNAME.
|
config, CONFIG_CONNECTOR_HOST, CONFIG_CONNECTOR_SCHEMA, CONFIG_DISABLE, 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, OAUTH2_CODE, OAUTH2_ERROR, OAUTH2_ERROR_DESCRIPTION, OAUTH2_STATE, predefinedServices, provider, PROVIDER_REQUEST_ATTEMPT_TIMEOUT, PROVIDER_REQUEST_ATTEMPTS, sessionProviders| Constructor and Description |
|---|
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)
Instantiates a new sharepoint connector.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
authenticate, createProvider, exoURL, getProvidercurrentUser, getClientId, getClientSecret, getConnectorHost, getConnectorSchema, getProviderId, getProviderName, isDisabled, redirectLink, sessionProviderpublic static final String SP_VENDORNAME
public static final String SP_PRODUCTNAME
public static final String SP_AUTHPROVIDERID
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
jcrService - the jcr servicesessionProviders - the session providersfinder - the findermimeTypes - the mime typesparams - the paramscodeAuth - the code authorg.exoplatform.clouddrive.ConfigurationException - the configuration exceptionpublic boolean hasSupport(org.apache.chemistry.opencmis.commons.data.RepositoryInfo repo)
hasSupport in interface org.exoplatform.clouddrive.cmis.CMISConnectorImplpublic SharepointConnector getConnector()
getConnector in interface org.exoplatform.clouddrive.cmis.CMISConnectorImplprotected SharepointAPI createAPI(org.exoplatform.clouddrive.cmis.login.CodeAuthentication.Identity userId) throws org.exoplatform.clouddrive.cmis.CMISException, org.exoplatform.clouddrive.CloudDriveException
createAPI in class org.exoplatform.clouddrive.cmis.CMISConnectororg.exoplatform.clouddrive.cmis.CMISExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected SharepointUser createUser(org.exoplatform.clouddrive.cmis.login.CodeAuthentication.Identity userId) throws org.exoplatform.clouddrive.cmis.CMISException, org.exoplatform.clouddrive.CloudDriveException
createUser in class org.exoplatform.clouddrive.cmis.CMISConnectororg.exoplatform.clouddrive.cmis.CMISExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected org.exoplatform.clouddrive.CloudDrive createDrive(org.exoplatform.clouddrive.CloudUser user,
javax.jcr.Node driveNode)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
createDrive in class org.exoplatform.clouddrive.cmis.CMISConnectororg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected org.exoplatform.clouddrive.CloudDrive loadDrive(javax.jcr.Node driveNode)
throws org.exoplatform.clouddrive.DriveRemovedException,
org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
loadDrive in class org.exoplatform.clouddrive.cmis.CMISConnectororg.exoplatform.clouddrive.DriveRemovedExceptionorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected String getAuthProviderId() throws org.exoplatform.clouddrive.ConfigurationException
getAuthProviderId in class org.exoplatform.clouddrive.cmis.CMISConnectororg.exoplatform.clouddrive.ConfigurationExceptionCopyright © 2003–2018 eXo Platform SAS. All rights reserved.