Package com.infoclinika.mssharing.model.read.DashboardReader

Examples of com.infoclinika.mssharing.model.read.DashboardReader.AccessLevel


        }
        return baseUrl + "/anonymous/download/experiment/" + experimentDownloadToken;
    }

    public static AccessLevel fromSharingType(Sharing.Type type) {
        AccessLevel accessLevel;
        switch (type) {
            case PUBLIC:
                accessLevel = AccessLevel.PUBLIC;
                break;
            case PRIVATE:
View Full Code Here


        final List<Long> usedInExperiments = fileIds.isEmpty() ? Collections.<Long>emptyList() : fileRepository.usedInExperiments(fileIds);

        return filtered.transform(new Function<FileMetaData, DashboardReader.FileLine>() {
            @Override
            public DashboardReader.FileLine apply(FileMetaData input) {
                AccessLevel level = validator.getAccessLevel(input);
                final Instrument instrument = input.getInstrument();
                final DashboardReader.FileColumns columns = transformColumns(input);
                return new DashboardReader.FileLine(input.getId(),
                        input.getName(), instrument.getId(),
                        input.getSpecie() == null ? null : input.getSpecie().getId(),
View Full Code Here

TOP

Related Classes of com.infoclinika.mssharing.model.read.DashboardReader.AccessLevel

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.