/** * Create new instance of <code>EndpointGroupState</code>. * @param dto data transfer object contain data that * assign on fields of new instance */ public EndpointGroupState(EndpointGroupStateDto dto) { this.endpointGroupId = dto.getEndpointGroupId(); this.profileFilterId = dto.getProfileFilterId(); this.configurationId = dto.getConfigurationId(); }
/** * Create new instance of <code>CassandraEndpointGroupState</code>. * * @param dto data transfer object contain data that * assign on fields of new instance */ public CassandraEndpointGroupState(EndpointGroupStateDto dto) { this.endpointGroupId = dto.getEndpointGroupId(); this.profileFilterId = dto.getProfileFilterId(); this.configurationId = dto.getConfigurationId(); }
/** * Specific method for converting list of <code>EndpointGroupStateDto</code> objects * to list of model objects <code>EndpointGroupState</code>. * * @param stateDtoList the state dto list * @return converted list of <code>EndpointGroupState</code> objects */ public static List<EndpointGroupState> convertDtoToModelList( List<EndpointGroupStateDto> stateDtoList) { List<EndpointGroupState> states = null; if (stateDtoList != null && !stateDtoList.isEmpty()) { states = new ArrayList<>(); for (EndpointGroupStateDto dto : stateDtoList) { EndpointGroupState state = new EndpointGroupState(); state.setConfigurationId(dto.getConfigurationId()); state.setEndpointGroupId(dto.getEndpointGroupId()); state.setProfileFilterId(dto.getProfileFilterId()); states.add(state); } } return states; }
/** * Specific method for converting list of <code>EndpointGroupStateDto</code> objects * to list of model objects <code>CassandraEndpointGroupState</code>. * * @param stateDtoList the state dto list * @return converted list of <code>CassandraEndpointGroupState</code> objects */ public static List<CassandraEndpointGroupState> convertDtoToModelList( List<EndpointGroupStateDto> stateDtoList) { List<CassandraEndpointGroupState> states = null; if (stateDtoList != null && !stateDtoList.isEmpty()) { states = new ArrayList<>(); for (EndpointGroupStateDto dto : stateDtoList) { CassandraEndpointGroupState state = new CassandraEndpointGroupState(); state.setConfigurationId(dto.getConfigurationId()); state.setEndpointGroupId(dto.getEndpointGroupId()); state.setProfileFilterId(dto.getProfileFilterId()); states.add(state); } } return states; }
if (!StringUtils.isBlank(egs.getConfigurationId())) { configuration = configurationService.findConfigurationById( egs.getConfigurationId()); if (configuration != null) { configurations.add(configuration);
if (entry.getValue().getConfigurationId() == null) { LOG.debug("[{}] Attempt to fetch configuration id for {}", endpointId, entry.getKey()); String confId = cacheService.getConfIdByKey(confIdKey.copyWithNewEgId(entry.getKey()));