CvrRecordService

public class CvrRecordService

Fields

END_OBJECT

protected static final byte[] END_OBJECT

OBJECT_SEPARATOR

protected static final byte[] OBJECT_SEPARATOR

PARAM_CVR_NUMBER

public static final String PARAM_CVR_NUMBER

PARAM_RETURN_PARTICIPANT_DETAILS

public static final String PARAM_RETURN_PARTICIPANT_DETAILS

PARAM_UPDATED_SINCE

public static final String PARAM_UPDATED_SINCE

START_OBJECT

protected static final byte[] START_OBJECT

monitorService

protected MonitorService monitorService

objectMapper

ObjectMapper objectMapper

postcodePattern

Pattern postcodePattern

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)

getCvrNumber

protected List<String> getCvrNumber(JsonNode node)

getParticipants

protected ArrayNode getParticipants(CompanyRecord record)

getSingle

public String getSingle(String cvrNummer, HttpServletRequest request)

init

public void init()

isEnableDirectLookup

public boolean isEnableDirectLookup()

isEnableGerLookup

public boolean isEnableGerLookup()

setEnableDirectLookup

public void setEnableDirectLookup(boolean enableDirectLookup)

setEnableGerLookup

public void setEnableGerLookup(boolean enableGerLookup)

wrapGerCompany

protected ObjectNode wrapGerCompany(CompanyEntity entity, LookupService lookupService, boolean returnParticipantDetails)

wrapRecord

protected ObjectNode wrapRecord(CompanyRecord record, LookupService lookupService, boolean returnParticipantDetails)