public class ShowComment extends Comment
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
Class name field.
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
ShowComment() |
Modifier and Type | Method and Description |
---|---|
protected void | buildDataArea()
This method builds the Data Area subsection of the reply BOD.
|
protected org.w3c.dom.Element | createShowCommentElement(CommentSearchResultBean abnCommentSearchResult)
This method builds the Comment element.
|
protected java.util.ArrayList | executeGetComments(SearchCriteria aSearchCriteria)
This method gets the list of comments that meets the search criteria in the given search criteria.
|
protected java.lang.String | getMaxResultSetSize()
This method returns the maximum result set size which is used by the buildDataArea method to populate the resultSetSize attribute in the response.
|
protected java.lang.String | getRootElementName()
This method gets the root element name of the response document.
|
void | init(CommandContext aCmdCtxt, TypedProperty aRequestProperties, TypedProperty aResponseProperties, org.w3c.dom.Document aRequestBOD, org.w3c.dom.Document aResponseBOD)
This method initializes the necessary parameters before starting to build the response Business Object Document.
|
protected CommentSearchResultBean | populateSearchResult(com.ibm.commerce.member.beans.CustomerCommentDataBean abnCustomerComment, CommentSearchResultBean abnSearchResult)
This method populates the search result for the given comment.
|
protected void | setMaxResultSetSize(java.lang.String maxResultSetSize)
This method sets the maximum result set size which is used by the buildDataArea method to populate the resultSetSize attribute in the response.
|
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public void init(CommandContext aCmdCtxt, TypedProperty aRequestProperties, TypedProperty aResponseProperties, org.w3c.dom.Document aRequestBOD, org.w3c.dom.Document aResponseBOD)
This method first calls the init method from the parent class.
It then calls the initializeSearchTypeMapping to initialize the mappings between the search type obtained from the SelectExpression element in the request Business Object Document to the actual value set to the search bean.
protected void buildDataArea() throws ECException
The following sample indicates the structure of the DataArea element and how it is constructed.
<wc:DataArea> <oa:Show confirm="Always"/> <wc:Comment> <-- createCommentElement() --> . . </wc:Comment> <wc:Comment> <-- createCommentElement() --> . . </wc:Comment> </wc:DataArea>
protected org.w3c.dom.Element createShowCommentElement(CommentSearchResultBean abnCommentSearchResult) throws ECException
protected java.util.ArrayList executeGetComments(SearchCriteria aSearchCriteria) throws ECException
protected CommentSearchResultBean populateSearchResult(com.ibm.commerce.member.beans.CustomerCommentDataBean abnCustomerComment, CommentSearchResultBean abnSearchResult) throws ECException
protected java.lang.String getRootElementName()
protected java.lang.String getMaxResultSetSize()
protected void setMaxResultSetSize(java.lang.String maxResultSetSize)