Package com.infoclinika.mssharing.model.internal.entity

Examples of com.infoclinika.mssharing.model.internal.entity.FileMetaData


    FileMetaDataRepository fileMetaDataRepository;

    @Override
    public void updateFileMeta(long fileId, MetaInfo metaInfo) {
        //todo: validation?
        final FileMetaData fileMetaData = checkPresence(fileMetaDataRepository.findOne(fileId));
        final FileMetaAnnotations info = new FileMetaAnnotations(fileMetaData.getId());
        fileMetaData.setMetaInfo(info);
        setAnnotations(metaInfo, info);
        fileMetaDataRepository.save(fileMetaData);
        LOGGER.info("Annotations for file with id '" + fileId + "' has been set");
    }
View Full Code Here


    private FileMetaDataRepository fileMetaDataRepository;
    @Inject
    private Notifier notifier;

    public void parse(long fileId) {
        final FileMetaData file = fileMetaDataRepository.findOne(fileId);
        file.setStatus(FileMetaData.Status.IN_PROGRESS);
        fileMetaDataRepository.save(file);
        LOGGER.debug("Starting parse meta data for file '" + file.getName() + "'...");
        parseFile(file);
    }
View Full Code Here

    @Test(expectedExceptions = AccessDenied.class, dependsOnMethods = { "testMetaDataReTranslateSomeOwner" })
    public void testMetaDataReTranslateSomeInProgress() {
        final long bob = uc.createLab3AndBob();
        final long instrument = uc.createInstrument(bob, uc.getLab3()).get();
        final long file1 = uc.saveFile(bob, instrument);
        final FileMetaData fileMetaData = fileMetaDataRepository.findOne(file1);
        fileMetaData.setStatus(FileMetaData.Status.IN_PROGRESS);
        fileMetaDataRepository.save(fileMetaData);
        instrumentManagement.metaDataReTranslateSomeFiles(admin(), of(file1));
    }
View Full Code Here

TOP

Related Classes of com.infoclinika.mssharing.model.internal.entity.FileMetaData

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.