use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigurationFlag in project open-smart-grid-platform by OSGP.
the class SetConfigurationObjectRequestBuilder method getDefaultConfigurationFlag.
private ConfigurationFlag getDefaultConfigurationFlag() {
final ConfigurationFlag configurationFlag = new ConfigurationFlag();
configurationFlag.setConfigurationFlagType(DEFAULT_CONFIGURATION_FLAG_TYPE);
configurationFlag.setEnabled(DEFAULT_CONFIGURATION_FLAG_ENABLED);
return configurationFlag;
}
use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigurationFlag in project open-smart-grid-platform by OSGP.
the class ConfigurationObjectFactory method getFlags.
private static List<ConfigurationFlag> getFlags(final Set<ConfigurationFlagType> flagTypes, final boolean enabled) {
if (CollectionUtils.isEmpty(flagTypes)) {
return Collections.emptyList();
}
final List<ConfigurationFlag> configurationFlags = new ArrayList<>();
for (final ConfigurationFlagType flagType : flagTypes) {
final ConfigurationFlag configurationFlag = new ConfigurationFlag();
configurationFlag.setConfigurationFlagType(flagType);
configurationFlag.setEnabled(enabled);
configurationFlags.add(configurationFlag);
}
return configurationFlags;
}
Aggregations