Interface RestAgentService
-
- All Known Implementing Classes:
RestAgentServiceImpl
public interface RestAgentServiceREST service layer for agents- Since:
- 5.10
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull RestAgentgetAgentById(@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 RestAgentupdateAgent(@NotNull javax.ws.rs.core.UriInfo uriInfo, long agentId, @NotNull RestAgent restAgent)Update an agent
-
-
-
Method Detail
-
getAgents
@NotNull @NotNull RestPageModel<RestAgent> getAgents(@NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo)
Retrieve all agents on the bamboo server- Parameters:
uriInfo- Object that provides access to information of http request- Returns:
- Collection of agents
- Throws:
NotAuthorizedException- if the current user lacks restricted administration permission to get agents
-
getAgentById
@NotNull @NotNull RestAgent getAgentById(@NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo, long agentId)
Retrieve an agent definition- Parameters:
uriInfo- Object that provides access to information of http requestagentId- Id of agent- Returns:
- RestAgent object that contains the definition of the agent
- Throws:
NotAuthorizedException- if the current user lacks restricted administration permission to get agentsNotFoundException- if no agent exists with an id equal to agentId
-
updateAgent
@NotNull @NotNull RestAgent updateAgent(@NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo, long agentId, @NotNull @NotNull RestAgent restAgent) throws WebValidationException
Update an agent- Parameters:
uriInfo- Object that provides access to information of http requestagentId- Id of the agent to be updatedrestAgent- The updated agent definition- Returns:
- The updated agent
- Throws:
WebValidationException- If the agent definition is invalidNotFoundException- if no agent exists with an id equal to agentId
-
-