/** * Create an instance of {@link SendChangeNotifications } * */ public SendChangeNotifications createSendChangeNotifications() { return new SendChangeNotifications(); }
public Preferences() { this.setSendChangeNotifications(new SendChangeNotifications()); this.setSendAdministrativeChangeNotifications(new SendAdministrativeChangeNotifications()); this.setSendOrcidNews(new SendOrcidNews()); this.setWorkVisibilityDefault(new WorkVisibilityDefault()); this.setActivitiesVisibilityDefault(new ActivitiesVisibilityDefault()); this.setDeveloperToolsEnabled(new DeveloperToolsEnabled()); }
Boolean tips = Boolean.valueOf(emailFrequencies.get(EmailFrequencyManager.QUARTERLY_TIPS)); preferences.setSendEmailFrequencyDays(String.valueOf(0)); preferences.setSendChangeNotifications(new SendChangeNotifications(SendEmailFrequency.NEVER.equals(change))); preferences.setSendAdministrativeChangeNotifications(new SendAdministrativeChangeNotifications(SendEmailFrequency.NEVER.equals(admin))); preferences.setSendOrcidNews(new SendOrcidNews(tips));