Package org.ehrbase.service
Class UserService
java.lang.Object
org.ehrbase.service.UserService
- All Implemented Interfaces:
IUserService
-
Constructor Summary
ConstructorsConstructorDescriptionUserService(IAuthenticationFacade authenticationFacade, TenantService tenantService, KnowledgeCacheService knowledgeCacheService, org.jooq.DSLContext context, ServerConfig serverConfig, org.springframework.cache.CacheManager cacheManager) -
Method Summary
Modifier and TypeMethodDescriptionGet default user UUID, derived from authenticated user via Spring Security.
Internally checks and retrieves the matching user UUID, if it already exists with given info.
-
Constructor Details
-
UserService
public UserService(IAuthenticationFacade authenticationFacade, TenantService tenantService, KnowledgeCacheService knowledgeCacheService, org.jooq.DSLContext context, ServerConfig serverConfig, org.springframework.cache.CacheManager cacheManager)
-
-
Method Details
-
getCurrentUserId
Get default user UUID, derived from authenticated user via Spring Security.
Internally checks and retrieves the matching user UUID, if it already exists with given info. This operation is tenant aware.- Specified by:
getCurrentUserIdin interfaceIUserService- Returns:
- UUID of default user, derived from authenticated user.
-