Package edu.stanford.bmir.protege.web.shared.permissions

Examples of edu.stanford.bmir.protege.web.shared.permissions.PermissionDeniedException


        RequestValidator<A> validator = actionHandler.getRequestValidator(action, requestContext);
        if (validator instanceof UserHasProjectWritePermissionValidator) {
            // Temp fix for permission problem
            RequestValidationResult validationResult = validator.validateAction(action, requestContext);
            if(!validationResult.isValid()) {
                throw new PermissionDeniedException(validationResult.getInvalidMessage());
            }
        }
        R result = actionHandler.execute(action, executionContext);
        return new DispatchServiceResultContainer(result);
    }
View Full Code Here


        checkNotNull(userId);
        checkNotNull(changeListGenerator);
        checkNotNull(changeDescriptionGenerator);

        if (!getPermissionsManager().hasWriteAccess(userId)) {
            throw new PermissionDeniedException("You do not have permission to write to ontologies in this project");
        }

        final Set<OWLEntity> changeSignature = new HashSet<OWLEntity>();
        final List<OWLOntologyChange> appliedChanges;
        final ChangeApplicationResult<R> finalResult;
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.permissions.PermissionDeniedException

Copyright © 2018 www.massapicom. 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.