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 voidaddComment(T model, B2BCommentModel comment)Adds aB2BCommentModeltoAbstractOrderModeljava.util.List<B2BCommentModel>getB2BCommentsForUser(T model, UserModel user)Retrives a list ofB2BCommentassociated to the order owned by a particular userjava.util.List<B2BCommentModel>getComments(T model)Retrives a list ofB2BCommentassociated to the order
-
-
-
Method Detail
-
getComments
java.util.List<B2BCommentModel> getComments(T model)
Retrives a list ofB2BCommentassociated to the order- Parameters:
model- A generic type currently onlyAbstractOrderModelis supported- Returns:
- A collection of
B2BCommentModelassociated to theAbstractOrderModel
-
getB2BCommentsForUser
java.util.List<B2BCommentModel> getB2BCommentsForUser(T model, UserModel user)
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
void addComment(T model, B2BCommentModel comment)
Adds aB2BCommentModeltoAbstractOrderModel- Parameters:
model- An order or cartcomment- AB2BCommentModelto associated to the order
-
-