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(PipelineDefinition agent,
String key,
String value)
Add new capability for agent.
|
ReadOnlyCapabilitySet |
getAgentCapabilities(PipelineDefinition agent,
boolean includeShared) |
void |
removeCapabilities(PipelineDefinition agent)
Remove all capabilities for agent.
|
void |
removeCapability(PipelineDefinition agent,
String capabilityKey)
Remove agent's capability.
|
ErrorCollection |
updateCapability(PipelineDefinition agent,
String key,
String value,
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 PipelineDefinition agent, @NotNull String capabilityKey)
AgentCapabilityService
removeCapability
in interface AgentCapabilityService
public void removeCapabilities(@NotNull PipelineDefinition agent)
AgentCapabilityService
removeCapabilities
in interface AgentCapabilityService
@NotNull public ReadOnlyCapabilitySet getAgentCapabilities(@NotNull PipelineDefinition agent, boolean includeShared)
getAgentCapabilities
in interface AgentCapabilityService
includeShared
- if shared credentials should be returnedpublic ErrorCollection addCapability(@NotNull PipelineDefinition agent, @NotNull String key, @NotNull String value)
AgentCapabilityService
addCapability
in interface AgentCapabilityService
public ErrorCollection updateCapability(@NotNull PipelineDefinition agent, @NotNull String key, @Nullable String value, @NotNull CapabilitySource capabilitySource)
AgentCapabilityService
updateCapability
in interface AgentCapabilityService
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.