Interface ProductOwner

    • Method Detail

      • addProduct

        default boolean addProduct​(Product product)
        Adds a product to this owner
      • getAllProductIds

        default SortedSet<Long> getAllProductIds()
        Returns the ids of all products assigned to all levels which affect this owner
      • getNextLevelProductOwner

        ProductOwner getNextLevelProductOwner()
        Returns a possibly null next-level owner
      • getPhysicalProducts

        Set<Product> getPhysicalProducts()
        Returns the persistent and attached products collection that can be modified to cascade
      • getProductIds

        SortedSet<Long> getProductIds()
        Returns the redundant product ids directly assigned to this owner
      • getProducts

        Set<Product> getProducts()
        Returns all products directly assigned to this owner
      • removeProduct

        default boolean removeProduct​(Product product)
        Removes a product from this owner
      • updateProductIds

        void updateProductIds​(SortedSet<Long> productIds)
        Sets the redundant comma-separated list of product ids directly assigned to this owner