Package io.jmix.webdavrest.method
Class PutMethodDelegate
java.lang.Object
io.jmix.webdavrest.method.PutMethodDelegate
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected DataManager
protected WebdavDocumentsManagementService
protected WebdavDocumentVersionsManagementService
protected FileStorageLocator
protected Metadata
protected WebdavProperties
protected String
protected TimeSource
protected WebdavProperties
protected WebdavLockSupport
protected WebdavPreconditions
protected WebdavTools
-
Constructor Summary
ConstructorDescriptionPutMethodDelegate
(WebdavDocumentVersionsManagementService documentVersionsManagementService, WebdavDocumentsManagementService documentsManagementService, Metadata metadata, TimeSource timeSource, WebdavLockSupport wls, WebdavTools wt, WebdavPreconditions wp, DataManager dataManager, WebdavProperties properties, CoreProperties coreProperties, FileStorageLocator fileStorageLocator, WebdavProperties webdavProperties) -
Method Summary
Modifier and TypeMethodDescriptionprocessing
(ResourceUri resourceUri, InputStream resourceBody, Boolean versioning) Update an existing document by the given URI or create new document having the given URI path.processing
(UUID resourceId, String resourceName, InputStream resourceBody) Update an existing document by uploading a new version.protected WebdavDocument
processing
(UUID resourceId, String resourceName, InputStream resourceBody, boolean implicitLock) protected File
saveFileToTempDir
(InputStream stream) protected FileRef
uploadToFileStorage
(String resourceName, File tmpFile)
-
Field Details
-
BUFFER_SIZE
protected static final int BUFFER_SIZE- See Also:
-
documentVersionsManagementService
-
documentsManagementService
-
metadata
-
timeSource
-
wls
-
wp
-
wt
-
dataManager
-
properties
-
tempDir
-
fileStorageLocator
-
webdavProperties
-
-
Constructor Details
-
PutMethodDelegate
public PutMethodDelegate(WebdavDocumentVersionsManagementService documentVersionsManagementService, WebdavDocumentsManagementService documentsManagementService, Metadata metadata, TimeSource timeSource, WebdavLockSupport wls, WebdavTools wt, WebdavPreconditions wp, DataManager dataManager, WebdavProperties properties, CoreProperties coreProperties, FileStorageLocator fileStorageLocator, WebdavProperties webdavProperties)
-
-
Method Details
-
processing
Update an existing document by uploading a new version. -
processing
protected WebdavDocument processing(UUID resourceId, String resourceName, InputStream resourceBody, boolean implicitLock) -
processing
public WebdavDocument processing(ResourceUri resourceUri, InputStream resourceBody, Boolean versioning) Update an existing document by the given URI or create new document having the given URI path. -
uploadToFileStorage
-
saveFileToTempDir
-