package net.sourceforge.fenixedu.domain; import net.sourceforge.fenixedu._development.PropertiesManager; import net.sourceforge.fenixedu.domain.documents.GeneratedDocumentType; import pt.ist.fenixWebFramework.services.Service; public class QueueJobResultFile extends QueueJobResultFile_Base { protected QueueJobResultFile(QueueJobWithFile job, Person operator, String filename, byte[] content) { super(); setJob(job); init(GeneratedDocumentType.QUEUE_JOB, operator, operator, filename, content); } @Override public void delete() { removeJob(); super.delete(); } @Service public static void store(QueueJobWithFile job, Person person, String filename, byte[] content) { if (PropertiesManager.getBooleanProperty(CONFIG_DSPACE_DOCUMENT_STORE)) { new QueueJobResultFile(job, person, filename, content); } } }