Package de.hybris.platform.b2b.services
Interface B2BCommentService<T extends AbstractOrderModel>
-
- Type Parameters:
T
-
- All Known Implementing Classes:
DefaultB2BCommentService
public interface B2BCommentService<T extends AbstractOrderModel>
A service aroundB2BCommentModel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addComment(T model, B2BCommentModel comment)
Adds aB2BCommentModel
toAbstractOrderModel
java.util.List<B2BCommentModel>
getB2BCommentsForUser(T model, UserModel user)
Retrives a list ofB2BComment
associated to the order owned by a particular userjava.util.List<B2BCommentModel>
getComments(T model)
Retrives a list ofB2BComment
associated to the order
-
-
-
Method Detail
-
getComments
java.util.List<B2BCommentModel> getComments(T model)
Retrives a list ofB2BComment
associated to the order- Parameters:
model
- A generic type currently onlyAbstractOrderModel
is supported- Returns:
- A collection of
B2BCommentModel
associated to theAbstractOrderModel
-
getB2BCommentsForUser
java.util.List<B2BCommentModel> getB2BCommentsForUser(T model, UserModel user)
Retrives a list ofB2BComment
associated to the order owned by a particular user- Parameters:
model
- A generic type currently onlyAbstractOrderModel
is supporteduser
- The owner of theB2BCommentModel
- Returns:
- A collection of
B2BCommentModel
associated to theAbstractOrderModel
-
addComment
void addComment(T model, B2BCommentModel comment)
Adds aB2BCommentModel
toAbstractOrderModel
- Parameters:
model
- An order or cartcomment
- AB2BCommentModel
to associated to the order
-
-