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, saveChangesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSession, getSession, saveChangesprotected 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 Backendpublic String getRootUrl()
getRootUrl in interface Backendpublic String getBackendDisplayName()
getBackendDisplayName in interface Backendpublic LinkedList<String> getVirtualFolderNames()
getVirtualFolderNames in interface Backendprotected void registerBackend(Backend backend)
public Backend getBackend(String uri)
getBackend in interface Backendprotected 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 Backendpublic DocumentModel resolveLocation(String location)
resolveLocation in interface Backendpublic Path parseLocation(String location)
parseLocation in interface Backendpublic void removeItem(String location)
removeItem in interface Backendpublic void removeItem(DocumentRef ref)
removeItem in interface Backendpublic void renameItem(DocumentModel source, String destinationName)
renameItem in interface Backendpublic DocumentModel moveItem(DocumentModel source, PathRef targetParentRef)
public DocumentModel copyItem(DocumentModel source, PathRef targetParentRef)
public DocumentModel createFolder(String parentPath, String name)
createFolder in interface Backendpublic DocumentModel createFile(String parentPath, String name, Blob content)
createFile in interface Backendpublic DocumentModel createFile(String parentPath, String name)
createFile in interface Backendpublic List<DocumentModel> getChildren(DocumentRef ref)
getChildren in interface Backendpublic String getDisplayName(DocumentModel doc)
getDisplayName in interface Backendpublic boolean hasPermission(DocumentRef docRef, String permission)
hasPermission in interface Backendpublic DocumentModel getDocument(String location)
getDocument in interface Backendpublic DocumentModel updateDocument(DocumentModel doc, String name, Blob content)
updateDocument in interface Backendpublic DocumentModel moveItem(DocumentModel source, DocumentRef targetParentRef, String name)
public String getVirtualPath(String path)
getVirtualPath in interface Backendpublic LinkedList<String> getOrderedBackendNames()
getOrderedBackendNames in interface VirtualBackendCopyright © 2015 Nuxeo SA. All rights reserved.