Package com.atlassian.bamboo.capability
Interface CapabilityManager
- All Known Implementing Classes:
CapabilityManagerImpl
public interface CapabilityManager
Interface to handle certain operations against the capability.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
removeAllCapabilities
(@NotNull Long agentId) Removes all capabilities from an agent.void
removeCapabilities
(@NotNull Long agentId, @NotNull Collection<String> capabilityKeys) Removes multiple capabilities from an agent.void
removeCapability
(@NotNull Long agentId, @NotNull String capabilityKey) Removes a capability from an agent.void
renameCapability
(@NotNull CapabilityType capabilityType, @NotNull String oldCapabilityKey, @NotNull String newCapabilityLabel, boolean override) Renames a capability key.
-
Method Details
-
renameCapability
void renameCapability(@NotNull @NotNull CapabilityType capabilityType, @NotNull @NotNull String oldCapabilityKey, @NotNull @NotNull String newCapabilityLabel, boolean override) Renames a capability key.- Parameters:
capabilityType
- The type of the capability.oldCapabilityKey
- The old key of the capability.newCapabilityLabel
- The new label for the capability.override
- Whether to override the existing capability if it exists.
-
removeCapability
Removes a capability from an agent.- Parameters:
agentId
- The ID of the agent.capabilityKey
- The key of the capability to be removed.
-
removeCapabilities
void removeCapabilities(@NotNull @NotNull Long agentId, @NotNull @NotNull Collection<String> capabilityKeys) Removes multiple capabilities from an agent.- Parameters:
agentId
- The ID of the agent.capabilityKeys
- The collection of capability keys to be removed.
-
removeAllCapabilities
Removes all capabilities from an agent.- Parameters:
agentId
- The ID of the agent.
-