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
Modifier and TypeFieldDescriptionstatic final String
protected String
static final String
protected LinkedList<String>
protected String
protected String
static final String
static final String
Fields inherited from class org.nuxeo.ecm.webdav.backend.AbstractCoreBackend
session
-
Constructor Summary
ModifierConstructorDescriptionprotected
SimpleBackend
(String backendDisplayName, String rootPath, String rootUrl, CoreSession session) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canUnlock
(DocumentRef ref) protected boolean
cleanTrashPath
(DocumentModel parent, String name) protected boolean
cleanTrashPath
(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 String
boolean
final Backend
getBackend
(String path) getChildren
(DocumentRef ref) getDocument
(String location) protected String
getFileName
(DocumentModel doc) getVirtualPath
(String path) boolean
hasPermission
(DocumentRef docRef, String permission) boolean
isLocked
(DocumentRef ref) boolean
boolean
isRoot()
protected boolean
protected boolean
isTrashDocument
(DocumentModel model) final boolean
lock
(DocumentRef ref) moveItem
(DocumentModel source, DocumentRef targetParentRef, String name) moveItem
(DocumentModel source, PathRef targetParentRef) parseLocation
(String location) void
removeItem
(String location) void
removeItem
(DocumentRef ref) void
renameItem
(DocumentModel source, String destinationName) resolveLocation
(String location) protected DocumentModel
resolveParent
(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
-
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
-