public class SimpleBackend extends AbstractCoreBackend
destroy, discardChanges, discardChanges, getSession, getSession, saveChanges, saveChanges, setSessionpublic String getRootPath()
public String getRootUrl()
public String getBackendDisplayName()
public boolean exists(String location)
public boolean hasPermission(DocumentRef docRef, String permission) throws ClientException
ClientExceptionpublic DocumentModel updateDocument(DocumentModel doc, String name, Blob content) throws ClientException
ClientExceptionpublic LinkedList<String> getVirtualFolderNames() throws ClientException
ClientExceptionpublic final boolean isVirtual()
public boolean isRoot()
public DocumentModel resolveLocation(String location) throws ClientException
ClientExceptionpublic void removeItem(String location) throws ClientException
ClientExceptionpublic void removeItem(DocumentRef ref) throws ClientException
ClientExceptionpublic void renameItem(DocumentModel source, String destinationName) throws ClientException
ClientExceptionpublic DocumentModel moveItem(DocumentModel source, PathRef targetParentRef) throws ClientException
ClientExceptionpublic DocumentModel moveItem(DocumentModel source, DocumentRef targetParentRef, String name) throws ClientException
ClientExceptionpublic DocumentModel copyItem(DocumentModel source, PathRef targetParentRef) throws ClientException
ClientExceptionpublic DocumentModel createFolder(String parentPath, String name) throws ClientException
ClientExceptionpublic DocumentModel createFile(String parentPath, String name, Blob content) throws ClientException
ClientExceptionpublic DocumentModel createFile(String parentPath, String name) throws ClientException
ClientExceptionpublic String getDisplayName(DocumentModel doc)
public List<DocumentModel> getChildren(DocumentRef ref) throws ClientException
ClientExceptionpublic boolean isLocked(DocumentRef ref) throws ClientException
ClientExceptionpublic boolean canUnlock(DocumentRef ref) throws ClientException
ClientExceptionpublic String lock(DocumentRef ref) throws ClientException
ClientExceptionpublic boolean unlock(DocumentRef ref) throws ClientException
ClientExceptionpublic String getCheckoutUser(DocumentRef ref) throws ClientException
ClientExceptionpublic DocumentModel getDocument(String location) throws ClientException
ClientExceptionCopyright © 2011 Nuxeo SA. All Rights Reserved.