Class WebdavEndPointDocumentController

java.lang.Object
io.jmix.webdavrest.controller.WebdavEndPointDocumentController

@Controller @RequestMapping({"/webdav/document/{resourceId}/{resourceName:.+}","/webdav/document/{resourceId}"}) public class WebdavEndPointDocumentController extends Object
  • Field Details

    • webApplicationContext

      protected org.springframework.web.context.WebApplicationContext webApplicationContext
    • documentVersionsService

      protected WebdavDocumentVersionsManagementService documentVersionsService
  • Constructor Details

    • WebdavEndPointDocumentController

      public WebdavEndPointDocumentController(org.springframework.web.context.WebApplicationContext webApplicationContext, WebdavDocumentVersionsManagementService documentVersionsService)
  • Method Details

    • getResourceUri

      @ModelAttribute("resourceUri") public ResourceUri getResourceUri(javax.servlet.http.HttpServletRequest request)
    • getResourceName

      @ModelAttribute("resourceName") public ResourceName getResourceName(@PathVariable(required=false) String resourceName)
    • retrieveOptions

      @OptionsMapping public void retrieveOptions(@PathVariable UUID resourceId, @ModelAttribute ResourceName resourceName, javax.servlet.http.HttpServletResponse response)
    • retrieveMetadata

      @PropFindMapping public org.springframework.http.ResponseEntity<PropFindMultipleResponseObject> retrieveMetadata(@ModelAttribute ResourceUri resourceUri, @PathVariable UUID resourceId, @ModelAttribute ResourceName resourceName, @RequestBody PropFindPropertiesList requestProperties)
    • retrieveResource

      @GetMapping public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> retrieveResource(@PathVariable UUID resourceId, @RequestHeader(name="If-None-Match",required=false) String ifNoneMatchHeader, @ModelAttribute ResourceName resourceName)
    • lockResource

      @LockMapping public org.springframework.http.ResponseEntity<LockInfoWithResourceUri> lockResource(@ModelAttribute ResourceUri resourceUri, @PathVariable UUID resourceId, @RequestHeader(name="If",required=false) String headerIf, @RequestBody(required=false) LockRequestPredicate lockRequestPredicate)
    • unlockResource

      @UnLockMapping public org.springframework.http.ResponseEntity<Void> unlockResource(@PathVariable UUID resourceId, @RequestHeader(name="Lock-Token") String lockTokenHeader)
    • updateResource

      @PutMapping public void updateResource(@PathVariable UUID resourceId, @PathVariable String resourceName, InputStream requestBody, javax.servlet.http.HttpServletResponse response)
    • withWebContextBean

      protected <T, R> R withWebContextBean(Class<T> beanClass, Function<? super T,? extends R> applier)