Package org.nuxeo.ecm.webdav.backend
Class SimpleBackend
java.lang.Object
org.nuxeo.ecm.webdav.backend.AbstractCoreBackend
org.nuxeo.ecm.webdav.backend.SimpleBackend
- All Implemented Interfaces:
Backend
- Direct Known Subclasses:
SimpleRootBackend
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected Stringstatic final Stringprotected LinkedList<String>protected Stringprotected Stringstatic final Stringstatic final StringFields inherited from class org.nuxeo.ecm.webdav.backend.AbstractCoreBackend
session -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSimpleBackend(String backendDisplayName, String rootPath, String rootUrl, CoreSession session) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUnlock(DocumentRef ref) protected booleancleanTrashPath(DocumentModel parent, String name) protected booleancleanTrashPath(DocumentRef parentRef, String name) copyItem(DocumentModel source, PathRef targetParentRef) createFile(String parentPath, String name) createFile(String parentPath, String name, Blob content) createFolder(String parentPath, String name) protected Stringbooleanfinal BackendgetBackend(String path) getChildren(DocumentRef ref) getDocument(String location) protected StringgetFileName(DocumentModel doc) getVirtualPath(String path) booleanhasPermission(DocumentRef docRef, String permission) booleanisLocked(DocumentRef ref) booleanbooleanisRoot()protected booleanprotected booleanisTrashDocument(DocumentModel model) final booleanlock(DocumentRef ref) moveItem(DocumentModel source, DocumentRef targetParentRef, String name) moveItem(DocumentModel source, PathRef targetParentRef) parseLocation(String location) voidremoveItem(String location) voidremoveItem(DocumentRef ref) voidrenameItem(DocumentModel source, String destinationName) resolveLocation(String location) protected DocumentModelresolveParent(String location) booleanunlock(DocumentRef ref) updateDocument(DocumentModel doc, String name, Blob content) Methods inherited from class org.nuxeo.ecm.webdav.backend.AbstractCoreBackend
getSession, getSession, saveChanges
-
Field Details
-
SOURCE_EDIT_KEYWORD
- See Also:
-
ALWAYS_CREATE_FILE_PROP
- See Also:
-
TMP_EXTENSION
- See Also:
-
MSOFFICE_TMP_PREFIX
- See Also:
-
backendDisplayName
-
rootPath
-
rootUrl
-
orderedBackendNames
-
-
Constructor Details
-
SimpleBackend
protected SimpleBackend(String backendDisplayName, String rootPath, String rootUrl, CoreSession session)
-
-
Method Details
-
getRootPath
-
getRootUrl
-
getBackendDisplayName
-
exists
-
hasPermission
-
updateDocument
-
getVirtualFolderNames
-
isVirtual
public final boolean isVirtual() -
isRoot
public boolean isRoot() -
getBackend
-
resolveLocation
-
resolveParent
-
parseLocation
-
removeItem
-
removeItem
-
isTemporaryFile
-
isRename
-
renameItem
-
moveItem
-
moveItem
-
copyItem
-
createFolder
-
createFile
-
createFile
-
getDisplayName
-
getChildren
-
isLocked
-
canUnlock
-
lock
-
unlock
-
getCheckoutUser
-
getVirtualPath
-
getDocument
-
getFileName
-
isTrashDocument
-
cleanTrashPath
-
cleanTrashPath
-
encode
-