Package net.sourceforge.pebble.service

Examples of net.sourceforge.pebble.service.StaticPageService.lock()


    if (staticPage == null) {
      return new NotFoundView();
    } else {
      getModel().put(Constants.STATIC_PAGE_KEY, staticPage);
      if (service.lock(staticPage)) {
        return new StaticPageFormView();
      } else {
        return new StaticPageLockedView();
      }
    }
View Full Code Here


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

    if (submit.equals("Edit")) {
      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);
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.