Interface B2BCommentDao<C extends B2BCommentModel,T extends AbstractOrderModel>

All Known Implementing Classes:
DefaultB2BCommentDao

public interface B2BCommentDao<C extends B2BCommentModel,T extends AbstractOrderModel>
A dao around B2BCommentModel
  • Method Summary

    Modifier and Type
    Method
    Description
    Find all comments and associated to an order
    Find all comments owned by user and associated to an order
  • Method Details

    • findCommentsByUser

      List<C> findCommentsByUser(UserModel user, T order)
      Find all comments owned by user and associated to an order
      Parameters:
      user - The owner of a B2BCommentModel
      order - An order or cart.
      Returns:
      All comments associated to an order or cart owned by user.
    • findCommentsByOrder

      List<C> findCommentsByOrder(T order)
      Find all comments and associated to an order
      Parameters:
      order - An order or cart.
      Returns:
      All comments associated to an order.