public class InternalUser extends CurrentUser
An InternalUser has no real identity, it acts as the server and can access anything it wants, anytime it wants, given the JVM's own direct access to data. Plugins may use this when they need to have a CurrentUser with read permission on anything.
PluginUser
Modifier and Type | Class and Description |
---|---|
static interface |
InternalUser.Factory |
CurrentUser.PropertyKey<T>
Constructor and Description |
---|
InternalUser() |
Modifier and Type | Method and Description |
---|---|
GroupMembership |
getEffectiveGroups()
Get the set of groups the user is currently a member of.
|
boolean |
isInternalUser()
Check if the CurrentUser is an InternalUser.
|
java.lang.String |
toString() |
asIdentifiedUser, get, getAccessPath, getAccountId, getLastLoginExternalIdKey, getRealUser, getUserName, hasSameAccountId, isIdentifiedUser, isImpersonating, put, setAccessPath, setLastLoginExternalIdKey, updateRealAccountId
public GroupMembership getEffectiveGroups()
CurrentUser
The returned set may be a subset of the user's actual groups; if the user's account is currently deemed to be untrusted then the effective group set is only the anonymous and registered user groups. To enable additional groups (and gain their granted permissions) the user must update their account to use only trusted authentication providers.
getEffectiveGroups
in class CurrentUser
public boolean isInternalUser()
CurrentUser
isInternalUser
in class CurrentUser
public java.lang.String toString()
toString
in class java.lang.Object