Package pro.taskana.common.api.security
Interface CurrentUserContext
- All Known Implementing Classes:
CurrentUserContextImpl
public interface CurrentUserContext
Provides the context information about the current (calling) user. The context is gathered from
the JAAS subject.
-
Method Summary
Modifier and TypeMethodDescriptionReturns all accessIds of the current user.Returns all groupIds of the current user.Returns the userid of the current user.
-
Method Details
-
getUserid
String getUserid()Returns the userid of the current user.- Returns:
- String the userid. null if there is no JAAS subject.
-
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.
-
getAccessIds
Returns all accessIds of the current user. This combines the userId and all groupIds of the current user.- Returns:
- list containing all accessIds of the current user. Empty if there is no JAAS subject.
-