public class SharepointAPI
extends org.exoplatform.clouddrive.cmis.CMISAPI
| Modifier and Type | Class and Description |
|---|---|
protected class |
SharepointAPI.ChangesIterator |
protected class |
SharepointAPI.RESTClient |
protected class |
SharepointAPI.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 |
protected static String |
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 |
protected static String |
REST_CURRENTUSER |
protected static String |
REST_SITETITLE |
protected org.apache.http.HttpHost |
siteHost |
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 String |
documentId(String id)
Deprecated.
|
protected SharepointAPI.ChangesIterator |
getChanges(org.exoplatform.clouddrive.cmis.CMISAPI.ChangeToken changeToken) |
protected String |
getPassword() |
String |
getRepositoryId() |
protected String |
getServiceURL() |
String |
getSiteTitle() |
String |
getSiteURL() |
SharepointAPI.User |
getSiteUser() |
protected String |
getUser() |
String |
getUserTitle() |
protected String |
readError(org.exoplatform.ws.frameworks.json.value.JsonValue json) |
protected org.exoplatform.ws.frameworks.json.value.JsonValue |
readJson(org.apache.http.HttpResponse resp) |
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) |
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) |
protected String |
simpleId(String id)
Deprecated.
|
binding, copyDocument, copyDocument, copyFolder, copyFolder, createDocument, createFolder, deleteDocument, deleteFolder, emptyToken, formatTokenTime, getAllVersion, 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
SharepointExceptionSharepointServiceNotFoundorg.exoplatform.clouddrive.CloudDriveAccessExceptionprotected SharepointAPI.User readSiteUser() throws SharepointException, SharepointServiceNotFound, org.exoplatform.clouddrive.CloudDriveAccessException
SharepointExceptionSharepointServiceNotFoundorg.exoplatform.clouddrive.CloudDriveAccessExceptionprotected org.exoplatform.ws.frameworks.json.value.JsonValue readJson(org.apache.http.HttpResponse resp)
throws org.exoplatform.ws.frameworks.json.impl.JsonException,
IllegalStateException,
IOException,
SharepointException
org.exoplatform.ws.frameworks.json.impl.JsonExceptionIllegalStateExceptionIOExceptionSharepointExceptionprotected String readText(org.apache.http.HttpResponse resp) throws IllegalStateException, IOException
IllegalStateExceptionIOExceptionprotected String readError(org.exoplatform.ws.frameworks.json.value.JsonValue json)
protected 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.CMISAPI@Deprecated protected String documentId(String id)
id - String original ID@Deprecated protected String simpleId(String id)
id - String object IDCopyright © 2003–2015 eXo Platform SAS. All rights reserved.