Class CurrentUserContextImpl
- java.lang.Object
-
- pro.taskana.common.internal.security.CurrentUserContextImpl
-
- All Implemented Interfaces:
CurrentUserContext
public class CurrentUserContextImpl extends Object implements CurrentUserContext
-
-
Constructor Summary
Constructors Constructor Description CurrentUserContextImpl(boolean shouldUseLowerCaseForAccessIds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAccessIds()Returns all accessIds of the current user.List<String>getGroupIds()Returns all groupIds of the current user.StringgetUserid()Returns the userid of the current user.
-
-
-
Method Detail
-
getUserid
public String getUserid()
Description copied from interface:CurrentUserContextReturns the userid of the current user.- Specified by:
getUseridin interfaceCurrentUserContext- Returns:
- String the userid. null if there is no JAAS subject.
-
getGroupIds
public List<String> getGroupIds()
Description copied from interface:CurrentUserContextReturns all groupIds of the current user.- Specified by:
getGroupIdsin interfaceCurrentUserContext- Returns:
- list containing all groupIds of the current user. Empty if the current user belongs to no groups or no JAAS Subject set.
-
getAccessIds
public List<String> getAccessIds()
Description copied from interface:CurrentUserContextReturns all accessIds of the current user. This combines the userId and all groupIds of the current user.- Specified by:
getAccessIdsin interfaceCurrentUserContext- Returns:
- list containing all accessIds of the current user. Empty if there is no JAAS subject.
-
-