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 String |
DOCUMENT_ID_SUFFIX |
protected static org.exoplatform.services.log.Log |
LOG |
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.
|
customDomain, EMPTY_TOKEN, emptyToken, enterpriseId, enterpriseName, FOLDER_PAGE_SIZE, FOLDER_PROPERTY_SET, folderContext, NO_STATE, OBJECT_PAGE_SIZE, objectContext, 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)
Add SP document suffix '-512' to given object ID if it doesn't end with it already.
NOTE: it is not documented SP feature. |
protected SharepointAPI.ChangesIterator |
getChanges(org.exoplatform.clouddrive.cmis.CMISAPI.ChangeToken changeToken) |
protected org.apache.chemistry.opencmis.client.api.CmisObject |
getObject(String id) |
protected String |
getPassword() |
String |
getRepositoryId() |
protected String |
getServiceURL() |
String |
getSiteTitle() |
String |
getSiteURL() |
SharepointAPI.User |
getSiteUser() |
protected String |
getUser() |
String |
getUserTitle() |
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)
Remove SP document suffix '-512' in given object ID if it ends with it.
NOTE: it is not documented SP feature. |
binding, copyDocument, copyDocument, copyFolder, copyFolder, createDocument, createFolder, deleteDocument, deleteFolder, emptyToken, formatTokenTime, getFolderItems, getLink, getLink, getParamaters, getParents, getProductName, getProductVersion, getRepositories, getRepositoryInfo, getRepositoryName, getRootFolder, getVendorName, initRepository, isDocument, isFileable, isFolder, isRelationship, isSyncableChange, isVersionable, readObject, readToken, repositories, session, session, updateContent, updateObject, updateUserprotected static final org.exoplatform.services.log.Log LOG
protected static final String DOCUMENT_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.RefreshAccessException
getChanges in class org.exoplatform.clouddrive.cmis.CMISAPIorg.exoplatform.clouddrive.cmis.CMISExceptionorg.exoplatform.clouddrive.RefreshAccessExceptionprotected org.apache.chemistry.opencmis.client.api.CmisObject getObject(String id) throws org.exoplatform.clouddrive.cmis.CMISException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.CloudDriveAccessException
getObject in class org.exoplatform.clouddrive.cmis.CMISAPIorg.exoplatform.clouddrive.cmis.CMISExceptionorg.exoplatform.clouddrive.NotFoundExceptionorg.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
SharepointExceptionSharepointServiceNotFoundprotected 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 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.CMISAPIprotected String documentId(String id)
id - String original IDCopyright © 2003–2014 eXo Platform SAS. All rights reserved.