public class IssueTableResource extends AbstractResource
Modifier and Type | Class and Description |
---|---|
static class |
IssueTableResource.IssueTable |
Modifier and Type | Field and Description |
---|---|
protected static String |
PROJECT_ID |
Constructor and Description |
---|
IssueTableResource(JiraAuthenticationContext authenticationContext,
SearchService searchService,
SearchProvider searchProvider,
TableLayoutUtils tableLayoutUtils,
SearchRequestService searchRequestService,
FieldManager fieldManager,
SearchSortUtil searchSortUtil,
ProjectManager projectManager,
PermissionManager permissionManager,
VersionManager versionManager,
VelocityRequestContextFactory velocityRequestContextFactory,
ApplicationProperties applicationProperties,
ColumnLayoutManager columnLayoutManager,
JqlStringSupport jqlStringSupport) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
generateColumnSortJql(SearchRequest sr,
com.atlassian.jira.gadgets.system.IssueTableResource.LinkedLabelledQuery query,
List<ColumnLayoutItem> columns) |
javax.ws.rs.core.Response |
getFilterTable(javax.servlet.http.HttpServletRequest request,
String context,
String filterId,
List<String> columnNames,
String sortBy,
boolean isPaging,
int start,
String numberToShow,
boolean enableSorting,
boolean displayHeader,
boolean showActions,
boolean addDefaults)
Validates and then creates an issue table based off a filter
|
javax.ws.rs.core.Response |
getIterationTable(javax.servlet.http.HttpServletRequest request,
String context,
String projectId,
boolean completed,
List<String> columnNames,
String sortBy,
boolean isPaging,
int start,
String numberToShow,
boolean enableSorting,
boolean displayHeader,
boolean showActions)
Validates and then creates an issue table based the next unreleased version for a project
|
javax.ws.rs.core.Response |
getJqlTable(javax.servlet.http.HttpServletRequest request,
String context,
String jql,
String title,
List<String> columnNames,
String sortBy,
boolean isPaging,
int start,
String numberToShow,
boolean enableSorting,
boolean displayHeader,
boolean showActions,
boolean addDefaults,
boolean useConfiguredCols) |
javax.ws.rs.core.Response |
validateFilterTable(String filterId,
List<String> columnNames,
String numberToShow)
Validates the input for an issue table based off a filter
|
javax.ws.rs.core.Response |
validateIterationTable(String projectId,
List<String> columnNames,
String numberToShow)
Validates the input for an issue table based the next unreleased version for a project
|
javax.ws.rs.core.Response |
validateJql(String numberToShow,
List<String> columnNames) |
createErrorResponse, createIndexingUnavailableResponse, createValidationResponse
protected static final String PROJECT_ID
public IssueTableResource(JiraAuthenticationContext authenticationContext, SearchService searchService, SearchProvider searchProvider, TableLayoutUtils tableLayoutUtils, SearchRequestService searchRequestService, FieldManager fieldManager, SearchSortUtil searchSortUtil, ProjectManager projectManager, PermissionManager permissionManager, VersionManager versionManager, VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, ColumnLayoutManager columnLayoutManager, JqlStringSupport jqlStringSupport)
public javax.ws.rs.core.Response validateFilterTable(String filterId, List<String> columnNames, String numberToShow)
filterId
- the filter id of the filter to create the table forcolumnNames
- the column names to display (this can be left blank to get the default columns)numberToShow
- the number of issues to display per pageErrorCollection
containg all validation errorspublic javax.ws.rs.core.Response getFilterTable(@Context javax.servlet.http.HttpServletRequest request, String context, String filterId, List<String> columnNames, String sortBy, boolean isPaging, int start, String numberToShow, boolean enableSorting, boolean displayHeader, boolean showActions, boolean addDefaults)
filterId
- the filter id of the filter to create the table forcolumnNames
- the column names to display (this can be left blank to get the default columns)numberToShow
- the number of issues to display per pagerequest
- the current request.context
- the context which the table is being rendered. Used for getting default columns, and
redirectssortBy
- The extra column to sort by with optional :ASC or :DESC suffixisPaging
- Is paging enabledstart
- The issue to start fromenableSorting
- enable sortingdisplayHeader
- display the header?showActions
- show the actions columnaddDefaults
- add the default columns to the tableIssueTableResource.IssueTable
containg the rendered html and other nice to
haves (counts, urls, titles) or a 400 containg a ErrorCollection
containg all validation errorspublic javax.ws.rs.core.Response validateJql(String numberToShow, List<String> columnNames)
public javax.ws.rs.core.Response getJqlTable(@Context javax.servlet.http.HttpServletRequest request, String context, String jql, String title, List<String> columnNames, String sortBy, boolean isPaging, int start, String numberToShow, boolean enableSorting, boolean displayHeader, boolean showActions, boolean addDefaults, boolean useConfiguredCols)
public Map<String,String> generateColumnSortJql(SearchRequest sr, com.atlassian.jira.gadgets.system.IssueTableResource.LinkedLabelledQuery query, List<ColumnLayoutItem> columns)
public javax.ws.rs.core.Response validateIterationTable(String projectId, List<String> columnNames, String numberToShow)
projectId
- the project to get the next unreleased version for and base the table offcolumnNames
- the column names to display (this can be left blank to get the default columns)numberToShow
- the number of issues to display per pageErrorCollection
containg all validation errorspublic javax.ws.rs.core.Response getIterationTable(@Context javax.servlet.http.HttpServletRequest request, String context, String projectId, boolean completed, List<String> columnNames, String sortBy, boolean isPaging, int start, String numberToShow, boolean enableSorting, boolean displayHeader, boolean showActions)
projectId
- the project to get the next unreleased version for and base the table offcompleted
- Whether to show completed or uncompleted issuescolumnNames
- the column names to display (this can be left blank to get the default columns)numberToShow
- the number of issues to display per pagerequest
- the current request.context
- the context which the table is being rendered. Used for getting default columns, and
redirectssortBy
- The extra column to sort by with optional :ASC or :DESC suffixisPaging
- Is paging enabledstart
- The issue to start fromenableSorting
- enable sortingdisplayHeader
- display the header?showActions
- show the actions columnIssueTableResource.IssueTable
containg the rendered html and other nice to
haves (counts, urls, titles) or a 400 containg a ErrorCollection
containg all validation errorsCopyright © 2002-2017 Atlassian. All Rights Reserved.