public class SimpleBackend extends AbstractCoreBackend
Modifier and Type | Field and Description |
---|---|
static String |
ALWAYS_CREATE_FILE_PROP |
static String |
SOURCE_EDIT_KEYWORD |
getSession, getSession, saveChanges
public static final String SOURCE_EDIT_KEYWORD
public static final String ALWAYS_CREATE_FILE_PROP
public String getRootPath()
public String getRootUrl()
public String getBackendDisplayName()
public boolean exists(String location)
public boolean hasPermission(DocumentRef docRef, String permission) throws ClientException
ClientException
public DocumentModel updateDocument(DocumentModel doc, String name, Blob content) throws ClientException
ClientException
public LinkedList<String> getVirtualFolderNames() throws ClientException
ClientException
public final boolean isVirtual()
public boolean isRoot()
public DocumentModel resolveLocation(String location) throws ClientException
ClientException
public void removeItem(String location) throws ClientException
ClientException
public void removeItem(DocumentRef ref) throws ClientException
ClientException
public void renameItem(DocumentModel source, String destinationName) throws ClientException
ClientException
public DocumentModel moveItem(DocumentModel source, PathRef targetParentRef) throws ClientException
ClientException
public DocumentModel moveItem(DocumentModel source, DocumentRef targetParentRef, String name) throws ClientException
ClientException
public DocumentModel copyItem(DocumentModel source, PathRef targetParentRef) throws ClientException
ClientException
public DocumentModel createFolder(String parentPath, String name) throws ClientException
ClientException
public DocumentModel createFile(String parentPath, String name, Blob content) throws ClientException
ClientException
public DocumentModel createFile(String parentPath, String name) throws ClientException
ClientException
public String getDisplayName(DocumentModel doc)
public List<DocumentModel> getChildren(DocumentRef ref) throws ClientException
ClientException
public boolean isLocked(DocumentRef ref) throws ClientException
ClientException
public boolean canUnlock(DocumentRef ref) throws ClientException
ClientException
public String lock(DocumentRef ref) throws ClientException
ClientException
public boolean unlock(DocumentRef ref) throws ClientException
ClientException
public String getCheckoutUser(DocumentRef ref) throws ClientException
ClientException
public DocumentModel getDocument(String location) throws ClientException
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.