public interface User extends PermissionHolder
| Modifier and Type | Method and Description |
|---|---|
@NonNull UserData |
getCachedData()
Gets the user's
UserData cache. |
@Nullable String |
getName()
Gets the users username
|
@NonNull String |
getPrimaryGroup()
Gets the users current primary group.
|
@NonNull UUID |
getUuid()
Gets the users unique ID
|
void |
refreshPermissions()
Deprecated.
Calling this method is no longer necessary. Permissions data is now refreshed on
demand, as changes are made. Consider use of
PermissionHolder.refreshCachedData()
instead. This method is now implemented as a no-op. |
@NonNull DataMutateResult |
setPrimaryGroup(@NonNull String group)
Sets a users primary group.
|
void |
setupDataCache()
Deprecated.
Use of this method is no longer necessary. It is implemented as a no-op.
|
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, setPermission, setPermissionUnchecked, setTransientPermission, setTransientPermission, setTransientPermissionUnchecked, unsetPermission, unsetPermissionUnchecked, unsetTransientPermission, unsetTransientPermissionUnchecked@NonNull UUID getUuid()
@Nullable String getName()
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@NonNull UserData getCachedData()
UserData cache.getCachedData in interface PermissionHolder@Deprecated void refreshPermissions()
PermissionHolder.refreshCachedData()
instead. This method is now implemented as a no-op.@Deprecated void setupDataCache()