@Override public boolean isActive() { return filterPreference.isActive(); }
/** * Construct a DefaultNotificationFilterPreference which is a copy of the given notificationFilterPreference. * @param notificationFilterPreference object to copy */ public DefaultNotificationFilterPreference(NotificationFilterPreference notificationFilterPreference) { if (notificationFilterPreference instanceof DefaultNotificationFilterPreference) { this.internalId = ((DefaultNotificationFilterPreference) notificationFilterPreference).internalId; this.owner = ((DefaultNotificationFilterPreference) notificationFilterPreference).owner; } this.id = notificationFilterPreference.getId(); this.filterName = notificationFilterPreference.getFilterName(); this.providerHint = notificationFilterPreference.getProviderHint(); this.enabled = notificationFilterPreference.isEnabled(); this.active = notificationFilterPreference.isActive(); this.filterType = notificationFilterPreference.getFilterType(); this.notificationFormats = notificationFilterPreference.getNotificationFormats(); this.startingDate = notificationFilterPreference.getStartingDate(); this.eventTypes = new HashSet<>(notificationFilterPreference.getEventTypes()); this.user = notificationFilterPreference.getUser(); this.pageOnly = notificationFilterPreference.getPageOnly(); this.page = notificationFilterPreference.getPage(); this.wiki = notificationFilterPreference.getWiki(); this.setNotificationFormats(notificationFilterPreference.getNotificationFormats()); }