public interface Backend
String getRootPath()
String getRootUrl()
CoreSession getSession() throws ClientException
ClientExceptionvoid setSession(CoreSession session)
CoreSession getSession(boolean synchronize) throws ClientException
ClientExceptionString getBackendDisplayName()
void saveChanges()
throws ClientException
ClientExceptionvoid discardChanges()
throws ClientException
ClientExceptionboolean isLocked(DocumentRef ref) throws ClientException
ClientExceptionboolean canUnlock(DocumentRef ref) throws ClientException
ClientExceptionString lock(DocumentRef ref) throws ClientException
ClientExceptionboolean unlock(DocumentRef ref) throws ClientException
ClientExceptionString getCheckoutUser(DocumentRef ref) throws ClientException
ClientExceptionDocumentModel resolveLocation(String location) throws ClientException
ClientExceptionvoid removeItem(String location) throws ClientException
ClientExceptionvoid removeItem(DocumentRef ref) throws ClientException
ClientExceptionvoid renameItem(DocumentModel source, String destinationName) throws ClientException
ClientExceptionDocumentModel moveItem(DocumentModel source, PathRef targetParentRef) throws ClientException
ClientExceptionDocumentModel moveItem(DocumentModel source, DocumentRef targetParentRef, String name) throws ClientException
ClientExceptionDocumentModel updateDocument(DocumentModel doc, String name, Blob content) throws ClientException
ClientExceptionDocumentModel copyItem(DocumentModel source, PathRef targetParentRef) throws ClientException
ClientExceptionDocumentModel createFolder(String parentPath, String name) throws ClientException
ClientExceptionDocumentModel createFile(String parentPath, String name, Blob content) throws ClientException
ClientExceptionDocumentModel createFile(String parentPath, String name) throws ClientException
ClientExceptionList<DocumentModel> getChildren(DocumentRef ref) throws ClientException
ClientExceptionboolean exists(String location)
boolean hasPermission(DocumentRef docRef, String permission) throws ClientException
ClientExceptionString getDisplayName(DocumentModel doc)
LinkedList<String> getVirtualFolderNames() throws ClientException
ClientExceptionboolean isVirtual()
boolean isRoot()
void destroy()
String getVirtualPath(String path) throws ClientException
ClientExceptionDocumentModel getDocument(String location) throws ClientException
ClientExceptionCopyright © 2013 Nuxeo SA. All Rights Reserved.