Package org.ehrbase.service
Class PartyServiceImp
java.lang.Object
org.ehrbase.service.PartyServiceImp
- All Implemented Interfaces:
IUserService,PartyService
-
Constructor Summary
ConstructorsConstructorDescriptionPartyServiceImp(IAuthenticationFacade authenticationFacade, TenantService tenantService, org.springframework.cache.CacheManager cacheManager, PartyProxyRepository partyProxyRepository) -
Method Summary
Modifier and TypeMethodDescriptionfindOrCreateParty(com.nedap.archie.rm.generic.PartyProxy partyProxy) Trys to find a Party matchingpartyProxyotherwise creates it.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.
-
Constructor Details
-
PartyServiceImp
public PartyServiceImp(IAuthenticationFacade authenticationFacade, TenantService tenantService, org.springframework.cache.CacheManager cacheManager, PartyProxyRepository partyProxyRepository)
-
-
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.
-
findOrCreateParty
Description copied from interface:PartyServiceTrys to find a Party matchingpartyProxyotherwise creates it.- Specified by:
findOrCreatePartyin interfacePartyService- Returns:
UUIDof the corresponding DB object.
-