Interface PlayerSearchService
- All Known Implementing Classes:
PlayerSearchServiceImpl
public interface PlayerSearchService
Player research service. Only used for reading needs.
- Author:
- andresbustamante
-
Method Summary
Modifier and TypeMethodDescriptionfindPlayerByEmail(String email, UserContext context) Look for a player by using its email address (unique).Look for a player by using its technical identifier.
-
Method Details
-
findPlayerByEmail
Player findPlayerByEmail(String email, UserContext context) throws DatabaseException, ApplicationException Look for a player by using its email address (unique).- Parameters:
email- Email address to searchcontext- User context- Returns:
- Player details for this email
- Throws:
DatabaseExceptionApplicationException- If the user is not allowed to make this research
-
findPlayerById
Look for a player by using its technical identifier.- Parameters:
id- Player's ID- Returns:
- Player details for this ID
- Throws:
DatabaseException
-