public interface User extends PermissionHolder
| Modifier and Type | Method and Description |
|---|---|
UserData |
getCachedData()
Gets the user's
UserData cache. |
String |
getName()
Gets the users username
|
String |
getPrimaryGroup()
Gets the users current primary group.
|
UUID |
getUuid()
Gets the users unique ID
|
void |
refreshPermissions()
Deprecated.
in favour of
PermissionHolder.refreshCachedData(). |
DataMutateResult |
setPrimaryGroup(String group)
Sets a users primary group.
|
void |
setupDataCache()
Deprecated.
because use of this method is no longer necessary.
|
auditTemporaryPermissions, clearMatching, clearMatchingTransient, clearMeta, clearMeta, clearNodes, clearNodes, clearParents, clearParents, clearTransientNodes, exportNodes, getAllNodes, getAllNodes, getAllNodesFiltered, getEnduringPermissions, getFriendlyName, getNodes, getObjectName, getOwnNodes, getPermanentPermissionNodes, getPermissions, getTemporaryPermissionNodes, getTransientNodes, getTransientPermissions, hasPermission, hasPermission, hasTransientPermission, hasTransientPermission, inheritsGroup, inheritsGroup, inheritsPermission, inheritsPermission, refreshCachedData, resolveInheritances, resolveInheritances, setPermission, setPermissionUnchecked, setTransientPermission, setTransientPermissionUnchecked, unsetPermission, unsetPermissionUnchecked, unsetTransientPermission, unsetTransientPermissionUnchecked@Nonnull UUID getUuid()
@Nullable String getName()
Returns null if no username is associated with this 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)
group - the new primary groupIllegalStateException - if the user is not a member of that groupNullPointerException - if the group is null@Nonnull UserData getCachedData()
UserData cache.getCachedData in interface PermissionHolder@Deprecated void refreshPermissions()
PermissionHolder.refreshCachedData().This request is not buffered, and the refresh call will be ran directly. This should be called on an asynchronous thread.
@Deprecated void setupDataCache()
Is it not necessary to call this method before
using getCachedData().
Copyright © 2018. All rights reserved.