Package com.atlassian.bamboo.capability
Class CapabilityManagerImpl
java.lang.Object
com.atlassian.bamboo.capability.CapabilityManagerImpl
- All Implemented Interfaces:
CapabilityManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidremoveAllCapabilities(@NotNull Long agentId) Removes all capabilities from an agent.voidremoveCapabilities(@NotNull Long agentId, @NotNull Collection<String> capabilityKeys) Removes multiple capabilities from an agent.voidremoveCapability(@NotNull Long agentId, @NotNull String capabilityKey) Removes a capability from an agent.voidrenameCapability(@NotNull CapabilityType capabilityType, @NotNull String oldCapabilityKey, @NotNull String newCapabilityLabel, boolean override) Renames a capability key.voidsetCapabilityDao(CapabilityDao capabilityDao) voidsetCapabilitySetManager(CapabilitySetManager capabilitySetManager)
-
Constructor Details
-
CapabilityManagerImpl
public CapabilityManagerImpl()
-
-
Method Details
-
renameCapability
public void renameCapability(@NotNull @NotNull CapabilityType capabilityType, @NotNull @NotNull String oldCapabilityKey, @NotNull @NotNull String newCapabilityLabel, boolean override) Description copied from interface:CapabilityManagerRenames a capability key.- Specified by:
renameCapabilityin interfaceCapabilityManager- 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
public void removeCapability(@NotNull @NotNull Long agentId, @NotNull @NotNull String capabilityKey) Description copied from interface:CapabilityManagerRemoves a capability from an agent.- Specified by:
removeCapabilityin interfaceCapabilityManager- Parameters:
agentId- The ID of the agent.capabilityKey- The key of the capability to be removed.
-
removeCapabilities
public void removeCapabilities(@NotNull @NotNull Long agentId, @NotNull @NotNull Collection<String> capabilityKeys) Description copied from interface:CapabilityManagerRemoves multiple capabilities from an agent.- Specified by:
removeCapabilitiesin interfaceCapabilityManager- Parameters:
agentId- The ID of the agent.capabilityKeys- The collection of capability keys to be removed.
-
removeAllCapabilities
Description copied from interface:CapabilityManagerRemoves all capabilities from an agent.- Specified by:
removeAllCapabilitiesin interfaceCapabilityManager- Parameters:
agentId- The ID of the agent.
-
setCapabilityDao
-
setCapabilitySetManager
-