Package org.nuxeo.ecm.webdav.backend
Class AbstractVirtualBackend
java.lang.Object
org.nuxeo.ecm.webdav.backend.AbstractCoreBackend
org.nuxeo.ecm.webdav.backend.AbstractVirtualBackend
- All Implemented Interfaces:
Backend,VirtualBackend
- Direct Known Subclasses:
SearchVirtualBackend
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.webdav.backend.AbstractCoreBackend
session -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractVirtualBackend(String name, String rootUrl, CoreSession session, RealBackendFactory realBackendFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUnlock(DocumentRef ref) copyItem(DocumentModel source, PathRef targetParentRef) createFile(String parentPath, String name) createFile(String parentPath, String name, Blob content) createFolder(String parentPath, String name) booleangetBackend(String uri) getChildren(DocumentRef ref) getDocument(String location) getVirtualPath(String path) booleanhasPermission(DocumentRef docRef, String permission) protected abstract voidinit()protected voidbooleanisLocked(DocumentRef ref) booleanbooleanisRoot()final booleanlock(DocumentRef ref) moveItem(DocumentModel source, DocumentRef targetParentRef, String name) moveItem(DocumentModel source, PathRef targetParentRef) parseLocation(String location) protected voidregisterBackend(Backend backend) protected voidvoidremoveItem(String location) voidremoveItem(DocumentRef ref) voidrenameItem(DocumentModel source, String destinationName) resolveLocation(String location) booleanunlock(DocumentRef ref) updateDocument(DocumentModel doc, String name, Blob content) Methods inherited from class org.nuxeo.ecm.webdav.backend.AbstractCoreBackend
getSession, getSession, saveChangesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.webdav.backend.Backend
getSession, getSession, saveChanges
-
Field Details
-
backendMap
-
orderedBackendNames
-
rootUrl
-
-
Constructor Details
-
AbstractVirtualBackend
protected AbstractVirtualBackend(String name, String rootUrl, CoreSession session, RealBackendFactory realBackendFactory)
-
-
Method Details
-
registerSimpleBackends
-
getRootPath
- Specified by:
getRootPathin interfaceBackend
-
getRootUrl
- Specified by:
getRootUrlin interfaceBackend
-
isVirtual
public final boolean isVirtual() -
isRoot
public boolean isRoot() -
getBackendDisplayName
- Specified by:
getBackendDisplayNamein interfaceBackend
-
getVirtualFolderNames
- Specified by:
getVirtualFolderNamesin interfaceBackend
-
registerBackend
-
getBackend
- Specified by:
getBackendin interfaceBackend
-
initIfNeed
protected void initIfNeed() -
init
protected abstract void init() -
isLocked
-
canUnlock
-
lock
-
unlock
-
getCheckoutUser
- Specified by:
getCheckoutUserin interfaceBackend
-
resolveLocation
- Specified by:
resolveLocationin interfaceBackend
-
parseLocation
- Specified by:
parseLocationin interfaceBackend
-
removeItem
- Specified by:
removeItemin interfaceBackend
-
removeItem
- Specified by:
removeItemin interfaceBackend
-
renameItem
- Specified by:
renameItemin interfaceBackend
-
moveItem
-
copyItem
-
createFolder
- Specified by:
createFolderin interfaceBackend
-
createFile
- Specified by:
createFilein interfaceBackend
-
createFile
- Specified by:
createFilein interfaceBackend
-
getChildren
- Specified by:
getChildrenin interfaceBackend
-
isRename
-
exists
-
getDisplayName
- Specified by:
getDisplayNamein interfaceBackend
-
hasPermission
- Specified by:
hasPermissionin interfaceBackend
-
getDocument
- Specified by:
getDocumentin interfaceBackend
-
updateDocument
- Specified by:
updateDocumentin interfaceBackend
-
moveItem
-
getVirtualPath
- Specified by:
getVirtualPathin interfaceBackend
-
getOrderedBackendNames
- Specified by:
getOrderedBackendNamesin interfaceVirtualBackend
-