Interface PlayerManagementService
- All Known Implementing Classes:
PlayerManagementServiceImpl
public interface PlayerManagementService
Players management service.
- Author:
- andresbustamante
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deactivatePlayer
(Player player, UserContext userContext) Deactivates a player and deletes his/her history in the application.savePlayer
(Player player, UserContext userContext) Creates a new player in the application.void
updatePlayer
(Player player, UserContext userContext) Updates basic details for a player.
-
Method Details
-
savePlayer
Integer savePlayer(Player player, UserContext userContext) throws DatabaseException, ApplicationException Creates a new player in the application.- Parameters:
player
- Player to createuserContext
- Request context- Returns:
- New player's identifier
- Throws:
DatabaseException
ApplicationException
-
updatePlayer
void updatePlayer(Player player, UserContext userContext) throws DirectoryException, DatabaseException, ApplicationException Updates basic details for a player.- Parameters:
player
- Player to updateuserContext
- Request context- Throws:
DatabaseException
DirectoryException
ApplicationException
-
deactivatePlayer
void deactivatePlayer(Player player, UserContext userContext) throws DirectoryException, DatabaseException Deactivates a player and deletes his/her history in the application.- Parameters:
player
- Player to deactivateuserContext
- Request context- Throws:
DatabaseException
DirectoryException
-