Search in sources :

Example 11 with PrivateDataInfo

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;
}
Also used : PrivateDataInfo(com.att.aro.core.peripheral.pojo.PrivateDataInfo) UserPreferences(com.att.aro.core.preferences.UserPreferences)

Example 12 with PrivateDataInfo

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);
}
Also used : PrivateDataInfo(com.att.aro.core.peripheral.pojo.PrivateDataInfo) HashMap(java.util.HashMap)

Example 13 with PrivateDataInfo

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();
}
Also used : PrivateDataInfo(com.att.aro.core.peripheral.pojo.PrivateDataInfo)

Aggregations

PrivateDataInfo (com.att.aro.core.peripheral.pojo.PrivateDataInfo)13 UserPreferences (com.att.aro.core.preferences.UserPreferences)2 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 LinkedList (java.util.LinkedList)2 BaseTest (com.att.aro.core.BaseTest)1 BoxLayout (javax.swing.BoxLayout)1 JButton (javax.swing.JButton)1 JPanel (javax.swing.JPanel)1 Test (org.junit.Test)1