/** * Fetch history. * * @param endpointKey the endpoint id * @param applicationToken the application token * @param profile the profile * @param endSeqNumber the end seq number * @return the history delta */ private HistoryDelta fetchHistory(String endpointKey, String applicationToken, EndpointProfileDto profile, int endSeqNumber) { if (isFirstRequest(profile)) { LOG.debug("[{}] Profile has no endpoint groups yet. Calculating full list", endpointKey); return historyDeltaService.getDelta(profile, applicationToken, endSeqNumber); } else { LOG.debug("[{}] Profile has endpoint groups. Calculating changes from {} to {}", endpointKey, profile.getSequenceNumber(), endSeqNumber); return historyDeltaService.getDelta( profile, applicationToken, profile.getSequenceNumber(), endSeqNumber); } }
this.accessToken = dto.getAccessToken(); this.groupState = MongoDaoUtil.convertDtoToModelList(dto.getGroupState()); this.sequenceNumber = dto.getSequenceNumber(); this.epsConfigurationHash = dto.getEpsConfigurationHash(); this.profile = MongoDaoUtil.encodeReservedCharacteres(
this.accessToken = dto.getAccessToken(); this.groupStates = convertDtoToModelList(dto.getGroupState()); this.sequenceNumber = dto.getSequenceNumber(); this.profile = dto.getClientProfileBody(); this.profileHash = getByteBuffer(dto.getProfileHash());