/** * @see org.opencms.workplace.CmsWorkplace#checkRole() */ @Override protected void checkRole() throws CmsRoleViolationException { // needed since these pages are static exported if (!OpenCms.getDefaultUsers().isUserExport(getCms().getRequestContext().currentUser().getName())) { // only for users that are not the export user OpenCms.getRoleManager().checkRole(getCms(), CmsRole.WORKPLACE_USER); } }
/** * @see org.opencms.workplace.CmsWorkplace#checkRole() */ @Override protected void checkRole() throws CmsRoleViolationException { // needed since these pages are static exported if (!OpenCms.getDefaultUsers().isUserExport(getCms().getRequestContext().getCurrentUser().getName())) { // only for users that are not the export user OpenCms.getRoleManager().checkRole(getCms(), CmsRole.WORKPLACE_USER); } }
if (!user.isGuestUser() && !OpenCms.getDefaultUsers().isUserExport(user.getName())) {
/** * Registers the current session with OpenCms.<p> * * @param request the current request * @param cms the cms object to register * * @return the updated cms context * * @throws CmsException if something goes wrong */ protected CmsObject registerSession(HttpServletRequest request, CmsObject cms) throws CmsException { // update the request context cms = OpenCmsCore.getInstance().updateContext(request, cms); CmsUser user = cms.getRequestContext().currentUser(); if (!user.isGuestUser() && !OpenCms.getDefaultUsers().isUserExport(user.getName())) { // create the session info object, only for 'real' users CmsSessionInfo sessionInfo = new CmsSessionInfo( cms.getRequestContext(), new CmsUUID(), request.getSession().getMaxInactiveInterval()); // register the updated cms object in the session manager OpenCmsCore.getInstance().getSessionManager().addSessionInfo(sessionInfo); } // return the updated cms object return cms; }