Package org.xwiki.security
Class UserSecurityReference
- java.lang.Object
-
- org.xwiki.model.reference.EntityReference
-
- org.xwiki.security.SecurityReference
-
- org.xwiki.security.UserSecurityReference
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<EntityReference>
- Direct Known Subclasses:
GroupSecurityReference
public class UserSecurityReference extends SecurityReference
A user is represented internally in the authorization module by a UserSecurityReference corresponding to the DocumentReference of the user's profile document. By inheritance, the null user is represented by the main wiki reference but with a null original reference.- Since:
- 4.0M2
- Version:
- $Id: 567c1e2b38ab39a8d5e9d7a415c2939d0dc86f26 $
- See Also:
SecurityReferenceFactory
, Serialized Form
-
-
Field Summary
-
Fields inherited from class org.xwiki.security.SecurityReference
FARM, mainWikiReference
-
Fields inherited from class org.xwiki.model.reference.EntityReference
TOSTRING_SERIALIZER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentReference
getOriginalReference()
boolean
isGlobal()
-
Methods inherited from class org.xwiki.security.SecurityReference
getOriginalDocumentReference, getOriginalSpaceReference, getOriginalWikiReference, getParentSecurityReference, getReversedSecurityReferenceChain, getSecurityType, getWikiReference
-
Methods inherited from class org.xwiki.model.reference.EntityReference
appendParent, compareTo, equals, equals, equals, equalsNonRecursive, extractFirstReference, extractReference, getName, getParameter, getParameters, getParent, getReversedReferenceChain, getRoot, getType, hashCode, hasParent, removeParent, replaceParent, replaceParent, setName, setParameter, setParameters, setParent, setType, size, toString
-
-
-
-
Method Detail
-
getOriginalReference
public DocumentReference getOriginalReference()
- Overrides:
getOriginalReference
in classSecurityReference
- Returns:
- the original reference used when this security reference was built.
-
isGlobal
public boolean isGlobal()
- Returns:
- true for global user
- Since:
- 5.0M2
-
-