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;
}
Aggregations