@Path(value="agent/assignment") @Consumes(value="application/json") @Produces(value="application/json") @Singleton public class AgentAssignmentResource extends Object
Constructor and Description |
---|
AgentAssignmentResource(PlanManager planManager,
CachedPlanManager cachedPlanManager,
DeploymentProjectService deploymentProjectService,
EnvironmentService environmentService,
PlanRestService planRestService,
ProjectManager projectManager,
AgentAssignmentService agentAssignmentService,
AgentManager agentManager,
ElasticImageConfigurationManager elasticImageConfigurationManager) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addAgentAssignment(String type,
long executorId,
String assignmentType,
long entityId) |
List<RestDedicatedAgent> |
getAgentAssignments(String type,
long executorId,
javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders httpHeaders) |
javax.ws.rs.core.Response |
removeAgentAssignment(String type,
long executorId,
String assignmentType,
long entityId) |
SearchResultsList |
searchEntityForAgent(String executorTypeString,
long executorId,
String entityType,
String searchTerm,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) |
public AgentAssignmentResource(PlanManager planManager, CachedPlanManager cachedPlanManager, DeploymentProjectService deploymentProjectService, EnvironmentService environmentService, PlanRestService planRestService, ProjectManager projectManager, AgentAssignmentService agentAssignmentService, AgentManager agentManager, ElasticImageConfigurationManager elasticImageConfigurationManager)
@GET public List<RestDedicatedAgent> getAgentAssignments(@QueryParam(value="executorType") String type, @QueryParam(value="executorId") long executorId, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders)
@POST public javax.ws.rs.core.Response addAgentAssignment(@QueryParam(value="executorType") String type, @QueryParam(value="executorId") long executorId, @QueryParam(value="assignmentType") String assignmentType, @QueryParam(value="entityId") long entityId)
@DELETE public javax.ws.rs.core.Response removeAgentAssignment(@QueryParam(value="executorType") String type, @QueryParam(value="executorId") long executorId, @QueryParam(value="assignmentType") String assignmentType, @QueryParam(value="entityId") long entityId)
@GET @Path(value="search") public SearchResultsList searchEntityForAgent(@QueryParam(value="executorType") String executorTypeString, @QueryParam(value="executorId") long executorId, @QueryParam(value="entityType") String entityType, @QueryParam(value="searchTerm") String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.