throw new EntityPermissionException(e.getUser(), e.getLocalizedMessage(), e.getResource());
throw new EntityPermissionException(e.getUser(), e.getLocalizedMessage(), e.getResource());
throw new EntityPermissionException(e.getUser(), e.getLocalizedMessage(), e.getResource());
throw new EntityPermissionException(e.getUser(), e.getLocalizedMessage(), e.getResource());
throw new EntityPermissionException(user, ContentHostingService.EVENT_RESOURCE_READ, ref.getReference()); throw new EntityPermissionException(sessionManager.getCurrentSessionUserId(), "handleExportRequest", ref.getReference());
public void handleAccess(HttpServletRequest req, HttpServletResponse res, Reference ref, Collection copyrightAcceptedRefs) throws EntityPermissionException, EntityNotDefinedException, EntityAccessOverloadException, EntityCopyrightException { String helperId = "sakai.metaobj.formView"; ToolSession toolSession = SessionManager.getCurrentToolSession(); if (toolSession == null) { toolSession = SessionManager.getCurrentSession().getToolSession(req.getSession(true).hashCode() + ""); SessionManager.setCurrentToolSession(toolSession); } ActiveTool helperTool = ActiveToolManager.getActiveTool(helperId); toolSession.setAttribute(helperTool.getId() + Tool.HELPER_DONE_URL, "javascript:alert('hi')"); toolSession.setAttribute(ResourceEditingHelper.ATTACHMENT_ID, ref.getId()); String context = req.getContextPath() + req.getServletPath(); String toolPath = "/formView.osp"; try { helperTool.help(req, res, context, toolPath); } catch (ToolException e) { throw new EntityPermissionException(SessionManager.getCurrentSessionUserId(), ContentHostingService.AUTH_RESOURCE_READ, ref.getReference()); } }
throw new EntityPermissionException(SessionManager.getCurrentSessionUserId(), "basiclti", ref.getReference()); throw new EntityPermissionException(SessionManager.getCurrentSessionUserId(), "basiclti", ref.getReference());
throw new EntityPermissionException(e.getUser(), e.getLock(), e.getResource());
throw new EntityPermissionException(sessionManager.getCurrentSessionUserId(), AUTH_RESOURCE_READ, ref.getReference()); throw new EntityPermissionException(e.getUser(), e.getLock(), e.getResource());
throw new EntityPermissionException(e.getUser(), ContentHostingService.EVENT_RESOURCE_READ, ref.getReference()); } catch (TypeException e) {
throw new EntityPermissionException(sessionManager.getCurrentSessionUserId(), AUTH_RESOURCE_READ, ref.getReference()); throw new EntityPermissionException(e.getUser(), e.getLock(), e.getResource());
throw new EntityPermissionException(p.getUser(),p.getLock(),p.getResource());