- All Implemented Interfaces:
- org.springframework.core.convert.converter.ConditionalConverter, org.springframework.core.convert.converter.ConditionalGenericConverter, org.springframework.core.convert.converter.GenericConverter
public class UserFromUsernameConverter
extends Object
implements org.springframework.core.convert.converter.ConditionalGenericConverter
Converts a string to a User object
This converter will try to get the User object by using the source value as an username.
If it does not find any matches, it will try to retrieve the User object by using the source value as an externalId, otherwise
returns null.
- Author:
- Sérgio Silva (sergio.silva@tecnico.ulisboa.pt)