Search in sources :

Example 1 with PreferenceHandlerImpl

use of com.att.aro.core.preferences.impl.PreferenceHandlerImpl in project VideoOptimzer by attdevsupport.

the class VideoUsagePrefsManagerImpl method getVideoUsagePreference.

public VideoUsagePrefs getVideoUsagePreference() {
    PreferenceHandlerImpl prefs = PreferenceHandlerImpl.getInstance();
    String videoPref = prefs.getPref(VideoUsagePrefs.VIDEO_PREFERENCE);
    if (videoPref != null && !videoPref.equals("null")) {
        ObjectMapper mapper = new ObjectMapper();
        try {
            videoUsagePrefs = mapper.readValue(videoPref, VideoUsagePrefs.class);
        } catch (IOException e) {
            LOG.error("VideoPreference Mapper Exception" + e.getMessage());
        }
    }
    return videoUsagePrefs;
}
Also used : PreferenceHandlerImpl(com.att.aro.core.preferences.impl.PreferenceHandlerImpl) IOException(java.io.IOException) VideoUsagePrefs(com.att.aro.core.videoanalysis.pojo.VideoUsagePrefs) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper)

Aggregations

PreferenceHandlerImpl (com.att.aro.core.preferences.impl.PreferenceHandlerImpl)1 VideoUsagePrefs (com.att.aro.core.videoanalysis.pojo.VideoUsagePrefs)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 IOException (java.io.IOException)1