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 around
B2BCommentModel-
Method Summary
Modifier and TypeMethodDescriptionvoidaddComment(T model, B2BCommentModel comment) Adds aB2BCommentModeltoAbstractOrderModelgetB2BCommentsForUser(T model, UserModel user) Retrives a list ofB2BCommentassociated to the order owned by a particular usergetComments(T model) Retrives a list ofB2BCommentassociated to the order
-
Method Details
-
getComments
Retrives a list ofB2BCommentassociated to the order- Parameters:
model- A generic type currently onlyAbstractOrderModelis supported- Returns:
- A collection of
B2BCommentModelassociated to theAbstractOrderModel
-
getB2BCommentsForUser
Retrives a list ofB2BCommentassociated to the order owned by a particular user- Parameters:
model- A generic type currently onlyAbstractOrderModelis supporteduser- The owner of theB2BCommentModel- Returns:
- A collection of
B2BCommentModelassociated to theAbstractOrderModel
-
addComment
Adds aB2BCommentModeltoAbstractOrderModel- Parameters:
model- An order or cartcomment- AB2BCommentModelto associated to the order
-