Class ServerCapabilitiesResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.testutils.rest.resource.administration.ServerCapabilitiesResource
-
@Singleton public class ServerCapabilitiesResource extends Object
-
-
Constructor Summary
Constructors Constructor Description ServerCapabilitiesResource(CapabilitySetManager capabilitySetManager, CapabilityDefaultsHelper capabilityDefaultsHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createSharedCapability(javax.ws.rs.core.UriInfo uriInfo, RestCapability capability)
javax.ws.rs.core.Response
deleteSharedCapability(String capabilityKey)
javax.ws.rs.core.Response
getAllSharedCapabilities()
Get all server capabilitiesjavax.ws.rs.core.Response
path(String key)
Get specific server capabilityjavax.ws.rs.core.Response
redetectSharedCapabilities()
Clear and reset the existing capabilities.
-
-
-
Constructor Detail
-
ServerCapabilitiesResource
public ServerCapabilitiesResource(CapabilitySetManager capabilitySetManager, CapabilityDefaultsHelper capabilityDefaultsHelper)
-
-
Method Detail
-
getAllSharedCapabilities
public javax.ws.rs.core.Response getAllSharedCapabilities()
Get all server capabilities
-
createSharedCapability
public javax.ws.rs.core.Response createSharedCapability(@Context javax.ws.rs.core.UriInfo uriInfo, RestCapability capability)
-
deleteSharedCapability
public javax.ws.rs.core.Response deleteSharedCapability(String capabilityKey)
-
redetectSharedCapabilities
public javax.ws.rs.core.Response redetectSharedCapabilities()
Clear and reset the existing capabilities.
-
path
public javax.ws.rs.core.Response path(String key)
Get specific server capability- Parameters:
key
- e.g. system.git.executable- Returns:
- capability
-
-