Package net.sourceforge.pebble.domain

Examples of net.sourceforge.pebble.domain.Blog.info()


    }
    blog.setProperty(Blog.BLOG_READERS_KEY, blogReaders.toString());

    try {
      blog.storeProperties();
      blog.info("Blog security settings saved.");
    } catch (BlogServiceException e) {
      throw new ServletException(e);
    }

    return new RedirectView(blog.getUrl() + "viewBlogSecurity.secureaction");
View Full Code Here


        }
        if (staticPage != null) {
          try {
            if (service.lock(staticPage)) {
              service.removeStaticPage(staticPage);
              blog.info("Static page \"" + staticPage.getTitle() + "\" removed.");
              service.unlock(staticPage);
            }
          } catch (StaticPageServiceException e) {
            throw new ServletException(e);
          }
View Full Code Here

          // if it's a theme file, also delete the copy in blog.dir/theme
          if (type.equals(FileMetaData.THEME_FILE)) {
            themeFileManager.deleteFile("/theme" + path, name);
          }

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

      return new ForwardView("/editStaticPage.secureaction?page=" + id);
    } else if (submit.equalsIgnoreCase("Remove") && confirm != null && confirm.equals("true")) {
      try {
        if (service.lock(staticPage)) {
          service.removeStaticPage(staticPage);
          blog.info("Static page \"" + staticPage.getTitle() + "\" removed.");
          service.unlock(staticPage);
        } else {
          getModel().put(Constants.STATIC_PAGE_KEY, staticPage);
          return new StaticPageLockedView();
        }
View Full Code Here

      } catch (StaticPageServiceException e) {
        throw new ServletException(e);
      }
    } else if (submit.equalsIgnoreCase("Unlock") && confirm != null && confirm.equals("true")) {
        service.unlock(staticPage);
        blog.info("Static page <a href=\"" + staticPage.getLocalPermalink() + "\">" + staticPage.getTitle() + "</a> unlocked.");

        return new RedirectView(blog.getUrl() + "viewStaticPages.secureaction");
    }

    return new RedirectView(staticPage.getLocalPermalink());
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.