} else {
getModel().put(Constants.STATIC_PAGE_KEY, staticPage);
return new StaticPageLockedView();
}
return new RedirectView(blog.getUrl() + "viewStaticPages.secureaction");
} 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());
}