Package org.dspace.app.rest.converter
Class AuthenticationTokenConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.AuthenticationTokenConverter
-
- All Implemented Interfaces:
DSpaceConverter<AuthenticationToken,AuthenticationTokenRest>
@Component public class AuthenticationTokenConverter extends Object implements DSpaceConverter<AuthenticationToken,AuthenticationTokenRest>
This is the converter from the AuthenticationToken to the REST data model
-
-
Constructor Summary
Constructors Constructor Description AuthenticationTokenConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationTokenRestconvert(AuthenticationToken modelObject, Projection projection)Convert a DSpace model object into its equivalent REST resource, applying a given projection.Class<AuthenticationToken>getModelClass()For what DSpace API model class does this converter convert?
-
-
-
Method Detail
-
convert
public AuthenticationTokenRest convert(AuthenticationToken modelObject, Projection projection)
Description copied from interface:DSpaceConverterConvert a DSpace model object into its equivalent REST resource, applying a given projection.- Specified by:
convertin interfaceDSpaceConverter<AuthenticationToken,AuthenticationTokenRest>- Parameters:
modelObject- a DSpace API model object.- Returns:
- a resource representing the model object.
-
getModelClass
public Class<AuthenticationToken> getModelClass()
Description copied from interface:DSpaceConverterFor what DSpace API model class does this converter convert?- Specified by:
getModelClassin interfaceDSpaceConverter<AuthenticationToken,AuthenticationTokenRest>- Returns:
- Class of model objects represented.
-
-