Package org.dspace.app.rest.converter
Class SubmissionCCLicenseConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.SubmissionCCLicenseConverter
-
- All Implemented Interfaces:
DSpaceConverter<org.dspace.license.CCLicense,SubmissionCCLicenseRest>
@Component public class SubmissionCCLicenseConverter extends Object implements DSpaceConverter<org.dspace.license.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(org.dspace.license.CCLicense modelObject, Projection projection)Convert a CCLicense to its REST representationClass<org.dspace.license.CCLicense>getModelClass()
-
-
-
Method Detail
-
convert
public SubmissionCCLicenseRest convert(org.dspace.license.CCLicense modelObject, Projection projection)
Convert a CCLicense to its REST representation- Specified by:
convertin interfaceDSpaceConverter<org.dspace.license.CCLicense,SubmissionCCLicenseRest>- Parameters:
modelObject- - the CCLicense to convertprojection- - the projection- Returns:
- the corresponding SubmissionCCLicenseRest object
-
getModelClass
public Class<org.dspace.license.CCLicense> getModelClass()
- Specified by:
getModelClassin interfaceDSpaceConverter<org.dspace.license.CCLicense,SubmissionCCLicenseRest>
-
-