Package com.infoclinika.mssharing.web.controller.response

Examples of com.infoclinika.mssharing.web.controller.response.UploadFilePathResponse


    @ResponseBody
    public UploadFilePathResponse composeExperimentAttachmentDestination(@PathVariable("id") long attachmentId, Principal principal) {
        final long userId = getUserId(principal);
        //TBD: should we verify attachment exists?
        final NodePath nodePath = storedObjectPaths.experimentAttachmentPath(userId, attachmentId);
        return new UploadFilePathResponse(nodePath.getPath());
    }
View Full Code Here


        final long userId = getUserId(principal);

        final DetailsReader.FileItem fileItem = detailsReader.readFileDetails(userId, fileId);

        final NodePath nodePath = storedObjectPaths.rawFilePath(userId, fileItem.instrumentId, fileItem.name);
        return new UploadFilePathResponse(nodePath.getPath());
    }
View Full Code Here

    @ResponseBody
    public UploadFilePathResponse composeProjectAttachmentDestination(@PathVariable("id") long attachmentId, Principal principal) {
        final long userId = getUserId(principal);
        //TBD: should we verify attachment exists?
        final NodePath nodePath = storedObjectPaths.projectAttachmentPath(userId, attachmentId);
        return new UploadFilePathResponse(nodePath.getPath());
    }
View Full Code Here

TOP

Related Classes of com.infoclinika.mssharing.web.controller.response.UploadFilePathResponse

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.