use of com.att.aro.core.peripheral.pojo.PrivateDataInfo in project VideoOptimzer by attdevsupport.
the class PrivateDataDialog method savePreference.
/**
* save preference
*/
private boolean savePreference() {
List<PrivateDataInfo> infos = prepareSerializeUserPreference(entries);
if (infos == null) {
return false;
}
UserPreferences prefs = UserPreferencesFactory.getInstance().create();
prefs.setPrivateData(infos);
return true;
}
use of com.att.aro.core.peripheral.pojo.PrivateDataInfo in project VideoOptimzer by attdevsupport.
the class TraceDataReaderImpl method readPrivateData.
/**
* Reads device private data from the file
*
* @param result
*/
private void readPrivateData(AbstractTraceResult result) {
List<PrivateDataInfo> devicePrivateDataInfos = privateDataReader.readData(result.getTraceDirectory());
if (devicePrivateDataInfos == null || devicePrivateDataInfos.isEmpty()) {
return;
}
Map<String, String> deviceKeywordInfos = new HashMap<String, String>();
for (PrivateDataInfo info : devicePrivateDataInfos) {
if (info.isSelected()) {
deviceKeywordInfos.put(info.getValue(), info.getType());
}
}
result.setDeviceKeywordInfos(deviceKeywordInfos);
}
use of com.att.aro.core.peripheral.pojo.PrivateDataInfo in project VideoOptimzer by attdevsupport.
the class AddKeywordDialog method executeOkButton.
private void executeOkButton() {
PrivateDataInfo info = new PrivateDataInfo();
info.setType(textField.getText());
((PrivateDataDialog) this.getOwner()).addNewEntry(info);
setVisible(false);
dispose();
}
Aggregations