use of edu.unc.lib.boxc.deposit.fcrepo4.IngestDepositRecordJob in project box-c by UNC-Libraries.
the class IngestDepositRecordJobIT method init.
@Before
public void init() throws Exception {
job = new IngestDepositRecordJob();
job.setJobUUID(jobUUID);
job.setDepositUUID(depositUUID);
job.setDepositDirectory(depositDir);
job.setPremisLoggerFactory(premisLoggerFactory);
setField(job, "pidMinter", pidMinter);
setField(job, "depositModelManager", depositModelManager);
setField(job, "depositsDirectory", depositsDirectory);
setField(job, "depositStatusFactory", depositStatusFactory);
setField(job, "jobStatusFactory", jobStatusFactory);
setField(job, "repoObjLoader", repoObjLoader);
setField(job, "repoObjFactory", repoObjFactory);
setField(job, "transferService", binaryTransferService);
setField(job, "locationManager", storageLocationManager);
job.init();
Model model = job.getWritableModel();
Resource depositResc = model.getResource(depositPid.getRepositoryPath());
depositResc.addProperty(Cdr.storageLocation, LOC1_ID);
job.closeModel();
}
Aggregations