Skip to content

Commit

Permalink
XWIKI-21848: Migrate NotificationFilterPreferenceLivetableResults to …
Browse files Browse the repository at this point in the history
…a Live Data source

  * Fix since values
  • Loading branch information
surli committed Mar 18, 2024
1 parent 16cb25b commit 02cc7cb
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* Provide information about the activation of {@link ToggleableNotificationFilter}.
*
* @version $Id$
* @since 16.2.0RC1
* @since 16.3.0RC1
*/
public class ToggleableNotificationFilterActivation implements Serializable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class NotificationFilterPreferenceStore
* @param filterPreferenceId a filter preference id
* @return the corresponding preference or {@link Optional#empty()} if none can be found
* @throws NotificationException if an error occurs
* @since 16.2.0RC1
* @since 16.3.0RC1
*/
public Optional<NotificationFilterPreference> getFilterPreference(String filterPreferenceId,
WikiReference wikiReference) throws NotificationException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,20 @@ public class ToggleableFilterPreferenceDocumentInitializer extends AbstractManda
{
/**
* Reference of the xclass.
* @since 16.3.0RC1
*/
public static final LocalDocumentReference XCLASS =
new LocalDocumentReference(List.of("XWiki", "Notifications", "Code"), "ToggleableFilterPreferenceClass");

/**
* Name of field holding the filter name.
* @since 16.3.0RC1
*/
public static final String FIELD_FILTER_NAME = "filterName";

/**
* Name of the field holding the activation value.
* @since 16.3.0RC1
*/
public static final String FIELD_IS_ENABLED = "isEnabled";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
* {@link org.xwiki.notifications.filters.internal.livedata.system.NotificationSystemFiltersLiveDataEntryStore}.
*
* @version $Id$
* @since 16.2.0RC1
* @since 16.3.0RC1
*/
public abstract class AbstractNotificationFilterLiveDataEntryStore implements LiveDataEntryStore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* Helper for getting various translations for live data custom sources.
*
* @version $Id$
* @since 16.2.0RC1
* @since 16.3.0RC1
*/
@Component(roles = NotificationFilterLiveDataTranslationHelper.class)
@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
/**
* Configuration of the {@link NotificationCustomFiltersLiveDataSource}.
*
* @since 16.3.0RC1
* @version $Id$
*/
@Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
/**
* Needed component for the live data configuration.
*
* @since 16.3.0RC1
* @version $Id$
*/
@Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
* Dedicated {@link LiveDataEntryStore} for the {@link NotificationCustomFiltersLiveDataSource}.
* This component is in charge of performing the actual HQL queries to display the live data.
*
* @since 16.3.0RC1
* @version $Id$
*/
@Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
/**
* Descriptor for the {@link NotificationCustomFiltersLiveDataSource}.
*
* @since 16.3.0RC1
* @version $Id$
*/
@Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Live data source for custom notification filters.
*
* @version $Id$
* @since 16.2.0RC1
* @since 16.3.0RC1
*/
@Component
@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* TODO: maybe this could be improved with some APIs to put in NotificationFilterPreferenceStore.
*
* @version $Id$
* @since 16.2.0RC1
* @since 16.3.0RC1
*/
@Component(roles = NotificationCustomFiltersQueryHelper.class)
@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* Configuration of the {@link NotificationSystemFiltersLiveDataSource}.
*
* @version $Id$
* @since 16.3.0RC1
*/
@Component
@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* Needed component for the live data configuration.
*
* @version $Id$
* @since 16.3.0RC1
*/
@Component
@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
* This component is in charge of performing the actual HQL queries to display the live data.
*
* @version $Id$
* @since 16.3.0RC1
*/
@Component
@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* Descriptor for the {@link NotificationSystemFiltersLiveDataSource}.
*
* @version $Id$
* @since 16.3.0RC1
*/
@Component
@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Live data source for notification system filter preferences.
*
* @version $Id$
* @since 16.2.0RC1
* @since 16.3.0RC1
*/
@Component
@Singleton
Expand Down

0 comments on commit 02cc7cb

Please sign in to comment.