@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 |
---|---|
@NotNull RestAgent |
getAgentById(@NotNull javax.ws.rs.core.UriInfo uriInfo,
long agentId)
Retrieve an agent definition
|
@NotNull RestPageModel<RestAgent> |
getAgents(@NotNull javax.ws.rs.core.UriInfo uriInfo)
Retrieve all agents on the bamboo server
|
@NotNull RestAgent |
updateAgent(@NotNull javax.ws.rs.core.UriInfo uriInfo,
long agentId,
@NotNull RestAgent restAgent)
Update an agent
|
@Autowired public RestAgentServiceImpl(AgentManager agentManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, RestPermissionCheck restPermissionCheck)
@NotNull public @NotNull RestPageModel<RestAgent> getAgents(@NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo)
RestAgentService
getAgents
in interface RestAgentService
uriInfo
- Object that provides access to information of http request@NotNull public @NotNull RestAgent getAgentById(@NotNull @NotNull 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 agentId@NotNull public @NotNull RestAgent updateAgent(@NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo, long agentId, @NotNull @NotNull 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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.