public class AgentCapabilityServiceImpl extends Object implements AgentCapabilityService
| Constructor and Description | 
|---|
AgentCapabilityServiceImpl(AgentManager agentManager,
                          AuditLogService auditLogService,
                          CapabilityManager capabilityManager,
                          CapabilitySetManager capabilitySetManager,
                          com.atlassian.event.api.EventPublisher eventPublisher)  | 
| Modifier and Type | Method and Description | 
|---|---|
ErrorCollection | 
addCapability(@NotNull PipelineDefinition agent,
             @NotNull String key,
             @NotNull String value)
Add new capability for agent. 
 | 
@NotNull ReadOnlyCapabilitySet | 
getAgentCapabilities(@NotNull PipelineDefinition agent,
                    boolean includeShared)  | 
void | 
removeCapabilities(@NotNull PipelineDefinition agent)
Remove all capabilities for agent. 
 | 
void | 
removeCapability(@NotNull PipelineDefinition agent,
                @NotNull String capabilityKey)
Remove agent's capability. 
 | 
ErrorCollection | 
updateCapability(@NotNull PipelineDefinition agent,
                @NotNull String key,
                @Nullable String value,
                @NotNull CapabilitySource capabilitySource)
Update value of existing capability. 
 | 
public AgentCapabilityServiceImpl(AgentManager agentManager, AuditLogService auditLogService, CapabilityManager capabilityManager, CapabilitySetManager capabilitySetManager, com.atlassian.event.api.EventPublisher eventPublisher)
public void removeCapability(@NotNull
                             @NotNull PipelineDefinition agent,
                             @NotNull
                             @NotNull String capabilityKey)
AgentCapabilityServiceremoveCapability in interface AgentCapabilityServicepublic void removeCapabilities(@NotNull
                               @NotNull PipelineDefinition agent)
AgentCapabilityServiceremoveCapabilities in interface AgentCapabilityService@NotNull public @NotNull ReadOnlyCapabilitySet getAgentCapabilities(@NotNull @NotNull PipelineDefinition agent, boolean includeShared)
getAgentCapabilities in interface AgentCapabilityServiceincludeShared - if shared credentials should be returnedpublic ErrorCollection addCapability(@NotNull @NotNull PipelineDefinition agent, @NotNull @NotNull String key, @NotNull @NotNull String value)
AgentCapabilityServiceaddCapability in interface AgentCapabilityServicepublic ErrorCollection updateCapability(@NotNull @NotNull PipelineDefinition agent, @NotNull @NotNull String key, @Nullable @Nullable String value, @NotNull @NotNull CapabilitySource capabilitySource)
AgentCapabilityServiceupdateCapability in interface AgentCapabilityServiceCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.