Class SearchResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.resource.SearchResource
-
@Singleton public class SearchResource extends Object
-
-
Constructor Summary
Constructors Constructor Description SearchResource(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooUserManager bambooUserManager, CachedPlanManager cachedPlanManager, CustomVariableContext customVariableContext, DeploymentVersionService deploymentVersionService, DeploymentProjectService deploymentProjectService, ExtendedAuthorManager authorManager, PlanRestService planRestService, ProjectsRestService projectsRestService, com.atlassian.sal.api.message.I18nResolver i18nResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Predicate<ImmutablePlan>
filterPlans(String searchTerm, boolean fuzzySearch, boolean searchAtShortPlanNameOnly)
SearchResultsList
searchAuthors(String searchTerm, boolean unlinkedOnly, javax.ws.rs.core.UriInfo uriInfo)
SearchResultsList
searchBranches(String masterPlanKeyStr, boolean includeMasterBranch, Long releasedInDeployment, String searchTerm, boolean fuzzySearch, boolean searchByBranchNameOnly, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.HttpHeaders httpHeaders, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
SearchResultsList
searchDeployments(String searchTerm, String requiredPermission, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.HttpHeaders httpHeaders, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
SearchResultsList
searchJobs(String planKey, String searchTerm, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.HttpHeaders httpHeaders, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
SearchResultsList
searchPlans(String searchTerm, boolean fuzzySearch, String planType, String requiredPermission, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.HttpHeaders httpHeaders, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
SearchResultsList
searchProjects(String searchTerm, String requiredPermission, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.HttpHeaders httpHeaders, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
SearchResultsList
searchStages(String planKey, String stageId, String searchTerm, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.HttpHeaders httpHeaders, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
SearchResultsList
searchUsers(String searchTerm, javax.ws.rs.core.UriInfo uriInfo)
SearchResultsList
searchVersions(String searchTerm, long deploymentProjectId, String branchKey, boolean chronologicalOrder, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.HttpHeaders httpHeaders, com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
-
-
Constructor Detail
-
SearchResource
public SearchResource(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooUserManager bambooUserManager, CachedPlanManager cachedPlanManager, CustomVariableContext customVariableContext, DeploymentVersionService deploymentVersionService, DeploymentProjectService deploymentProjectService, ExtendedAuthorManager authorManager, PlanRestService planRestService, ProjectsRestService projectsRestService, com.atlassian.sal.api.message.I18nResolver i18nResolver)
-
-
Method Detail
-
searchUsers
public SearchResultsList searchUsers(String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
- Throws:
Exception
-
searchAuthors
public SearchResultsList searchAuthors(String searchTerm, boolean unlinkedOnly, @Context javax.ws.rs.core.UriInfo uriInfo)
-
searchPlans
public SearchResultsList searchPlans(String searchTerm, boolean fuzzySearch, String planType, String requiredPermission, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
searchJobs
public SearchResultsList searchJobs(String planKey, String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
searchStages
public SearchResultsList searchStages(String planKey, String stageId, String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
searchBranches
public SearchResultsList searchBranches(String masterPlanKeyStr, boolean includeMasterBranch, Long releasedInDeployment, String searchTerm, boolean fuzzySearch, boolean searchByBranchNameOnly, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
searchProjects
public SearchResultsList searchProjects(String searchTerm, String requiredPermission, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
searchDeployments
public SearchResultsList searchDeployments(String searchTerm, String requiredPermission, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
searchVersions
public SearchResultsList searchVersions(String searchTerm, long deploymentProjectId, String branchKey, boolean chronologicalOrder, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
filterPlans
protected Predicate<ImmutablePlan> filterPlans(String searchTerm, boolean fuzzySearch, boolean searchAtShortPlanNameOnly)
-
-