Class SyncFilter


  • public final class SyncFilter
    extends java.lang.Object
    Defines either a blacklist or a whitelist for filtering certain update action groups (ActionGroup).

    The action groups can be a list of any of the values of the enum ActionGroup, namely:

    • ATTRIBUTES
    • PRICES
    • IMAGES
    • CATEGORIES
    • .. and others

    The includeOnly flag defines whether the list is to be blacklisted (@code false) or whitelisted (@code true). A blacklist means that everything but these action groups will be synced. A whitelist means that only these action groups will be synced.

    • Method Detail

      • filterActionGroup

        public boolean filterActionGroup​(@Nonnull
                                         ActionGroup actionGroup)
        Checks if the supplied ActionGroup passes this filter.

        Passing the filter has an XOR logic as follows:

        syncFilter filtering logic
        includeOnly actionGroups contains actionGroup passes filter
        falsefalsetrue (actionGroup is not in blacklist)
        falsetruefalse (actionGroup is in blacklist)
        truefalsefalse (actionGroup is not in whitelist)
        truetruetrue (actionGroup is in whitelist)
        Parameters:
        actionGroup - the supplied action group to be tested if it passes the current filter.
        Returns:
        true if the ActionGroup passes this filter, otherwise false.