Package org.ehrbase.repository
Class PartyProxyRepository
java.lang.Object
org.ehrbase.repository.PartyProxyRepository
Handles DB-Access to
PartyIdentified and Identifier- Author:
- Stefan Spiska
-
Constructor Summary
ConstructorsConstructorDescriptionPartyProxyRepository(org.jooq.DSLContext context, TenantService tenantService) -
Method Summary
Modifier and TypeMethodDescriptioncreate(com.nedap.archie.rm.generic.PartyProxy partyProxy) Creates a newPartyProxyin the DB.createInternalUser(String username) Create aPartyIdentifiedfor a ehrbase user corresponding tousernamefindInternalUserId(String username) Find the party id of a ehrbase user corresponding tousernamefindMatching(com.nedap.archie.rm.generic.PartyProxy partyProxy) Find the uuid aPartyProxyin the DB wich matches the givenpartyProxy
-
Constructor Details
-
PartyProxyRepository
-
-
Method Details
-
findInternalUserId
Find the party id of a ehrbase user corresponding tousername- Parameters:
username-- Returns:
-
createInternalUser
Create aPartyIdentifiedfor a ehrbase user corresponding tousername- Parameters:
username-- Returns:
-
create
Creates a newPartyProxyin the DB.- Parameters:
partyProxy-- Returns:
-
findMatching
Find the uuid aPartyProxyin the DB wich matches the givenpartyProxy- Parameters:
partyProxy-- Returns:
-