this.rawFilesRepository = rawFilesRepository;
}
@Override
public PaginationItems.PagedItem<ExperimentFileItem> pagedFilesInExperiment(long actor, long experimentId, PaginationItems.PagedItemInfo pageInfo) {
Experiment experiment = checkPresence(experimentRepository.findOne(experimentId));
if (!ruleValidator.isUserCanReadExperiment(actor).apply(experiment))
throw new AccessDenied("User hasn't permissions to read experiment");
Page<RawFile> files = getPagedFiles(experimentId, pageInfo);
return new PaginationItems.PagedItem<ExperimentFileItem>(files.getTotalPages(), files.getTotalElements(),