Class Store


  • public class Store
    extends Object
    • Constructor Detail

      • Store

        public Store()
    • Method Detail

      • parseSubFromStr

        public static List<StoreProto.Store.Subscription> parseSubFromStr​(String subscriptions)
        Accepts a comma-delimited string and converts it to a list of Subscription class objects.
        Parameters:
        subscriptions - String formatted Subscriptions, comma delimited.
        Returns:
        List of Subscription class objects
      • parseSubFromStrWithoutExclusions

        public static List<StoreProto.Store.Subscription> parseSubFromStrWithoutExclusions​(String subscriptions)
        Accepts a comma-delimited string and converts it to a list of Subscription class objects, with exclusions filtered out.
        Parameters:
        subscriptions - String formatted Subscriptions, comma delimited.
        Returns:
        List of Subscription class objects
      • parseSubscriptionFrom

        public static String parseSubscriptionFrom​(StoreProto.Store.Subscription subscription)
        Accepts a Subscription class object and returns it in string format
        Parameters:
        subscription - Subscription class to be converted to string format
        Returns:
        String formatted Subscription class
      • convertStringToSubscription

        public static StoreProto.Store.Subscription convertStringToSubscription​(String subscription)
        Accepts a exclude parameter to determine whether to return subscriptions that are excluded.
        Parameters:
        subscription - String formatted Subscription to be converted to Subscription class
        Returns:
        Subscription class with its respective attributes
      • isSubscribedToFeatureSet

        public static boolean isSubscribedToFeatureSet​(List<StoreProto.Store.Subscription> subscriptions,
                                                       String projectName,
                                                       String featureSetName)
        The current use of this function is to determine whether a FeatureRow is subscribed to a Featureset.
        Parameters:
        subscriptions - List of Subscriptions available in Store
        projectName - Project name used for matching Subscription's Project
        featureSetName - Featureset name used for matching Subscription's Featureset
        Returns:
        boolean flag to signify if FeatureRow is subscribed to Featureset