Package io.jmix.webdavrest.controller
Class WebdavEndPointDocumentVersionController
java.lang.Object
io.jmix.webdavrest.controller.WebdavEndPointDocumentVersionController
@Controller
@RequestMapping("/webdav/version/{versionId}/{resourceNameWithVer:.+}")
public class WebdavEndPointDocumentVersionController
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected WebdavDocumentVersionsManagementService
protected org.springframework.web.context.WebApplicationContext
protected WebdavTools
-
Constructor Summary
ConstructorDescriptionWebdavEndPointDocumentVersionController
(org.springframework.web.context.WebApplicationContext webApplicationContext, WebdavDocumentVersionsManagementService documentVersionsService, WebdavTools wt) -
Method Summary
Modifier and TypeMethodDescriptiongetResourceName
(String resourceNameWithVer) getResourceUri
(javax.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<LockInfoWithResourceUri>
org.springframework.http.ResponseEntity<PropFindMultipleResponseObject>
retrieveMetadata
(ResourceUri resourceUri, UUID versionId, ResourceName resourceName, PropFindPropertiesList requestProperties) void
retrieveOptions
(UUID versionId, ResourceName resourceName, javax.servlet.http.HttpServletResponse response) org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>
retrieveResource
(UUID versionId, String ifNoneMatchHeader, ResourceName resourceName) org.springframework.http.ResponseEntity<Void>
void
protected <T,
R> R withWebContextBean
(Class<T> beanClass, Function<? super T, ? extends R> applier)
-
Field Details
-
webApplicationContext
protected org.springframework.web.context.WebApplicationContext webApplicationContext -
documentVersionsService
-
wt
-
-
Constructor Details
-
WebdavEndPointDocumentVersionController
public WebdavEndPointDocumentVersionController(org.springframework.web.context.WebApplicationContext webApplicationContext, WebdavDocumentVersionsManagementService documentVersionsService, WebdavTools wt)
-
-
Method Details
-
getResourceUri
@ModelAttribute("resourceUri") public ResourceUri getResourceUri(javax.servlet.http.HttpServletRequest request) -
getResourceName
@ModelAttribute("resourceName") public ResourceName getResourceName(@PathVariable String resourceNameWithVer) -
retrieveOptions
@OptionsMapping public void retrieveOptions(@PathVariable UUID versionId, @ModelAttribute ResourceName resourceName, javax.servlet.http.HttpServletResponse response) -
retrieveMetadata
@PropFindMapping public org.springframework.http.ResponseEntity<PropFindMultipleResponseObject> retrieveMetadata(@ModelAttribute ResourceUri resourceUri, @PathVariable UUID versionId, @ModelAttribute ResourceName resourceName, @RequestBody PropFindPropertiesList requestProperties) -
retrieveResource
@GetMapping public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> retrieveResource(@PathVariable UUID versionId, @RequestHeader(name="If-None-Match",required=false) String ifNoneMatchHeader, @ModelAttribute ResourceName resourceName) -
lockResource
-
unlockResource
-
updateResource
@PutMapping public void updateResource() -
withWebContextBean
-