Package de.murmelmeister.murmelapi.user
Klasse UserProvider
java.lang.Object
de.murmelmeister.murmelapi.user.UserProvider
- Alle implementierten Schnittstellen:
User
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidcreateNewUser(UUID uuid, String name) Create a new user and check if the user already exists.voiddeleteUser(UUID uuid) Delete a user.booleanexistsUser(String name) Check if a user exists.booleanexistsUser(UUID uuid) Check if a user exists.intGet the ID of the user.intGet the ID of the user.getUniqueId(String name) Get the UUID of the user.Get a list of all unique IDs.getUsername(UUID uuid) Get the name of the user.Get a list of all usernames.voidJoin a user to the server.voidRename a user.
-
Konstruktordetails
-
UserProvider
- Löst aus:
SQLException
-
-
Methodendetails
-
existsUser
Beschreibung aus Schnittstelle kopiert:UserCheck if a user exists.- Angegeben von:
existsUserin SchnittstelleUser- Parameter:
uuid- UUID of the user- Gibt zurück:
- True if the user exists, otherwise false
- Löst aus:
SQLException- If the SQL query is not valid
-
existsUser
Beschreibung aus Schnittstelle kopiert:UserCheck if a user exists.- Angegeben von:
existsUserin SchnittstelleUser- Parameter:
name- Name of the user- Gibt zurück:
- True if the user exists, otherwise false
- Löst aus:
SQLException- If the SQL query is not valid
-
createNewUser
Beschreibung aus Schnittstelle kopiert:UserCreate a new user and check if the user already exists. If the user already exists, the method will return without creating a new user.- Angegeben von:
createNewUserin SchnittstelleUser- Parameter:
uuid- UUID of the username- Name of the user- Löst aus:
SQLException- If the SQL query is not valid
-
deleteUser
Beschreibung aus Schnittstelle kopiert:UserDelete a user.- Angegeben von:
deleteUserin SchnittstelleUser- Parameter:
uuid- UUID of the user- Löst aus:
SQLException- If the SQL query is not valid
-
getId
Beschreibung aus Schnittstelle kopiert:UserGet the ID of the user.- Angegeben von:
getIdin SchnittstelleUser- Parameter:
uuid- UUID of the user- Gibt zurück:
- The ID of the user
- Löst aus:
SQLException- If the SQL query is not valid
-
getId
Beschreibung aus Schnittstelle kopiert:UserGet the ID of the user.- Angegeben von:
getIdin SchnittstelleUser- Parameter:
name- Name of the user- Gibt zurück:
- The ID of the user
- Löst aus:
SQLException- If the SQL query is not valid
-
getUniqueId
Beschreibung aus Schnittstelle kopiert:UserGet the UUID of the user.- Angegeben von:
getUniqueIdin SchnittstelleUser- Parameter:
name- Name of the user- Gibt zurück:
- The UUID of the user
- Löst aus:
SQLException- If the SQL query is not valid
-
getUsername
Beschreibung aus Schnittstelle kopiert:UserGet the name of the user.- Angegeben von:
getUsernamein SchnittstelleUser- Parameter:
uuid- UUID of the user- Gibt zurück:
- The name of the user
- Löst aus:
SQLException- If the SQL query is not valid
-
rename
Beschreibung aus Schnittstelle kopiert:UserRename a user.- Angegeben von:
renamein SchnittstelleUser- Parameter:
uuid- UUID of the usernewName- New name of the user- Löst aus:
SQLException- If the SQL query is not valid
-
getUniqueIds
Beschreibung aus Schnittstelle kopiert:UserGet a list of all unique IDs.- Angegeben von:
getUniqueIdsin SchnittstelleUser- Gibt zurück:
- A list of all unique IDs
- Löst aus:
SQLException- If the SQL query is not valid
-
getUsernames
Beschreibung aus Schnittstelle kopiert:UserGet a list of all usernames.- Angegeben von:
getUsernamesin SchnittstelleUser- Gibt zurück:
- A list of all usernames
- Löst aus:
SQLException- If the SQL query is not valid
-
joinUser
Beschreibung aus Schnittstelle kopiert:UserJoin a user to the server. Create a new user if the user does not exist. Check if the user changes their name and rename them.- Angegeben von:
joinUserin SchnittstelleUser- Parameter:
uuid- UUID of the username- Name of the user- Löst aus:
SQLException- If the SQL query is not valid
-