Package org.olat.core.util.servlets

Examples of org.olat.core.util.servlets.VFSDirContext.canWrite()


      // Check if operation allowed by OLAT VFS security callback
      DirContext resources = getResources(req);
      VFSDirContext vfsContext = (VFSDirContext) resources;
      String path = getRelativePath(req);
      if (!vfsContext.canWrite(path)) {
        resp.sendError(WebdavStatus.SC_FORBIDDEN);
        return;         
      }

      super.doPut(req, resp);
View Full Code Here


       
        // Check if operation allowed by OLAT VFS security callback
        DirContext resources = getResources(req);
        VFSDirContext vfsContext = (VFSDirContext) resources;
        String path = getRelativePath(req);
        if (!vfsContext.canWrite(path)) {
          resp.sendError(WebdavStatus.SC_FORBIDDEN);
          return;         
        }

        if (isLocked(req)) {
View Full Code Here

       
        // Check if operation allowed by OLAT VFS security callback
        DirContext resources = getResources(req);
        VFSDirContext vfsContext = (VFSDirContext) resources;
        String path = getRelativePath(req);
        if (!vfsContext.canWrite(path)) {
          resp.sendError(WebdavStatus.SC_FORBIDDEN);
          return;         
        }

        if (isLocked(req)) {
View Full Code Here

            return;
        }

        // Check if operation allowed by OLAT VFS security callback
        vfsContext = (VFSDirContext) resources;
        if (!vfsContext.canWrite(path)) {
          resp.sendError(WebdavStatus.SC_FORBIDDEN);
          return;         
        }
       
        boolean exists = true;
View Full Code Here

        // Check if operation allowed by OLAT VFS security callback
        DirContext resources = getResources(req);
        VFSDirContext vfsContext = (VFSDirContext) resources;
        String destinationPath = req.getHeader("Destination");
        if (!vfsContext.canWrite(destinationPath)) {
          resp.sendError(WebdavStatus.SC_FORBIDDEN);
          return;         
        }

        copyResource(req, resp);
View Full Code Here

       
        // Check if operation allowed by OLAT VFS security callback
        DirContext resources = getResources(req);
        VFSDirContext vfsContext = (VFSDirContext) resources;
        String path = getRelativePath(req);
        if (!vfsContext.canWrite(path)) {
          resp.sendError(WebdavStatus.SC_FORBIDDEN);
          return;         
        }

View Full Code Here

        // Check if operation allowed by OLAT VFS security callback
        DirContext resources = getResources(req);
        VFSDirContext vfsContext = (VFSDirContext) resources;
        String path = getRelativePath(req);
        if (!vfsContext.canWrite(path)) {
          resp.sendError(WebdavStatus.SC_FORBIDDEN);
          return;         
        }
       
        if (isLocked(req)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.