public class WebDavBackendAdapter extends Object implements WebDavBackend
| Constructor and Description |
|---|
WebDavBackendAdapter(Backend backend) |
public WebDavBackendAdapter(Backend backend)
public void saveChanges()
throws ClientException
saveChanges in interface WebDavBackendClientExceptionpublic void discardChanges()
throws ClientException
discardChanges in interface WebDavBackendClientExceptionpublic boolean isLocked(DocumentRef ref) throws ClientException
isLocked in interface WebDavBackendClientExceptionpublic boolean canUnlock(DocumentRef ref) throws ClientException
canUnlock in interface WebDavBackendClientExceptionpublic String lock(DocumentRef ref) throws ClientException
lock in interface WebDavBackendClientExceptionpublic boolean unlock(DocumentRef ref) throws ClientException
unlock in interface WebDavBackendClientExceptionpublic String getCheckoutUser(DocumentRef ref) throws ClientException
getCheckoutUser in interface WebDavBackendClientExceptionpublic Path parseLocation(String location)
parseLocation in interface WebDavBackendpublic DocumentModel resolveLocation(String location) throws ClientException
resolveLocation in interface WebDavBackendClientExceptionpublic void removeItem(String location) throws ClientException
removeItem in interface WebDavBackendClientExceptionpublic void removeItem(DocumentRef ref) throws ClientException
removeItem in interface WebDavBackendClientExceptionpublic void renameItem(DocumentModel source, String destinationName) throws ClientException
renameItem in interface WebDavBackendClientExceptionpublic DocumentModel moveItem(DocumentModel source, PathRef targetParentRef) throws ClientException
moveItem in interface WebDavBackendClientExceptionpublic DocumentModel copyItem(DocumentModel source, PathRef targetParentRef) throws ClientException
copyItem in interface WebDavBackendClientExceptionpublic DocumentModel createFolder(String parentPath, String name) throws ClientException
createFolder in interface WebDavBackendClientExceptionpublic DocumentModel createFile(String parentPath, String name, Blob content) throws ClientException
createFile in interface WebDavBackendClientExceptionpublic DocumentModel createFile(String parentPath, String name) throws ClientException
createFile in interface WebDavBackendClientExceptionpublic DocumentModel updateDocument(DocumentModel documentModel, String s, Blob blob) throws ClientException
updateDocument in interface WebDavBackendClientExceptionpublic List<DocumentModel> getChildren(DocumentRef ref) throws ClientException
getChildren in interface WebDavBackendClientExceptionpublic boolean isRename(String source, String destination)
isRename in interface WebDavBackendpublic boolean exists(String location)
exists in interface WebDavBackendpublic boolean hasPermission(DocumentRef documentRef, String s) throws ClientException
hasPermission in interface WebDavBackendClientExceptionpublic String getDisplayName(DocumentModel doc)
getDisplayName in interface WebDavBackendpublic LinkedList<String> getVirtualFolderNames() throws ClientException
getVirtualFolderNames in interface WebDavBackendClientExceptionpublic boolean isVirtual()
isVirtual in interface WebDavBackendpublic DocumentModel getDocument(String location) throws ClientException
getDocument in interface WebDavBackendClientExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.