294295296297298299300301302303304
} // check access if (checkAccess) { page.checkAccess(SecuredResource.VIEW_ACTION); } return page; } /*
5758596061626364656667
public boolean checkAccess(RequestContext context, String action) { Page page = context.getPage(); try { page.checkAccess(action); } catch (Exception e) { Principal principal = context.getRequest().getUserPrincipal(); String userName = this.guest;
446447448449450451452453454455456
{ throw new PageNotFoundException("Page " + path + " not found."); } // check for view access on page page.checkAccess(JetspeedActions.VIEW); return page; } catch (PageNotFoundException pnfe) {
753754755756757758759760761762763
{ throw new PageNotFoundException("Page not found: " + name); } // check for view access on page page.checkAccess(JetspeedActions.VIEW); return page; } /* (non-Javadoc)
322323324325326327328329330331332
} // check access if (checkAccess) { page.checkAccess(JetspeedActions.VIEW); } return page; } /*
9899100101102103104105106107108
try { if (Page.DOCUMENT_TYPE.equals(type)) { Page page = pageManager.getPage(path); page.checkAccess(JetspeedActions.EDIT); return new PageBean(page); } else if (Link.DOCUMENT_TYPE.equals(type)) { Link link = getLink(path);
903904905906907908909910911912913
327328329330331332333334335336337