@Singleton public class AgentAssignmentResource extends Object
Constructor and Description |
---|
AgentAssignmentResource(AgentAssignmentService agentAssignmentService,
AgentManager agentManager,
CachedPlanManager cachedPlanManager,
DeploymentProjectService deploymentProjectService,
ElasticImageConfigurationManager elasticImageConfigurationManager,
EnvironmentService environmentService,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
PlanManager planManager,
PlanRestService planRestService,
ProjectManager projectManager) |
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 |
removeAssignment(String executorType,
long executorId,
String executableType,
long entityId) |
SearchResultsList |
searchEntityForAgent(String type,
long executorId,
String entityType,
String searchTerm,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) |
public AgentAssignmentResource(AgentAssignmentService agentAssignmentService, AgentManager agentManager, CachedPlanManager cachedPlanManager, DeploymentProjectService deploymentProjectService, ElasticImageConfigurationManager elasticImageConfigurationManager, EnvironmentService environmentService, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.message.I18nResolver i18nResolver, PlanManager planManager, PlanRestService planRestService, ProjectManager projectManager)
public List<RestDedicatedAgent> getAgentAssignments(String type, long executorId, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response addAgentAssignment(String type, long executorId, String assignmentType, long entityId) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response removeAssignment(String executorType, long executorId, String executableType, long entityId) throws WebValidationException
executorType
- should be AGENT or IMAGEexecutorId
- executor idexecutableType
- should be PROJECT, PLAN, JOB, ENVIRONMENTentityId
- entity idWebValidationException
public SearchResultsList searchEntityForAgent(String type, long executorId, String entityType, String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) throws WebValidationException
WebValidationException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.