Package org.dspace.app.rest.converter
Class SubmissionCCLicenseConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.SubmissionCCLicenseConverter
-
- All Implemented Interfaces:
DSpaceConverter<CCLicense,SubmissionCCLicenseRest>
@Component public class SubmissionCCLicenseConverter extends Object implements DSpaceConverter<CCLicense,SubmissionCCLicenseRest>
This converter is responsible for transforming the model representation of an CCLicense to the REST representation of an CCLicense and vice versa
-
-
Constructor Summary
Constructors Constructor Description SubmissionCCLicenseConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmissionCCLicenseRestconvert(CCLicense modelObject, Projection projection)Convert a CCLicense to its REST representationClass<CCLicense>getModelClass()For what DSpace API model class does this converter convert?
-
-
-
Method Detail
-
convert
public SubmissionCCLicenseRest convert(CCLicense modelObject, Projection projection)
Convert a CCLicense to its REST representation- Specified by:
convertin interfaceDSpaceConverter<CCLicense,SubmissionCCLicenseRest>- Parameters:
modelObject- - the CCLicense to convertprojection- - the projection- Returns:
- the corresponding SubmissionCCLicenseRest object
-
getModelClass
public Class<CCLicense> getModelClass()
Description copied from interface:DSpaceConverterFor what DSpace API model class does this converter convert?- Specified by:
getModelClassin interfaceDSpaceConverter<CCLicense,SubmissionCCLicenseRest>- Returns:
- Class of model objects represented.
-
-