Interface PlayerManagementService
- All Known Implementing Classes:
PlayerManagementServiceImpl
public interface PlayerManagementService
Players management service.
- Author:
- andresbustamante
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeactivatePlayer(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.voidupdatePlayer(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:
DatabaseExceptionApplicationException
-
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:
DatabaseExceptionDirectoryExceptionApplicationException
-
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:
DatabaseExceptionDirectoryException
-