public interface User extends PermissionHolder
PermissionHolder.Identifier| Modifier and Type | Method and Description |
|---|---|
@NonNull String |
getPrimaryGroup()
Gets the users current primary group.
|
@NonNull UUID |
getUniqueId()
Gets the users unique ID
|
@Nullable String |
getUsername()
Gets the users username
|
@NonNull DataMutateResult |
setPrimaryGroup(@NonNull String group)
Sets a users primary group.
|
auditTemporaryNodes, data, getCachedData, getData, getDistinctNodes, getFriendlyName, getIdentifier, getInheritedGroups, getNodes, getNodes, getQueryOptions, resolveDistinctInheritedNodes, resolveInheritedNodes, resolveInheritedNodes, transientData@NonNull UUID getUniqueId()
@Nullable String getUsername()
Returns null if no username is known for the user.
@NonNull String getPrimaryGroup()
The result of this method depends on which method is configured for primary group
calculation. It may not be the same as any value set through
setPrimaryGroup(String).
@NonNull DataMutateResult setPrimaryGroup(@NonNull String group)
This modifies the "stored value" for the users primary group, which may or may not actually take effect, depending on how the platform is calculating primary groups.
group - the new primary groupIllegalStateException - if the user is not a member of that groupNullPointerException - if the group is null