CvrRecordCombinedService

public class CvrRecordCombinedService

Lookup companies by trying first in GER-register, if the company is not found try looking up in CVR-register amd after that look externally

Fields

PARAM_CVR_NUMBER

public static final String PARAM_CVR_NUMBER

PARAM_RETURN_PARTICIPANT_DETAILS

public static final String PARAM_RETURN_PARTICIPANT_DETAILS

monitorService

protected MonitorService monitorService

objectMapper

ObjectMapper objectMapper

sessionManager

SessionManager sessionManager

Methods

applyAreaRestrictionsToQuery

protected void applyAreaRestrictionsToQuery(CompanyRecordQuery query, DafoUserDetails user)

checkAndLogAccess

protected void checkAndLogAccess(LoggerHelper loggerHelper, boolean includeCpr)

getBulk

public StreamingResponseBody getBulk(HttpServletRequest request)

getCompanies

protected Collection<CompanyRecord> getCompanies(Session session, Collection<String> cvrNumbers, DafoUserDetails user)

Get companies which has been loaded from CVR

Parametre:
  • session
  • cvrNumbers
  • user
Kaster:
  • DataFordelerException

getCvrNumber

protected List<String> getCvrNumber(JsonNode node)

getSingle

public String getSingle(String cvrNummer, HttpServletRequest request)

init

public void init()