public class SharepointAPI
extends org.exoplatform.clouddrive.cmis.CMISAPI
| Modifier and Type | Class and Description |
|---|---|
protected class |
SharepointAPI.ChangesIterator
The Class ChangesIterator.
|
protected class |
SharepointAPI.RESTClient
The Class RESTClient.
|
protected class |
SharepointAPI.SPChangeToken
The Class SPChangeToken.
|
class |
SharepointAPI.User
SharePoint user data.
|
org.exoplatform.clouddrive.cmis.CMISAPI.ChangeToken, org.exoplatform.clouddrive.cmis.CMISAPI.ChildrenIterator, org.exoplatform.clouddrive.cmis.CMISAPI.Context, org.exoplatform.clouddrive.cmis.CMISAPI.TimeChangeToken| Modifier and Type | Field and Description |
|---|---|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
protected static String |
MAJOR_VERSION_ID_SUFFIX
The Constant MAJOR_VERSION_ID_SUFFIX.
|
protected SharepointAPI.RESTClient |
nativeClient
HTTP client to native SP APIes.
|
protected String |
password
Access parameter for HTTP client to native SP APIes.
|
protected static String |
REST_CONTEXTINFO
The Constant REST_CONTEXTINFO.
|
protected static String |
REST_CURRENTUSER
The Constant REST_CURRENTUSER.
|
protected static String |
REST_SITETITLE
The Constant REST_SITETITLE.
|
protected org.apache.http.HttpHost |
siteHost
The site host.
|
protected String |
siteTitle
SharePoint site title.
|
protected String |
siteURL
Access parameter for HTTP client to native SP APIes.
|
protected SharepointAPI.User |
siteUser
Current SharePoint user.
|
protected String |
userName
Access parameter for HTTP client to native SP APIes.
|
CONNECTION_TIMEOUT, customDomain, EMPTY_TOKEN, emptyToken, enterpriseId, enterpriseName, FILE_PROPERTY_SET, fileContext, FOLDER_PAGE_SIZE, FOLDER_PROPERTY_SET, folderContext, OBJECT_PAGE_SIZE, parameters, productName, productVersion, repositoryId, repositoryName, session, TOKEN_DATATIME_FORMAT, vendorName| Modifier | Constructor and Description |
|---|---|
protected |
SharepointAPI(String serviceURL,
String userName,
String password)
Create API from user credentials.
|
| Modifier and Type | Method and Description |
|---|---|
protected SharepointAPI.ChangesIterator |
getChanges(org.exoplatform.clouddrive.cmis.CMISAPI.ChangeToken changeToken) |
protected String |
getPassword() |
String |
getRepositoryId() |
protected String |
getServiceURL() |
String |
getSiteTitle()
Gets the sharePoint site title.
|
String |
getSiteURL()
Gets the access parameter for HTTP client to native SP APIes.
|
SharepointAPI.User |
getSiteUser()
Gets the current SharePoint user.
|
protected String |
getUser() |
String |
getUserTitle() |
protected String |
readError(org.exoplatform.ws.frameworks.json.value.JsonValue json)
Read error.
|
protected org.exoplatform.ws.frameworks.json.value.JsonValue |
readJson(org.apache.http.HttpResponse resp)
Read json.
|
protected String |
readSiteTitle()
Read site name from ShapePoint API.
|
protected SharepointAPI.User |
readSiteUser()
Read current user name from ShapePoint API.
|
protected String |
readText(org.apache.http.HttpResponse resp)
Read text.
|
protected org.exoplatform.clouddrive.cmis.CMISAPI.ChangeToken |
readToken(String tokenString) |
protected org.apache.chemistry.opencmis.client.api.CmisObject |
rename(String newName,
org.apache.chemistry.opencmis.client.api.CmisObject obj,
org.apache.chemistry.opencmis.client.api.Session session) |
binding, copyDocument, copyDocument, copyFolder, copyFolder, createDocument, createFolder, deleteDocument, deleteFolder, emptyToken, formatTokenTime, getAllVersion, getFolderItems, getFolderItems, getLatestDocumentVersionOrPWC, getLink, getLink, getObject, getParamaters, getParents, getProductName, getProductVersion, getRepositories, getRepositoryInfo, getRepositoryName, getRootFolder, getVendorName, initRepository, isDocument, isFileable, isFolder, isRelationship, isSyncableChange, isVersionable, readDocumentVersionOrPWC, readObject, readToken, repositories, session, session, shouldCheckinRename, updateContent, updateObject, updateUserprotected static final org.exoplatform.services.log.Log LOG
protected static final String MAJOR_VERSION_ID_SUFFIX
protected static final String REST_CONTEXTINFO
protected static final String REST_CURRENTUSER
protected static final String REST_SITETITLE
protected final String siteURL
protected final String userName
protected final String password
protected final org.apache.http.HttpHost siteHost
protected final SharepointAPI.RESTClient nativeClient
protected final SharepointAPI.User siteUser
protected final String siteTitle
protected SharepointAPI.ChangesIterator getChanges(org.exoplatform.clouddrive.cmis.CMISAPI.ChangeToken changeToken) throws org.exoplatform.clouddrive.cmis.CMISException, org.exoplatform.clouddrive.CloudDriveAccessException
getChanges in class org.exoplatform.clouddrive.cmis.CMISAPIorg.exoplatform.clouddrive.cmis.CMISExceptionorg.exoplatform.clouddrive.CloudDriveAccessExceptionpublic String getUserTitle()
getUserTitle in class org.exoplatform.clouddrive.cmis.CMISAPIprotected String getUser()
getUser in class org.exoplatform.clouddrive.cmis.CMISAPIprotected String getPassword()
getPassword in class org.exoplatform.clouddrive.cmis.CMISAPIprotected String getServiceURL()
getServiceURL in class org.exoplatform.clouddrive.cmis.CMISAPIpublic String getRepositoryId()
getRepositoryId in class org.exoplatform.clouddrive.cmis.CMISAPIpublic SharepointAPI.User getSiteUser()
public String getSiteTitle()
public String getSiteURL()
protected String readSiteTitle() throws SharepointServiceNotFound, SharepointException, org.exoplatform.clouddrive.CloudDriveAccessException
SharepointServiceNotFound - the sharepoint service not foundSharepointException - the sharepoint exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionprotected SharepointAPI.User readSiteUser() throws SharepointException, SharepointServiceNotFound, org.exoplatform.clouddrive.CloudDriveAccessException
SharepointException - the sharepoint exceptionSharepointServiceNotFound - the sharepoint service not foundorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionprotected org.exoplatform.ws.frameworks.json.value.JsonValue readJson(org.apache.http.HttpResponse resp)
throws org.exoplatform.ws.frameworks.json.impl.JsonException,
IllegalStateException,
IOException,
SharepointException
resp - the resporg.exoplatform.ws.frameworks.json.impl.JsonException - the json exceptionIllegalStateException - the illegal state exceptionIOException - Signals that an I/O exception has occurred.SharepointException - the sharepoint exceptionprotected String readText(org.apache.http.HttpResponse resp) throws IllegalStateException, IOException
resp - the respIllegalStateException - the illegal state exceptionIOException - Signals that an I/O exception has occurred.protected String readError(org.exoplatform.ws.frameworks.json.value.JsonValue json)
json - the jsonprotected org.exoplatform.clouddrive.cmis.CMISAPI.ChangeToken readToken(String tokenString) throws org.exoplatform.clouddrive.cmis.CMISException
readToken in class org.exoplatform.clouddrive.cmis.CMISAPIorg.exoplatform.clouddrive.cmis.CMISExceptionprotected org.apache.chemistry.opencmis.client.api.CmisObject rename(String newName, org.apache.chemistry.opencmis.client.api.CmisObject obj, org.apache.chemistry.opencmis.client.api.Session session)
rename in class org.exoplatform.clouddrive.cmis.CMISAPICopyright © 2003–2018 eXo Platform SAS. All rights reserved.