public class JCRLocalSharepointDrive
extends org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive
org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive.Connect, org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive.DocumentContent, org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive.FileAPI, org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive.LocalFile, org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive.Syncorg.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.AbstractCommand, org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.AbstractFileAPI, org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.CommandCallable, org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.ConnectCommand, org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.DriveState, org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.ExoJCREnvironment, org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.ExoJCRSettings, org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.FileChange, org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.JCRListener, org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.NoConnectCommand, org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.NoSyncCommand, org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.SyncCommand, org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.SyncFilesCommandchangeIdSequencer, exoURL, FULL_SYNC_PERIOD, PREVIOUS_LOCAL_NAME, PREVIOUS_LOCAL_PARENTaccentsConverter, actionDrive, ALREADY_DONE, COMMAND_CHANGES_CHUNK, commandEnv, CURRENT_LOCALFORMAT, currentChangeId, currentConnect, currentSync, delayedSyncFiles, driveCommands, DUMMY_DATA, ECD_CLOUDDRIVE, ECD_CLOUDFILE, ECD_CLOUDFILERESOURCE, ECD_CLOUDFOLDER, ECD_IGNORED, ECD_LOCALFORMAT, EXO_DATETIME, EXO_MODIFY, EXO_THUMBNAIL, EXO_THUMBNAILS, EXO_TRASHFOLDER, fileAPI, fileChanges, fileChangeSequencer, fileCopies, fileHistory, fileRemovals, fileSynchronizers, fileTrash, finder, HISTORY_EXPIRATION, HISTORY_MAX_LENGTH, jcrListener, mimeTypes, MIX_REFERENCEABLE, MIX_VERSIONABLE, noConnect, noSync, NT_FILE, NT_FOLDER, NT_RESOURCE, NT_UNSTRUCTURED, repository, rootNodeHolder, rootSystemNodeHolder, rootUUID, rootWorkspace, sessionProviders, state, syncFilesMessages, syncLock, updating, user, USER_NODEPATH, USER_SESSIONPROVIDER, USER_WORKSPACE, workerExecutor| Modifier | Constructor and Description |
|---|---|
protected |
JCRLocalSharepointDrive(SharepointConnector.API apiBuilder,
javax.jcr.Node driveNode,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.clouddrive.jcr.NodeFinder finder,
org.exoplatform.clouddrive.utils.ExtendedMimeTypeResolver mimeTypes,
String exoURL)
Instantiates a new JCR local sharepoint drive.
|
protected |
JCRLocalSharepointDrive(SharepointUser user,
javax.jcr.Node driveNode,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.clouddrive.jcr.NodeFinder finder,
org.exoplatform.clouddrive.utils.ExtendedMimeTypeResolver mimeTypes,
String exoURL)
Instantiates a new JCR local sharepoint drive.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanRemoved(String fileId) |
protected void |
cleanUpdated(String fileId) |
protected void |
commitChanges(Collection<org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.FileChange> changes,
Collection<org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.FileChange> skipped) |
SharepointUser |
getUser() |
protected void |
initDrive(javax.jcr.Node driveNode) |
protected static SharepointUser |
loadUser(SharepointConnector.API apiBuilder,
javax.jcr.Node driveNode)
Load user from the drive Node.
|
protected void |
saveChanges(List<org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.FileChange> changes) |
protected String |
simpleFileId(String fileId)
Extract actual file ID without its version classifier in SP.
|
createFileAPI, ensureSame, findDocumentNode, findMimetype, findMimetype, findMimetype, getChangeToken, getConnectCommand, getFileContent, getSyncCommand, initCMISItem, initFile, loadUser, previewLink, readChangeId, readNodes, refreshAccess, saveAccess, saveChangeId, setChangeToken, updateAccess, updateItemaddJCRListener, addUpdating, await, checkNotTrashed, cleanName, cleanup, configure, connect, copyFile, create, currentUserName, disconnect, editLink, fileNode, findNode, findNodes, fixNameConflict, getChangeId, getConnectDate, getCurentCommand, getFile, getFilePreview, getId, getInitDate, getLink, getLocalUser, getOrCleanFileNode, getPath, getState, getTitle, getWorkspace, hasChange, hasFile, hasRemoved, hasUpdated, ignore, initCommon, initCopy, initFolder, initRemove, initUpdating, isConnected, isDrive, isDrive, isIgnored, isInDrive, isInTrash, isLocal, isNew, isNewOrUpdating, isPrivilegedUser, isSameDrive, isSharingSupported, isUpdating, link, listFiles, listFiles, loadHistory, localChange, migrateName, moveFile, nextChangeId, nodeName, openFile, openFolder, parentPath, readFile, readNode, removeJCRListener, removeLinks, removeLinks, removeNode, removeUpdating, rollback, rollbackAllChanges, rootNode, rootNode, savedChanges, session, setChangeId, shareFile, size, synchronize, systemSession, thumbnailLink, title, unignore, unshareFileprotected JCRLocalSharepointDrive(SharepointUser user, javax.jcr.Node driveNode, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders, org.exoplatform.clouddrive.jcr.NodeFinder finder, org.exoplatform.clouddrive.utils.ExtendedMimeTypeResolver mimeTypes, String exoURL) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
user - the userdriveNode - the drive nodesessionProviders - the session providersfinder - the findermimeTypes - the mime typesexoURL - the exo URLorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionjavax.jcr.RepositoryException - the repository exceptionprotected JCRLocalSharepointDrive(SharepointConnector.API apiBuilder, javax.jcr.Node driveNode, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders, org.exoplatform.clouddrive.jcr.NodeFinder finder, org.exoplatform.clouddrive.utils.ExtendedMimeTypeResolver mimeTypes, String exoURL) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
apiBuilder - the api builderdriveNode - the drive nodesessionProviders - the session providersfinder - the findermimeTypes - the mime typesexoURL - the exo URLjavax.jcr.RepositoryException - the repository exceptionorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionprotected void initDrive(javax.jcr.Node driveNode)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
initDrive in class org.exoplatform.clouddrive.jcr.JCRLocalCloudDriveorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected static SharepointUser loadUser(SharepointConnector.API apiBuilder, javax.jcr.Node driveNode) throws javax.jcr.RepositoryException, SharepointException, org.exoplatform.clouddrive.CloudDriveException
apiBuilder - SharepointConnector.API API builderdriveNode - Node root of the driveCMISUserjavax.jcr.RepositoryException - the repository exceptionSharepointException - the sharepoint exceptionorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionpublic SharepointUser getUser()
getUser in class org.exoplatform.clouddrive.cmis.JCRLocalCMISDriveprotected String simpleFileId(String fileId)
null then it will be returned as is.fileId - Stringprotected void cleanUpdated(String fileId) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
cleanUpdated in class org.exoplatform.clouddrive.jcr.JCRLocalCloudDrivejavax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected void cleanRemoved(String fileId) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
cleanRemoved in class org.exoplatform.clouddrive.jcr.JCRLocalCloudDrivejavax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected void saveChanges(List<org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.FileChange> changes) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
saveChanges in class org.exoplatform.clouddrive.jcr.JCRLocalCloudDrivejavax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected void commitChanges(Collection<org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.FileChange> changes, Collection<org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive.FileChange> skipped) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
commitChanges in class org.exoplatform.clouddrive.jcr.JCRLocalCloudDrivejavax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.CloudDriveExceptionCopyright © 2003–2018 eXo Platform SAS. All rights reserved.