Package com.infoclinika.mssharing.web

Examples of com.infoclinika.mssharing.web.ResourceDeniedException


    @ResponseBody
    public DetailsReader.LabItem getLabDetails(@PathVariable long id, Principal principal) {
        try {
            return detailsReader.readLabRequestDetails(getUserId(principal), id);
        } catch (AccessDenied e) {
            throw new ResourceDeniedException(e.getMessage());
        }
    }
View Full Code Here


    @ResponseBody
    public RequestsReader.InstrumentRequestDetails getInstrumentDetails(@PathVariable long instrumentId, @PathVariable long requesterId, Principal principal) {
        try {
            return requestsReader.myInstrumentInboxDetails(getUserId(principal), instrumentId, requesterId);
        } catch (AccessDenied e) {
            throw new ResourceDeniedException(e.getMessage());
        }
    }
View Full Code Here

    @ResponseStatus(HttpStatus.OK)
    public void approveLabCreation(@PathVariable long id, Principal principal) throws Exception {
        try {
            labManagement.confirmLabCreation(getUserId(principal), id);
        } catch (AccessDenied e) {
            throw new ResourceDeniedException(e.getMessage());
        }
    }
View Full Code Here

    @ResponseBody
    public ImmutableSortedSet<ExtendedInfoReader.ExperimentFileItem> getExperimentFiles(Principal principal, @PathVariable long experiment) {
        try {
            return extendedInfoReader.filesInExperiment(getUserId(principal), experiment);
        } catch (AccessDenied e) {
            throw new ResourceDeniedException(e.getMessage());
        }
    }
View Full Code Here

    @ResponseBody
    public DetailsReader.FileItem fileDetails(@PathVariable final Long id, Principal principal) {
        try {
            return detailsReader.readFileDetails(getUserId(principal), id);
        } catch (AccessDenied e) {
            throw new ResourceDeniedException(e.getMessage());
        }
    }
View Full Code Here

    @ResponseBody
    public DetailsReader.FileItem fileDetailsWithConditions(@PathVariable final Long id, @PathVariable final Long experimentId, Principal principal) {
        try {
            return detailsReader.readFileDetailsWithConditions(getUserId(principal), id, experimentId);
        } catch (AccessDenied e) {
            throw new ResourceDeniedException(e.getMessage());
        }
    }
View Full Code Here

                                                                                     @RequestParam String sortingField, @RequestParam boolean ask,
                                                                                     @RequestParam(required = false) @Nullable String filterQuery, Principal principal) {
        try {
            return extendedInfoReader.pagedFilesInExperiment(getUserId(principal), experiment, createPagedInfo(page, items, sortingField, ask, filterQuery));
        } catch (AccessDenied e) {
            throw new ResourceDeniedException(e.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of com.infoclinika.mssharing.web.ResourceDeniedException

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.