org.exoplatform.clouddrive.sharepoint
Class JCRLocalSharepointDrive

java.lang.Object
  extended by org.exoplatform.clouddrive.CloudDrive
      extended by org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive
          extended by org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive
              extended by org.exoplatform.clouddrive.sharepoint.JCRLocalSharepointDrive
All Implemented Interfaces:
org.exoplatform.clouddrive.CloudDriveStorage

public class JCRLocalSharepointDrive
extends org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive

Local drive for CMIS provider.


Nested Class Summary
 
Nested classes/interfaces inherited from class 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.Sync
 
Nested classes/interfaces inherited from class org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive
org.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.SyncFilesCommand
 
Nested classes/interfaces inherited from class org.exoplatform.clouddrive.CloudDrive
org.exoplatform.clouddrive.CloudDrive.Command, org.exoplatform.clouddrive.CloudDrive.CommandProgress, org.exoplatform.clouddrive.CloudDrive.FilesState, org.exoplatform.clouddrive.CloudDrive.ListenerSupport
 
Field Summary
 
Fields inherited from class org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive
changeIdSequencer, exoURL, FULL_SYNC_PERIOD
 
Fields inherited from class org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive
accentsConverter, actionDrive, ALREADY_DONE, commandEnv, CURRENT_LOCALFORMAT, currentChangeId, currentConnect, currentSync, 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, noConnect, noSync, NT_FILE, NT_FOLDER, NT_RESOURCE, NT_UNSTRUCTURED, repository, rootNodeHolder, rootUUID, rootWorkspace, sessionProviders, state, syncFilesChanged, syncFilesMessages, syncLock, updating, user, USER_NODEPATH, USER_SESSIONPROVIDER, USER_WORKSPACE, workerExecutor
 
Fields inherited from class org.exoplatform.clouddrive.CloudDrive
listeners, LOG
 
Constructor Summary
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)
           
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)
           
 
Method Summary
 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 readNodes_Old(javax.jcr.Node parent, Map<String,List<javax.jcr.Node>> nodes, boolean deep)
          Deprecated. 
 
Methods inherited from class org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive
createContentLink, createFileAPI, ensureSame, findDocumentNode, findMimetype, findMimetype, findMimetype, getChangeToken, getConnectCommand, getFileContent, getSyncCommand, initCMISItem, initFile, loadUser, previewLink, readChangeId, readNodes, refreshAccess, saveAccess, saveChangeId, setChangeToken, updateAccess, updateItem
 
Methods inherited from class org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive
addJCRListener, addUpdating, await, checkNotTrashed, cleanName, cleanNode, cleanRemoved, cleanup, cleanUpdated, commitChanges, configure, connect, copyNode, create, disconnect, editLink, fileNode, findNode, findNodes, getChangeId, getConnectDate, getCurentCommand, getFile, getId, getInitDate, getLink, getLocalUser, getOrCleanFileNode, getPath, getState, getTitle, hasFile, hasRemoved, hasUpdated, ignore, initCommon, initCopy, initFolder, initRemove, initUpdating, isConnected, isDrive, isDrive, isIgnored, isInDrive, isInTrash, isLocal, isNew, isNewOrUpdating, isSameDrive, isUpdating, link, listFiles, listFiles, listFiles, loadHistory, migrateName, moveFile, nextChangeId, openFile, openFolder, readFile, readNode, removeJCRListener, removeUpdating, rollback, rollbackAllChanges, rollbackChanges, rootNode, saveChanges, savedChanges, session, setChangeId, size, synchronize, systemSession, thumbnailLink, title, unignore
 
Methods inherited from class org.exoplatform.clouddrive.CloudDrive
addListener, removeListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JCRLocalSharepointDrive

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)
                           throws org.exoplatform.clouddrive.CloudDriveException,
                                  javax.jcr.RepositoryException
Parameters:
user -
driveNode -
sessionProviders -
Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

JCRLocalSharepointDrive

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)
                           throws javax.jcr.RepositoryException,
                                  org.exoplatform.clouddrive.CloudDriveException
Throws:
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveException
Method Detail

initDrive

protected void initDrive(javax.jcr.Node driveNode)
                  throws org.exoplatform.clouddrive.CloudDriveException,
                         javax.jcr.RepositoryException

Overrides:
initDrive in class org.exoplatform.clouddrive.jcr.JCRLocalCloudDrive
Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

loadUser

protected static SharepointUser loadUser(SharepointConnector.API apiBuilder,
                                         javax.jcr.Node driveNode)
                                  throws javax.jcr.RepositoryException,
                                         SharepointException,
                                         org.exoplatform.clouddrive.CloudDriveException
Load user from the drive Node.

Parameters:
apiBuilder - SharepointConnector.API API builder
provider - SharepointProvider
driveNode - Node root of the drive
Returns:
CMISUser
Throws:
javax.jcr.RepositoryException
SharepointException
org.exoplatform.clouddrive.CloudDriveException

getUser

public SharepointUser getUser()

Overrides:
getUser in class org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive

readNodes_Old

@Deprecated
protected void readNodes_Old(javax.jcr.Node parent,
                                        Map<String,List<javax.jcr.Node>> nodes,
                                        boolean deep)
                      throws javax.jcr.RepositoryException
Deprecated. 

Throws:
javax.jcr.RepositoryException


Copyright © 2003–2015 eXo Platform SAS. All rights reserved.