public class JCRLocalOneDrive
extends org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive
implements org.exoplatform.services.cms.clouddrives.oauth2.UserTokenRefreshListener
| Modifier and Type | Class and Description |
|---|---|
class |
JCRLocalOneDrive.OneDriveState |
protected class |
JCRLocalOneDrive.OneDriveSyncCommand |
org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.AbstractCommand, org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.AbstractFileAPI, org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.CommandCallable, org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.ConnectCommand, org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.DriveState, org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.ExoJCREnvironment, org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.ExoJCRSettings, org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.FileChange, org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.JCRListener, org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.NoConnectCommand, org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.NoSyncCommand, org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.SyncCommand, org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.SyncFilesCommandorg.exoplatform.services.cms.clouddrives.CloudDrive.Command, org.exoplatform.services.cms.clouddrives.CloudDrive.CommandProgress, org.exoplatform.services.cms.clouddrives.CloudDrive.FilesState, org.exoplatform.services.cms.clouddrives.CloudDrive.ListenerSupportaccentsConverter, 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 |
JCRLocalOneDrive(org.exoplatform.services.cms.clouddrives.CloudUser user,
javax.jcr.Node driveNode,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.services.cms.clouddrives.jcr.NodeFinder finder,
org.exoplatform.services.cms.clouddrives.utils.ExtendedMimeTypeResolver mimeTypes) |
protected |
JCRLocalOneDrive(org.exoplatform.services.cms.clouddrives.onedrive.OneDriveConnector.API apiBuilder,
OneDriveProvider provider,
javax.jcr.Node driveNode,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.services.cms.clouddrives.jcr.NodeFinder finder,
org.exoplatform.services.cms.clouddrives.utils.ExtendedMimeTypeResolver mimeTypes) |
| Modifier and Type | Method and Description |
|---|---|
protected org.exoplatform.services.cms.clouddrives.onedrive.JCRLocalOneDrive.OneDriveFileAPI |
createFileAPI() |
protected org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.ConnectCommand |
getConnectCommand() |
org.exoplatform.services.cms.clouddrives.CloudFile |
getFile(String path) |
JCRLocalOneDrive.OneDriveState |
getState() |
protected org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.SyncCommand |
getSyncCommand() |
OneDriveUser |
getUser() |
protected void |
initDrive(javax.jcr.Node driveNode) |
protected static OneDriveUser |
loadUser(org.exoplatform.services.cms.clouddrives.onedrive.OneDriveConnector.API apiBuilder,
OneDriveProvider provider,
javax.jcr.Node driveNode) |
void |
onUserTokenRefresh(org.exoplatform.services.cms.clouddrives.oauth2.UserToken token) |
void |
onUserTokenRemove() |
protected Long |
readChangeId() |
protected void |
refreshAccess() |
protected void |
saveChangeId(Long id) |
protected void |
updateAccess(org.exoplatform.services.cms.clouddrives.CloudUser newUser) |
addJCRListener, addUpdating, await, checkNotTrashed, cleanName, cleanRemoved, cleanup, cleanUpdated, commitChanges, configure, connect, copyFile, create, currentUserName, disconnect, editLink, ensureSame, fileNode, findNode, findNodes, fixNameConflict, getChangeId, getConnectDate, getCurentCommand, getFileContent, getFilePreview, getId, getInitDate, getLink, getLocalUser, getOrCleanFileNode, getPath, getTitle, getWorkspace, hasChange, hasFile, hasRemoved, hasUpdated, ignore, initCommon, initCopy, initFile, 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, previewLink, readFile, readNode, readNodes, removeJCRListener, removeLinks, removeLinks, removeNode, removeUpdating, rollback, rollbackAllChanges, rootNode, rootNode, saveChanges, savedChanges, session, setChangeId, shareFile, size, synchronize, systemSession, thumbnailLink, title, unignore, unshareFileprotected JCRLocalOneDrive(org.exoplatform.services.cms.clouddrives.CloudUser user,
javax.jcr.Node driveNode,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.services.cms.clouddrives.jcr.NodeFinder finder,
org.exoplatform.services.cms.clouddrives.utils.ExtendedMimeTypeResolver mimeTypes)
throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.services.cms.clouddrives.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected JCRLocalOneDrive(org.exoplatform.services.cms.clouddrives.onedrive.OneDriveConnector.API apiBuilder,
OneDriveProvider provider,
javax.jcr.Node driveNode,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.services.cms.clouddrives.jcr.NodeFinder finder,
org.exoplatform.services.cms.clouddrives.utils.ExtendedMimeTypeResolver mimeTypes)
throws javax.jcr.RepositoryException,
org.exoplatform.services.cms.clouddrives.CloudDriveException,
IOException
javax.jcr.RepositoryExceptionorg.exoplatform.services.cms.clouddrives.CloudDriveExceptionIOExceptionprotected static OneDriveUser loadUser(org.exoplatform.services.cms.clouddrives.onedrive.OneDriveConnector.API apiBuilder, OneDriveProvider provider, javax.jcr.Node driveNode) throws javax.jcr.RepositoryException, org.exoplatform.services.cms.clouddrives.CloudDriveException, IOException
javax.jcr.RepositoryExceptionorg.exoplatform.services.cms.clouddrives.CloudDriveExceptionIOExceptionprotected org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.ConnectCommand getConnectCommand()
throws org.exoplatform.services.cms.clouddrives.DriveRemovedException,
javax.jcr.RepositoryException
getConnectCommand in class org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDriveorg.exoplatform.services.cms.clouddrives.DriveRemovedExceptionjavax.jcr.RepositoryExceptionprotected org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrive.SyncCommand getSyncCommand()
getSyncCommand in class org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrivepublic JCRLocalOneDrive.OneDriveState getState() throws org.exoplatform.services.cms.clouddrives.DriveRemovedException, org.exoplatform.services.cms.clouddrives.RefreshAccessException, org.exoplatform.services.cms.clouddrives.CloudProviderException, javax.jcr.RepositoryException
getState in class org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDriveorg.exoplatform.services.cms.clouddrives.DriveRemovedExceptionorg.exoplatform.services.cms.clouddrives.RefreshAccessExceptionorg.exoplatform.services.cms.clouddrives.CloudProviderExceptionjavax.jcr.RepositoryExceptionprotected org.exoplatform.services.cms.clouddrives.onedrive.JCRLocalOneDrive.OneDriveFileAPI createFileAPI()
createFileAPI in class org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDriveprotected Long readChangeId()
readChangeId in class org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDriveprotected void saveChangeId(Long id)
saveChangeId in class org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDrivepublic OneDriveUser getUser()
getUser in class org.exoplatform.services.cms.clouddrives.CloudDriveprotected void refreshAccess()
throws org.exoplatform.services.cms.clouddrives.CloudDriveException
refreshAccess in class org.exoplatform.services.cms.clouddrives.CloudDriveorg.exoplatform.services.cms.clouddrives.CloudDriveExceptionprotected void initDrive(javax.jcr.Node driveNode)
throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
javax.jcr.RepositoryException
initDrive in class org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDriveorg.exoplatform.services.cms.clouddrives.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected void updateAccess(org.exoplatform.services.cms.clouddrives.CloudUser newUser)
throws org.exoplatform.services.cms.clouddrives.CloudDriveException
updateAccess in class org.exoplatform.services.cms.clouddrives.CloudDriveorg.exoplatform.services.cms.clouddrives.CloudDriveExceptionpublic void onUserTokenRefresh(org.exoplatform.services.cms.clouddrives.oauth2.UserToken token)
throws org.exoplatform.services.cms.clouddrives.CloudDriveException
onUserTokenRefresh in interface org.exoplatform.services.cms.clouddrives.oauth2.UserTokenRefreshListenerorg.exoplatform.services.cms.clouddrives.CloudDriveExceptionpublic void onUserTokenRemove()
throws org.exoplatform.services.cms.clouddrives.CloudDriveException
onUserTokenRemove in interface org.exoplatform.services.cms.clouddrives.oauth2.UserTokenRefreshListenerorg.exoplatform.services.cms.clouddrives.CloudDriveExceptionpublic org.exoplatform.services.cms.clouddrives.CloudFile getFile(String path) throws org.exoplatform.services.cms.clouddrives.DriveRemovedException, org.exoplatform.services.cms.clouddrives.NotCloudDriveException, org.exoplatform.services.cms.clouddrives.NotCloudFileException, org.exoplatform.services.cms.clouddrives.NotYetCloudFileException, javax.jcr.RepositoryException
getFile in class org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudDriveorg.exoplatform.services.cms.clouddrives.DriveRemovedExceptionorg.exoplatform.services.cms.clouddrives.NotCloudDriveExceptionorg.exoplatform.services.cms.clouddrives.NotCloudFileExceptionorg.exoplatform.services.cms.clouddrives.NotYetCloudFileExceptionjavax.jcr.RepositoryExceptionCopyright © 2003–2020 eXo Platform SAS. All rights reserved.