Package pro.taskana.common.api.security
Interface CurrentUserContext
-
- All Known Implementing Classes:
CurrentUserContextImpl
public interface CurrentUserContextProvides the context information about the current (calling) user. The context is gathered from the JAAS subject.
-
-
Method Summary
All Methods Instance Methods Abstract 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
String getUserid()
Returns the userid of the current user.- Returns:
- String the userid. null if there is no JAAS subject.
-
getGroupIds
List<String> getGroupIds()
Returns all groupIds of the current user.- Returns:
- list containing all groupIds of the current user. Empty if the current user belongs to no groups or no JAAS Subject set.
-
-