@Component public class RestAgentServiceImpl extends Object implements RestAgentService
Constructor and Description |
---|
RestAgentServiceImpl(AgentManager agentManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
RestPermissionCheck restPermissionCheck) |
Modifier and Type | Method and Description |
---|---|
RestAgent |
getAgentById(javax.ws.rs.core.UriInfo uriInfo,
long agentId)
Retrieve an agent definition
|
PageResponse<RestAgent> |
getAgents(javax.ws.rs.core.UriInfo uriInfo)
Retrieve all agents on the bamboo server
|
RestAgent |
updateAgent(javax.ws.rs.core.UriInfo uriInfo,
long agentId,
RestAgent restAgent)
Update an agent
|
@Autowired public RestAgentServiceImpl(AgentManager agentManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, RestPermissionCheck restPermissionCheck)
public PageResponse<RestAgent> getAgents(javax.ws.rs.core.UriInfo uriInfo)
RestAgentService
getAgents
in interface RestAgentService
uriInfo
- Object that provides access to information of http requestpublic RestAgent getAgentById(javax.ws.rs.core.UriInfo uriInfo, long agentId) throws NotFoundException
RestAgentService
getAgentById
in interface RestAgentService
uriInfo
- Object that provides access to information of http requestagentId
- Id of agentNotFoundException
- if no agent exists with an id equal to agentIdpublic RestAgent updateAgent(javax.ws.rs.core.UriInfo uriInfo, long agentId, RestAgent restAgent) throws WebValidationException, NotFoundException
RestAgentService
updateAgent
in interface RestAgentService
uriInfo
- Object that provides access to information of http requestagentId
- Id of the agent to be updatedrestAgent
- The updated agent definitionWebValidationException
- If the agent definition is invalidNotFoundException
- if no agent exists with an id equal to agentIdCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.