Interface CapabilityManager

All Known Implementing Classes:
CapabilityManagerImpl

public interface CapabilityManager
Interface to handle certain operations against the capability.
  • 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

      void removeCapability(@NotNull @NotNull Long agentId, @NotNull @NotNull String capabilityKey)
      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

      void removeAllCapabilities(@NotNull @NotNull Long agentId)
      Removes all capabilities from an agent.
      Parameters:
      agentId - The ID of the agent.