public class DefaultArchivedIssueSearchService extends Object implements ArchivedIssueSearchService
ArchivedIssueSearchService.ArchiveSearchRequest, ArchivedIssueSearchService.ValidationResult
Constructor and Description |
---|
DefaultArchivedIssueSearchService(IssueFactory issueFactory,
ProjectManager projectManager,
OfBizDelegator ofBizDelegator,
GlobalPermissionManager globalPermissionManager,
JiraAuthenticationContext authenticationContext,
ProjectService projectService,
I18nHelper.BeanFactory i18nFactory,
ConstantsManager constantsManager,
ArchivedIssuesProvider archivedIssuesProvider,
PermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
archivedProjectsOrIssuesExist() |
int |
count(ArchivedIssueSearchService.ValidationResult validationResult)
Count number of issues in archive using given criteria.
|
List<Issue> |
getArchivedIssuesMatchingTypesInProjects(List<Long> projectIds,
List<String> issueTypeIds)
For the projects specified by
projectIds , finds archived issues that are of the types given by
issueTypIds . |
static io.atlassian.fugue.Either<Long,String> |
parse(String projectKeyOrId) |
java.util.stream.Stream<ArchivedIssue> |
search(ArchivedIssueSearchService.ValidationResult validationResult)
Search for issues in archive using given criteria.
|
ArchivedIssueSearchService.ValidationResult |
validateSearch(ArchivedIssueSearchService.ArchiveSearchRequest request)
Validate search request
|
ArchivedIssueSearchService.ValidationResult |
validateSearchOverrideSecurity(ArchivedIssueSearchService.ArchiveSearchRequest request)
Validate search request not taking into account any security
|
public DefaultArchivedIssueSearchService(IssueFactory issueFactory, ProjectManager projectManager, OfBizDelegator ofBizDelegator, GlobalPermissionManager globalPermissionManager, JiraAuthenticationContext authenticationContext, ProjectService projectService, I18nHelper.BeanFactory i18nFactory, ConstantsManager constantsManager, ArchivedIssuesProvider archivedIssuesProvider, PermissionManager permissionManager)
public List<Issue> getArchivedIssuesMatchingTypesInProjects(List<Long> projectIds, List<String> issueTypeIds)
ArchivedIssueSearchService
projectIds
, finds archived issues that are of the types given by
issueTypIds
.
TO be removed after implementation of searching/browsing archived projects by using its API insteadgetArchivedIssuesMatchingTypesInProjects
in interface ArchivedIssueSearchService
projectIds
- unique identifiers for the projects whose issues we'd like to inspect.issueTypeIds
- unique identifiers for the issue types that we're looking for instances of in the projects.issueTypeIds
or an empty list if projectIds
or issueTypeIds
are empty.public ArchivedIssueSearchService.ValidationResult validateSearch(ArchivedIssueSearchService.ArchiveSearchRequest request)
ArchivedIssueSearchService
validateSearch
in interface ArchivedIssueSearchService
request
- search requestpublic ArchivedIssueSearchService.ValidationResult validateSearchOverrideSecurity(ArchivedIssueSearchService.ArchiveSearchRequest request)
ArchivedIssueSearchService
As the method name implies, it bypasses the security restrictions that would normally be applied when performing a search. As such, it should only be used for administrative task.
validateSearchOverrideSecurity
in interface ArchivedIssueSearchService
request
- search requestpublic java.util.stream.Stream<ArchivedIssue> search(ArchivedIssueSearchService.ValidationResult validationResult)
ArchivedIssueSearchService
search
in interface ArchivedIssueSearchService
validationResult
- of search in servicepublic int count(ArchivedIssueSearchService.ValidationResult validationResult)
ArchivedIssueSearchService
For just checking if there are any archived issues, use ArchivedIssueSearchService.archivedProjectsOrIssuesExist()
.
count
in interface ArchivedIssueSearchService
validationResult
- of search in servicepublic boolean archivedProjectsOrIssuesExist()
archivedProjectsOrIssuesExist
in interface ArchivedIssueSearchService
Copyright © 2002-2023 Atlassian. All Rights Reserved.