Class LicenseValidation
- java.lang.Object
-
- org.dspace.app.rest.submit.step.validation.AbstractValidation
-
- org.dspace.app.rest.submit.step.validation.LicenseValidation
-
- All Implemented Interfaces:
Validation
public class LicenseValidation extends AbstractValidation
This submission validation check that the license has been grant for the inprogress submission looking for the presence of a license bitstream in the license bundle,- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description LicenseValidation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitstreamServicegetBitstreamService()voidsetBitstreamService(BitstreamService bitstreamService)List<ErrorRest>validate(SubmissionService submissionService, InProgressSubmission obj, SubmissionStepConfig config)-
Methods inherited from class org.dspace.app.rest.submit.step.validation.AbstractValidation
addError, getErrors, getName, setName
-
-
-
-
Method Detail
-
validate
public List<ErrorRest> validate(SubmissionService submissionService, InProgressSubmission obj, SubmissionStepConfig config) throws DCInputsReaderException, SQLException
- Throws:
DCInputsReaderExceptionSQLException
-
getBitstreamService
public BitstreamService getBitstreamService()
-
setBitstreamService
public void setBitstreamService(BitstreamService bitstreamService)
-
-