Package org.dspace.app.rest.converter
Class CommunityConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.DSpaceObjectConverter<org.dspace.content.Community,CommunityRest>
-
- org.dspace.app.rest.converter.CommunityConverter
-
- All Implemented Interfaces:
DSpaceConverter<org.dspace.content.Community,CommunityRest>,IndexableObjectConverter<org.dspace.content.Community,CommunityRest>
@Component public class CommunityConverter extends DSpaceObjectConverter<org.dspace.content.Community,CommunityRest> implements IndexableObjectConverter<org.dspace.content.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 Constructor Description CommunityConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<org.dspace.content.Community>getModelClass()protected CommunityRestnewInstance()booleansupportsModel(org.dspace.discovery.IndexableObject idxo)-
Methods inherited from class org.dspace.app.rest.converter.DSpaceObjectConverter
convert, getPermissionFilteredMetadata
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.converter.DSpaceConverter
convert
-
-
-
-
Method Detail
-
newInstance
protected CommunityRest newInstance()
- Specified by:
newInstancein classDSpaceObjectConverter<org.dspace.content.Community,CommunityRest>
-
getModelClass
public Class<org.dspace.content.Community> getModelClass()
- Specified by:
getModelClassin interfaceDSpaceConverter<org.dspace.content.Community,CommunityRest>
-
supportsModel
public boolean supportsModel(org.dspace.discovery.IndexableObject idxo)
- Specified by:
supportsModelin interfaceIndexableObjectConverter<org.dspace.content.Community,CommunityRest>- Parameters:
idxo- the IndexableObject to check- Returns:
- true if the actual converter implementation is able to manage the supplied IndexableObject
-
-