Class PartyServiceImp

java.lang.Object
org.ehrbase.service.PartyServiceImp
All Implemented Interfaces:
IUserService, PartyService

@Service public class PartyServiceImp extends Object implements IUserService, PartyService
  • Constructor Details

  • Method Details

    • getCurrentUserId

      public UUID 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:
      getCurrentUserId in interface IUserService
      Returns:
      UUID of default user, derived from authenticated user.
    • findOrCreateParty

      public UUID findOrCreateParty(com.nedap.archie.rm.generic.PartyProxy partyProxy)
      Description copied from interface: PartyService
      Trys to find a Party matching partyProxy otherwise creates it.
      Specified by:
      findOrCreateParty in interface PartyService
      Returns:
      UUID of the corresponding DB object.