|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.clouddrive.cmis.CMISAPI
org.exoplatform.clouddrive.sharepoint.SharepointAPI
public class SharepointAPI
All calls to Sharepoint API here.
| Nested Class Summary | |
|---|---|
protected class |
SharepointAPI.ChangesIterator
|
protected class |
SharepointAPI.RESTClient
|
protected class |
SharepointAPI.SPChangeToken
|
class |
SharepointAPI.User
SharePoint user data. |
| Nested classes/interfaces inherited from class org.exoplatform.clouddrive.cmis.CMISAPI |
|---|
org.exoplatform.clouddrive.cmis.CMISAPI.ChangeToken, org.exoplatform.clouddrive.cmis.CMISAPI.ChildrenIterator, org.exoplatform.clouddrive.cmis.CMISAPI.Context, org.exoplatform.clouddrive.cmis.CMISAPI.TimeChangeToken |
| Field Summary | |
|---|---|
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. |
| Fields inherited from class org.exoplatform.clouddrive.cmis.CMISAPI |
|---|
customDomain, EMPTY_TOKEN, emptyToken, enterpriseId, enterpriseName, FILE_PROPERTY_SET, fileContext, FOLDER_PAGE_SIZE, FOLDER_PROPERTY_SET, folderContext, NO_STATE, OBJECT_PAGE_SIZE, parameters, productName, productVersion, repositoryId, repositoryName, session, TOKEN_DATATIME_FORMAT, vendorName |
| Constructor Summary | |
|---|---|
protected |
SharepointAPI(String serviceURL,
String userName,
String password)
Create API from user credentials. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.exoplatform.clouddrive.cmis.CMISAPI |
|---|
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, updateUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected 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
| Constructor Detail |
|---|
protected SharepointAPI(String serviceURL,
String userName,
String password)
throws org.exoplatform.clouddrive.cmis.CMISException,
org.exoplatform.clouddrive.CloudDriveException
serviceURL - StringuserName - Stringpassword - String
org.exoplatform.clouddrive.cmis.CMISException
org.exoplatform.clouddrive.CloudDriveException| Method Detail |
|---|
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.CMISException
org.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
SharepointException
SharepointServiceNotFound
org.exoplatform.clouddrive.CloudDriveAccessException
protected SharepointAPI.User readSiteUser()
throws SharepointException,
SharepointServiceNotFound,
org.exoplatform.clouddrive.CloudDriveAccessException
SharepointException
SharepointServiceNotFound
org.exoplatform.clouddrive.CloudDriveAccessException
protected 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.JsonException
IllegalStateException
IOException
SharepointException
protected String readText(org.apache.http.HttpResponse resp)
throws IllegalStateException,
IOException
IllegalStateException
IOExceptionprotected 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.CMISException
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)
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 ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||