public interface CapabilitySet extends ReadOnlyCapabilitySet, BambooObject, Serializable
Modifier and Type | Method and Description |
---|---|
void |
addCapability(Capability capability)
Add a capability to the set.
|
void |
addCapability(Capability capability,
boolean overwrite)
Adds a capability.
|
CapabilityScope |
getCapabilityScope()
The scope of the capability set.
|
String |
getCapabilitySetType()
Returns the identifier describing the type of this capability.
|
String |
getSharedCapabilitySetType()
Returns the identifier for the set if it is shared.
|
void |
removeCapability(String key)
Remove a capability from the set, by the key.
|
void |
setCapabilities(Set<Capability> capabilities) |
getCapabilities, getCapability
setId
getId
void addCapability(@NotNull Capability capability)
capability
- void addCapability(@NotNull Capability capability, boolean overwrite)
capability
- overwrite
- void removeCapability(@NotNull String key)
key
- void setCapabilities(Set<Capability> capabilities)
@NotNull CapabilityScope getCapabilityScope()
CapabilityScope.AGENT
- only applies to one agent.
or CapabilityScope.SHARED
- shared across all local, or all remote agents.CapabilityScope
@Nullable String getSharedCapabilitySetType()
@Nullable String getCapabilitySetType()
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.