public class RoadMapResource extends AbstractResource
Modifier and Type | Class and Description |
---|---|
static class |
RoadMapResource.ProjectData
Contains the data of a project a version belongs to, including: The id of the project The
project key The project name
|
static class |
RoadMapResource.ResolutionData
The data structure of statistics on resolved/unresolved, with jql clause used to retrieve the set of the issues.
|
static class |
RoadMapResource.RoadMapData
The data structure of the road map generated by the
RoadMapResource . |
static class |
RoadMapResource.VersionData
The data structure of a project version contained in the road map data.
|
Modifier and Type | Field and Description |
---|---|
static String |
ALL_PROJECTS |
static int |
DEFAULT_DAYS_MAX_INCL |
static int |
DEFAULT_NUM_MAX_INCL |
Constructor and Description |
---|
RoadMapResource(JiraAuthenticationContext authCtx,
PermissionManager permissionManager,
ProjectManager projectManager,
VersionManager versionManager,
SearchService searchService,
MauEventService mauEventService,
VelocityRequestContextFactory velocityRequestContextFactory,
DateTimeFormatter dateTimeFormatter) |
Modifier and Type | Method and Description |
---|---|
static Set<Long> |
filterProjectCategoryIds(Collection<String> projectOrCategoryIds)
Filter project category ids from the given collection.
|
static Set<Long> |
filterProjectIds(Collection<String> projectOrCategoryIds)
Filter project ids from the given collection.
|
javax.ws.rs.core.Response |
generate(String projectsOrCategories,
int days,
int num)
Generates the road map data based on the given parameters.
|
boolean |
isOverdue(Version version) |
javax.ws.rs.core.Response |
validate(String projectsOrCategories,
String days,
String num)
Validates the given configuration.
|
createErrorResponse, createIndexingUnavailableResponse, createValidationResponse
public static final String ALL_PROJECTS
public static final int DEFAULT_DAYS_MAX_INCL
public static final int DEFAULT_NUM_MAX_INCL
public RoadMapResource(JiraAuthenticationContext authCtx, PermissionManager permissionManager, ProjectManager projectManager, VersionManager versionManager, SearchService searchService, MauEventService mauEventService, VelocityRequestContextFactory velocityRequestContextFactory, DateTimeFormatter dateTimeFormatter)
public javax.ws.rs.core.Response validate(String projectsOrCategories, String days, String num)
projectsOrCategories
- the ids of all selected projects and project categories, concatenated by pipe symbole
(|). A special id value of "allprojects" indicates all projects are
selected. Project ids must be numeric; otherwise, the id is ignored. Category ids
must be numeric and prefixed by "cat"; otherwise, the id is ignored. If
none is selected or one of the selecte projects/categories does not exist, a validate
error is returned in the response.days
- the number of days to cover. If zero, only overdue versions will be returned. Must
not be negative. If negative or non-numeric, a validation error is returnednum
- the maximum number of results. Must be positive. if negative, zero or non-numeric, a
validation error is returnedpublic javax.ws.rs.core.Response generate(String projectsOrCategories, int days, int num)
projectsOrCategories
- the ids of all selected projects and project categories, concatenated by pipe symbole
(|). A special id value of "allprojects" indicates all projects are
selected. Project ids must be numeric; otherwise, the id is ignored. Category ids
must be numeric and prefixed by "cat"; otherwise, the id is ignored.days
- the number of days to cover. If zero, only overdue versions will be returned. Must
not be negative.num
- the maximum number of results. Must be positive.RoadMapResource.RoadMapData
. If there is an error in the processing, a
response with status code 500 is returnedpublic boolean isOverdue(Version version)
public static Set<Long> filterProjectIds(Collection<String> projectOrCategoryIds)
projectOrCategoryIds
- collection of project or category idspublic static Set<Long> filterProjectCategoryIds(Collection<String> projectOrCategoryIds)
CATEGORY
) and XYZ is a
long number.projectOrCategoryIds
- collection of project or category idsCopyright © 2002-2017 Atlassian. All Rights Reserved.