Class AgentResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.resource.AgentResource
-
@Singleton public class AgentResource extends Object
-
-
Constructor Summary
Constructors Constructor Description AgentResource(AgentCapabilityService agentCapabilityService, AgentExecutableService agentExecutableService, AgentManager agentManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, RestHelperWrapper restHelperWrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createAgentCapability(long agentId, RestCapability createCapabilityRequest)
javax.ws.rs.core.Response
deleteAgent(long agentId)
javax.ws.rs.core.Response
deleteAgentCapability(long agentId, @NotNull String capabilityKey)
javax.ws.rs.core.Response
deleteAllAgentCapabilities(long agentId)
javax.ws.rs.core.Response
disableAgent(long agentId)
javax.ws.rs.core.Response
enableAgent(long agentId)
List<RestCapability>
getAgentCapabilities(long agentId, boolean includeShared)
RestAgentInformation
getAgentInformation(String expandParam, boolean includeShared, long agentId, javax.ws.rs.core.UriInfo uriInfo)
List<RestBuildAgent>
getAgents(Boolean online)
javax.ws.rs.core.Response
getAgentStatus(long agentId)
List<RestBuildAgent>
getRemoteAgents(Boolean online)
javax.ws.rs.core.Response
updateAgentCapability(long agentId, String capabilityKey, RestRemoteAgentCapability updateCapabilityRequest)
-
-
-
Constructor Detail
-
AgentResource
@Inject public AgentResource(AgentCapabilityService agentCapabilityService, AgentExecutableService agentExecutableService, AgentManager agentManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, RestHelperWrapper restHelperWrapper)
-
-
Method Detail
-
getAgents
public List<RestBuildAgent> getAgents(Boolean online)
-
getAgentInformation
public RestAgentInformation getAgentInformation(String expandParam, boolean includeShared, long agentId, @Context javax.ws.rs.core.UriInfo uriInfo)
-
getRemoteAgents
public List<RestBuildAgent> getRemoteAgents(Boolean online)
-
getAgentStatus
public javax.ws.rs.core.Response getAgentStatus(long agentId) throws org.acegisecurity.AccessDeniedException
- Throws:
org.acegisecurity.AccessDeniedException
-
enableAgent
public javax.ws.rs.core.Response enableAgent(long agentId) throws org.acegisecurity.AccessDeniedException, NotFoundException
- Throws:
org.acegisecurity.AccessDeniedException
NotFoundException
-
disableAgent
public javax.ws.rs.core.Response disableAgent(long agentId) throws org.acegisecurity.AccessDeniedException, NotFoundException
- Throws:
org.acegisecurity.AccessDeniedException
NotFoundException
-
deleteAgent
public javax.ws.rs.core.Response deleteAgent(long agentId) throws org.acegisecurity.AccessDeniedException, WebValidationException
- Throws:
org.acegisecurity.AccessDeniedException
WebValidationException
-
getAgentCapabilities
public List<RestCapability> getAgentCapabilities(long agentId, boolean includeShared)
-
createAgentCapability
public javax.ws.rs.core.Response createAgentCapability(long agentId, RestCapability createCapabilityRequest) throws WebValidationException
- Throws:
WebValidationException
-
updateAgentCapability
public javax.ws.rs.core.Response updateAgentCapability(long agentId, String capabilityKey, RestRemoteAgentCapability updateCapabilityRequest) throws WebValidationException
- Throws:
WebValidationException
-
deleteAgentCapability
public javax.ws.rs.core.Response deleteAgentCapability(long agentId, @NotNull @NotNull String capabilityKey) throws NotFoundException
- Throws:
NotFoundException
-
deleteAllAgentCapabilities
public javax.ws.rs.core.Response deleteAllAgentCapabilities(long agentId) throws NotFoundException
- Throws:
NotFoundException
-
-