Class CommerceCommentUtils
java.lang.Object
de.hybris.platform.commerceservices.util.CommerceCommentUtils
Utility class for comment functionality.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CommerceCommentParameterbuildQuoteCommentParameter(AbstractOrderModel order, UserModel author, String text) Build aCommerceCommentParameterforQuoteModelcomments.static CommerceCommentParameterbuildQuoteEntryCommentParameter(AbstractOrderEntryModel orderEntry, UserModel author, String text) Build aCommerceCommentParameterforQuoteModelcomments.Creates a newCommerceCommentParameterBuilderinstance.
-
Method Details
-
parameterBuilder
Creates a newCommerceCommentParameterBuilderinstance.- Returns:
- the new
CommerceCommentParameterBuilder
-
buildQuoteCommentParameter
public static CommerceCommentParameter buildQuoteCommentParameter(AbstractOrderModel order, UserModel author, String text) Build aCommerceCommentParameterforQuoteModelcomments.- Parameters:
order- theAbstractOrderModelthat will hold the commentauthor- the author of the commenttext- text of the comment- Returns:
- a
CommerceCommentParameterbuilt based on the input.
-
buildQuoteEntryCommentParameter
public static CommerceCommentParameter buildQuoteEntryCommentParameter(AbstractOrderEntryModel orderEntry, UserModel author, String text) Build aCommerceCommentParameterforQuoteModelcomments.- Parameters:
orderEntry- theAbstractOrderEntryModelthat will hold the commentauthor- the author of the commenttext- text of the comment- Returns:
- a
CommerceCommentParameterbuilt based on the input.
-