Interface PlayerSearchService


public interface PlayerSearchService
Player research service. Only used for reading needs.
Author:
andresbustamante
  • Method Summary

    Modifier and Type
    Method
    Description
    findPlayerByEmail(String email, net.andresbustamante.yafoot.commons.model.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, net.andresbustamante.yafoot.commons.model.UserContext context) throws net.andresbustamante.yafoot.commons.exceptions.DatabaseException, net.andresbustamante.yafoot.commons.exceptions.ApplicationException
      Look for a player by using its email address (unique).
      Parameters:
      email - Email address to search
      context - User context
      Returns:
      Player details for this email
      Throws:
      net.andresbustamante.yafoot.commons.exceptions.DatabaseException
      net.andresbustamante.yafoot.commons.exceptions.ApplicationException - If the user is not allowed to make this research
    • findPlayerById

      Player findPlayerById(Integer id) throws net.andresbustamante.yafoot.commons.exceptions.DatabaseException
      Look for a player by using its technical identifier.
      Parameters:
      id - Player's ID
      Returns:
      Player details for this ID
      Throws:
      net.andresbustamante.yafoot.commons.exceptions.DatabaseException