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
Fields inherited from class org.nuxeo.ecm.webdav.backend.AbstractCoreBackend
session
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractVirtualBackend
(String name, String rootUrl, CoreSession session, RealBackendFactory realBackendFactory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canUnlock
(DocumentRef ref) copyItem
(DocumentModel source, PathRef targetParentRef) createFile
(String parentPath, String name) createFile
(String parentPath, String name, Blob content) createFolder
(String parentPath, String name) boolean
getBackend
(String uri) getChildren
(DocumentRef ref) getDocument
(String location) getVirtualPath
(String path) boolean
hasPermission
(DocumentRef docRef, String permission) protected abstract void
init()
protected void
boolean
isLocked
(DocumentRef ref) boolean
boolean
isRoot()
final boolean
lock
(DocumentRef ref) moveItem
(DocumentModel source, DocumentRef targetParentRef, String name) moveItem
(DocumentModel source, PathRef targetParentRef) parseLocation
(String location) protected void
registerBackend
(Backend backend) protected void
void
removeItem
(String location) void
removeItem
(DocumentRef ref) void
renameItem
(DocumentModel source, String destinationName) resolveLocation
(String location) boolean
unlock
(DocumentRef ref) updateDocument
(DocumentModel doc, String name, Blob content) Methods inherited from class org.nuxeo.ecm.webdav.backend.AbstractCoreBackend
getSession, getSession, saveChanges
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getRootPath
in interfaceBackend
-
getRootUrl
- Specified by:
getRootUrl
in interfaceBackend
-
isVirtual
public final boolean isVirtual() -
isRoot
public boolean isRoot() -
getBackendDisplayName
- Specified by:
getBackendDisplayName
in interfaceBackend
-
getVirtualFolderNames
- Specified by:
getVirtualFolderNames
in interfaceBackend
-
registerBackend
-
getBackend
- Specified by:
getBackend
in interfaceBackend
-
initIfNeed
protected void initIfNeed() -
init
protected abstract void init() -
isLocked
-
canUnlock
-
lock
-
unlock
-
getCheckoutUser
- Specified by:
getCheckoutUser
in interfaceBackend
-
resolveLocation
- Specified by:
resolveLocation
in interfaceBackend
-
parseLocation
- Specified by:
parseLocation
in interfaceBackend
-
removeItem
- Specified by:
removeItem
in interfaceBackend
-
removeItem
- Specified by:
removeItem
in interfaceBackend
-
renameItem
- Specified by:
renameItem
in interfaceBackend
-
moveItem
-
copyItem
-
createFolder
- Specified by:
createFolder
in interfaceBackend
-
createFile
- Specified by:
createFile
in interfaceBackend
-
createFile
- Specified by:
createFile
in interfaceBackend
-
getChildren
- Specified by:
getChildren
in interfaceBackend
-
isRename
-
exists
-
getDisplayName
- Specified by:
getDisplayName
in interfaceBackend
-
hasPermission
- Specified by:
hasPermission
in interfaceBackend
-
getDocument
- Specified by:
getDocument
in interfaceBackend
-
updateDocument
- Specified by:
updateDocument
in interfaceBackend
-
moveItem
-
getVirtualPath
- Specified by:
getVirtualPath
in interfaceBackend
-
getOrderedBackendNames
- Specified by:
getOrderedBackendNames
in interfaceVirtualBackend
-