package com.pack.modeler.service;

import com.pack.modeler.model.BPMNData;
import com.pack.modeler.repository.BPMNDataRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BPMNFileStorageService {

    @Autowired
    BPMNDataRepo bpmnDataRepo;

    public BPMNData getFile(String fileId) {
        return bpmnDataRepo.getOne(Long.parseLong(fileId));
    }
}
