Package org.dspace.app.rest.converter
Class CommunityConverter
java.lang.Object
org.dspace.app.rest.converter.DSpaceObjectConverter<Community,CommunityRest>
org.dspace.app.rest.converter.CommunityConverter
- All Implemented Interfaces:
DSpaceConverter<Community,,CommunityRest> IndexableObjectConverter<Community,CommunityRest>
@Component
public class CommunityConverter
extends DSpaceObjectConverter<Community,CommunityRest>
implements IndexableObjectConverter<Community,CommunityRest>
This is the converter from/to the community in the DSpace API data model and
the REST data model
- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(Community community, Projection projection) Convert a DSpace model object into its equivalent REST resource, applying a given projection.For what DSpace API model class does this converter convert?protected CommunityRestbooleansupportsModel(IndexableObject idxo) Methods inherited from class org.dspace.app.rest.converter.DSpaceObjectConverter
getPermissionFilteredMetadata
-
Constructor Details
-
CommunityConverter
public CommunityConverter()
-
-
Method Details
-
convert
Description copied from interface:DSpaceConverterConvert a DSpace model object into its equivalent REST resource, applying a given projection.- Specified by:
convertin interfaceDSpaceConverter<Community,CommunityRest> - Overrides:
convertin classDSpaceObjectConverter<Community,CommunityRest> - Parameters:
community- a DSpace API model object.- Returns:
- a resource representing the model object.
-
newInstance
- Specified by:
newInstancein classDSpaceObjectConverter<Community,CommunityRest>
-
getModelClass
Description copied from interface:DSpaceConverterFor what DSpace API model class does this converter convert?- Specified by:
getModelClassin interfaceDSpaceConverter<Community,CommunityRest> - Returns:
- Class of model objects represented.
-
supportsModel
- Specified by:
supportsModelin interfaceIndexableObjectConverter<Community,CommunityRest> - Parameters:
idxo- the IndexableObject to check- Returns:
- true if the actual converter implementation is able to manage the supplied IndexableObject
-