Package org.xwiki.user
Class GuestUserReference
- java.lang.Object
-
- org.xwiki.user.GuestUserReference
-
- All Implemented Interfaces:
Serializable
,UserReference
public final class GuestUserReference extends Object implements UserReference
Represents the Super Admin user reference, i.e. a virtual user that is not logged in. If you need to verify if a given UserReference is the Guest user, you should useif (myRef == GuestUserReference.INSTANCE)
.- Since:
- 12.2
- Version:
- $Id: 3bd77146e2ba28c36b4304259b111b39b97ab5ec $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static GuestUserReference
INSTANCE
The unique instance of this class.
-
-
-
Field Detail
-
INSTANCE
public static final GuestUserReference INSTANCE
The unique instance of this class.
-
-
Method Detail
-
isGlobal
public boolean isGlobal()
- Specified by:
isGlobal
in interfaceUserReference
- Returns:
- true if this reference points to a global user
-
-