|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.issue.views.util.DefaultSearchRequestViewBodyWriterUtil
public class DefaultSearchRequestViewBodyWriterUtil
A simple class to centralize the body writes for search request view implementations.
| Constructor Summary | |
|---|---|
DefaultSearchRequestViewBodyWriterUtil(SearchProviderFactory searchProviderFactory,
IssueFactory issueFactory,
JiraAuthenticationContext authenticationContext,
SearchProvider searchProvider)
|
|
| Method Summary | |
|---|---|
long |
searchCount(SearchRequest searchRequest)
Returns the search count |
void |
writeBody(Writer writer,
AbstractIssueView issueView,
SearchRequest searchRequest,
SingleIssueWriter singleIssueWriter,
PagerFilter pagerFilter)
Writes the body of a sinlge issue. |
void |
writeTableBody(Writer writer,
IssueTableWriter issueTableWriter,
SearchRequest searchRequest,
PagerFilter pagerFilter)
Writes the body of a single issue in a table view (i.e.: Printable or Excel). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSearchRequestViewBodyWriterUtil(SearchProviderFactory searchProviderFactory,
IssueFactory issueFactory,
JiraAuthenticationContext authenticationContext,
SearchProvider searchProvider)
| Method Detail |
|---|
public void writeBody(Writer writer,
AbstractIssueView issueView,
SearchRequest searchRequest,
SingleIssueWriter singleIssueWriter,
PagerFilter pagerFilter)
throws IOException,
SearchException
SearchRequestViewBodyWriterUtilSingleIssueWriter interface specifying how a single Issue should be written to
the display. It uses the details provided by the AbstractIssueView to write
the response.
writeBody in interface SearchRequestViewBodyWriterUtilwriter - used to stream the response to.issueView - contains the details of how a single issue should be written (i.e.: HTML for header, body and footer)searchRequest - The original searchRequest that defines the issues to be viewed.singleIssueWriter - Provides a callback method that is defined in the specific SearchRequestViews. It will
be invoked to write the issue to the writer.pagerFilter - Used to limit the number of issues being written.
IOException - if things are seriously wrong
SearchException - if there is something wrong with the SearchRequest
public void writeTableBody(Writer writer,
IssueTableWriter issueTableWriter,
SearchRequest searchRequest,
PagerFilter pagerFilter)
throws IOException,
SearchException
SearchRequestViewBodyWriterUtilIssueTableWriter interface specifying how a single Issue should be written to
the display.
writeTableBody in interface SearchRequestViewBodyWriterUtilwriter - used to stream the response to.issueTableWriter - Defines how a single issue is displayed in a table view.searchRequest - The original searchRequest that defines the issues to be viewed.
be invoked to write the issue to the writer.pagerFilter - Used to limit the number of issues being written.
IOException - if things are seriously wrong
SearchException - if there is something wrong with the SearchRequest
public long searchCount(SearchRequest searchRequest)
throws SearchException
SearchRequestViewBodyWriterUtil
searchCount in interface SearchRequestViewBodyWriterUtilsearchRequest - The original searchRequest that defines the issues to be viewed.
SearchException - if there is something wrong with the SearchRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||