Package net.sourceforge.pebble.web.view

Examples of net.sourceforge.pebble.web.view.ForbiddenView


      FileManager fileManager = new FileManager(blog, type);
      List files = fileManager.getFiles(path, true);

      return new ZipView(files, filename);
    } catch (IllegalFileAccessException e) {
      return new ForbiddenView();
    }
  }
View Full Code Here


        fileManager.saveFile("/theme" + path, name, content);
      }

      blog.info("File \"" + StringUtils.transformHTML(name) + "\" saved.");
    } catch (IllegalFileAccessException e) {
      return new ForbiddenView();
    } catch (IOException ioe) {
      throw new ServletException(ioe);
    }

    return new ForwardView("/editFile.secureaction");
View Full Code Here

    try {
      List files = fileManager.getFiles(path);
      getModel().put("files", files);
    } catch (IllegalFileAccessException e) {
      return new ForbiddenView();
    }

    String uploadAction = null;
    if (type.equals(FileMetaData.BLOG_IMAGE)) {
      uploadAction = "uploadImageToBlog.secureaction";
View Full Code Here

        fileManager.createDirectory("/theme" + path, name);
      }

      blog.info("Directory \"" + name + "\" created.");
    } catch (IllegalFileAccessException e) {
      return new ForbiddenView();
    }

    return new RedirectView(blog.getUrl() + directory.getUrl());
  }
View Full Code Here

        } else {
          return new NotEnoughSpaceView();
        }
      }
    } catch (IllegalFileAccessException e) {
      return new ForbiddenView();
    } catch (IOException ioe) {
      throw new ServletException(ioe);
    }

    return new RedirectView(blog.getUrl() + directory.getUrl());
View Full Code Here

      FileManager fileManager = new FileManager(blog, type);
      List files = fileManager.getFiles(path, true);

      return new ZipView(files, filename);
    } catch (IllegalFileAccessException e) {
      return new ForbiddenView();
    }
  }
View Full Code Here

    try {
      String content = fileManager.loadFile(path, name);
      getModel().put("fileContent", content);
    } catch (IllegalFileAccessException e) {
      return new ForbiddenView();
    }

    getModel().put("file", file);
    getModel().put("parent", parent);
    getModel().put("type", type);
View Full Code Here

            themeFileManager.deleteFile("/theme" + path, name);
          }

          blog.info("File \"" + StringUtils.transformHTML(name) + "\" removed.");
        } catch (IllegalFileAccessException e) {
          return new ForbiddenView();
        }
      }
    }

    FileMetaData directory = fileManager.getFileMetaData(path);
View Full Code Here

      String password2 = request.getParameter("password2");
      String submit = request.getParameter("submit");

      // can the user change their user details?
      if (!currentUserDetails.isDetailsUpdateable()) {
        return new ForbiddenView();
      }

      if (submit == null || submit.length() == 0) {
        return new ChangePasswordView();
      }
View Full Code Here

TOP

Related Classes of net.sourceforge.pebble.web.view.ForbiddenView

Copyright © 2018 www.massapicom. 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.