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
public class SimpleBackend extends AbstractCoreBackend
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALWAYS_CREATE_FILE_PROP
protected String
backendDisplayName
static String
MSOFFICE_TMP_PREFIX
protected LinkedList<String>
orderedBackendNames
protected String
rootPath
protected String
rootUrl
static String
SOURCE_EDIT_KEYWORD
static String
TMP_EXTENSION
-
Fields inherited from class org.nuxeo.ecm.webdav.backend.AbstractCoreBackend
session
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SimpleBackend(String backendDisplayName, String rootPath, String rootUrl, CoreSession session)
-
Method Summary
-
Methods inherited from class org.nuxeo.ecm.webdav.backend.AbstractCoreBackend
getSession, getSession, saveChanges
-
-
-
-
Field Detail
-
SOURCE_EDIT_KEYWORD
public static final String SOURCE_EDIT_KEYWORD
- See Also:
- Constant Field Values
-
ALWAYS_CREATE_FILE_PROP
public static final String ALWAYS_CREATE_FILE_PROP
- See Also:
- Constant Field Values
-
TMP_EXTENSION
public static final String TMP_EXTENSION
- See Also:
- Constant Field Values
-
MSOFFICE_TMP_PREFIX
public static final String MSOFFICE_TMP_PREFIX
- See Also:
- Constant Field Values
-
backendDisplayName
protected String backendDisplayName
-
rootPath
protected String rootPath
-
rootUrl
protected String rootUrl
-
orderedBackendNames
protected LinkedList<String> orderedBackendNames
-
-
Constructor Detail
-
SimpleBackend
protected SimpleBackend(String backendDisplayName, String rootPath, String rootUrl, CoreSession session)
-
-
Method Detail
-
getRootPath
public String getRootPath()
-
getRootUrl
public String getRootUrl()
-
getBackendDisplayName
public String getBackendDisplayName()
-
exists
public boolean exists(String location)
-
hasPermission
public boolean hasPermission(DocumentRef docRef, String permission)
-
updateDocument
public DocumentModel updateDocument(DocumentModel doc, String name, Blob content)
-
getVirtualFolderNames
public LinkedList<String> getVirtualFolderNames()
-
isVirtual
public final boolean isVirtual()
-
isRoot
public boolean isRoot()
-
resolveLocation
public DocumentModel resolveLocation(String location)
-
resolveParent
protected DocumentModel resolveParent(String location)
-
removeItem
public void removeItem(String location)
-
removeItem
public void removeItem(DocumentRef ref)
-
isTemporaryFile
protected boolean isTemporaryFile(DocumentModel doc)
-
renameItem
public void renameItem(DocumentModel source, String destinationName)
-
moveItem
public DocumentModel moveItem(DocumentModel source, PathRef targetParentRef)
-
moveItem
public DocumentModel moveItem(DocumentModel source, DocumentRef targetParentRef, String name)
-
copyItem
public DocumentModel copyItem(DocumentModel source, PathRef targetParentRef)
-
createFolder
public DocumentModel createFolder(String parentPath, String name)
-
createFile
public DocumentModel createFile(String parentPath, String name, Blob content)
-
createFile
public DocumentModel createFile(String parentPath, String name)
-
getDisplayName
public String getDisplayName(DocumentModel doc)
-
getChildren
public List<DocumentModel> getChildren(DocumentRef ref)
-
isLocked
public boolean isLocked(DocumentRef ref)
-
canUnlock
public boolean canUnlock(DocumentRef ref)
-
lock
public String lock(DocumentRef ref)
-
unlock
public boolean unlock(DocumentRef ref)
-
getCheckoutUser
public String getCheckoutUser(DocumentRef ref)
-
getDocument
public DocumentModel getDocument(String location)
-
getFileName
protected String getFileName(DocumentModel doc)
-
isTrashDocument
protected boolean isTrashDocument(DocumentModel model)
-
cleanTrashPath
protected boolean cleanTrashPath(DocumentModel parent, String name)
-
cleanTrashPath
protected boolean cleanTrashPath(DocumentRef parentRef, String name)
-
-