public abstract class AbstractVirtualBackend extends AbstractCoreBackend implements VirtualBackend
Modifier and Type | Field and Description |
---|---|
protected Map<String,Backend> |
backendMap |
protected LinkedList<String> |
orderedBackendNames |
protected String |
rootUrl |
session
Modifier | Constructor and Description |
---|---|
protected |
AbstractVirtualBackend(String name,
String rootUrl,
CoreSession session,
RealBackendFactory realBackendFactory) |
getSession, getSession, saveChanges
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSession, getSession, saveChanges
protected Map<String,Backend> backendMap
protected LinkedList<String> orderedBackendNames
protected AbstractVirtualBackend(String name, String rootUrl, CoreSession session, RealBackendFactory realBackendFactory)
protected void registerSimpleBackends(List<DocumentModel> docs)
public String getRootPath()
getRootPath
in interface Backend
public String getRootUrl()
getRootUrl
in interface Backend
public String getBackendDisplayName()
getBackendDisplayName
in interface Backend
public LinkedList<String> getVirtualFolderNames()
getVirtualFolderNames
in interface Backend
protected void registerBackend(Backend backend)
public Backend getBackend(String uri)
getBackend
in interface Backend
protected void initIfNeed()
protected abstract void init()
public boolean isLocked(DocumentRef ref)
public boolean canUnlock(DocumentRef ref)
public String lock(DocumentRef ref)
public boolean unlock(DocumentRef ref)
public String getCheckoutUser(DocumentRef ref)
getCheckoutUser
in interface Backend
public DocumentModel resolveLocation(String location)
resolveLocation
in interface Backend
public Path parseLocation(String location)
parseLocation
in interface Backend
public void removeItem(String location)
removeItem
in interface Backend
public void removeItem(DocumentRef ref)
removeItem
in interface Backend
public void renameItem(DocumentModel source, String destinationName)
renameItem
in interface Backend
public DocumentModel moveItem(DocumentModel source, PathRef targetParentRef)
public DocumentModel copyItem(DocumentModel source, PathRef targetParentRef)
public DocumentModel createFolder(String parentPath, String name)
createFolder
in interface Backend
public DocumentModel createFile(String parentPath, String name, Blob content)
createFile
in interface Backend
public DocumentModel createFile(String parentPath, String name)
createFile
in interface Backend
public List<DocumentModel> getChildren(DocumentRef ref)
getChildren
in interface Backend
public String getDisplayName(DocumentModel doc)
getDisplayName
in interface Backend
public boolean hasPermission(DocumentRef docRef, String permission)
hasPermission
in interface Backend
public DocumentModel getDocument(String location)
getDocument
in interface Backend
public DocumentModel updateDocument(DocumentModel doc, String name, Blob content)
updateDocument
in interface Backend
public DocumentModel moveItem(DocumentModel source, DocumentRef targetParentRef, String name)
public String getVirtualPath(String path)
getVirtualPath
in interface Backend
public LinkedList<String> getOrderedBackendNames()
getOrderedBackendNames
in interface VirtualBackend
Copyright © 2017 Nuxeo. All rights reserved.