@Singleton
public class Identifiers
extends java.lang.Object
Constructor and Description |
---|
Identifiers(DBSystem dbSystem,
UUIDUtility uuidUtility) |
Modifier and Type | Method and Description |
---|---|
java.util.UUID |
getPlayerUUID(Request request)
Obtain UUID of the player.
|
java.util.UUID |
getPlayerUUID(java.lang.String name) |
java.util.UUID |
getServerUUID(Request request)
Obtain UUID of the server.
|
protected final DBSystem dbSystem
@Inject public Identifiers(DBSystem dbSystem, UUIDUtility uuidUtility)
public java.util.UUID getServerUUID(Request request)
request
- for Request, URIQuery needs a 'server' parameter.BadRequestException
- If server parameter is not defined or the server is not in the database.public java.util.UUID getPlayerUUID(Request request)
request
- for Request, URIQuery needs a 'player' parameter.BadRequestException
- If player parameter is not defined or the player is not in the database.public java.util.UUID getPlayerUUID(java.lang.String name)