@NotThreadSafe @Entity public class CapabilitySetImpl extends BambooEntityObject implements CapabilitySet
Constructor and Description |
---|
CapabilitySetImpl() |
CapabilitySetImpl(CapabilityScope capabilityScope) |
CapabilitySetImpl(CapabilityScope capabilityScope,
Capability... capabilities) |
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.
|
int |
compareTo(Object obj) |
boolean |
equals(Object o) |
Set<Capability> |
getCapabilities()
Get all the capabilities as a set
|
Capability |
getCapability(String key)
Get the capability with the given key
|
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.
|
int |
hashCode() |
void |
removeCapability(String key)
Remove a capability from the set, by the key.
|
void |
setCapabilities(Set<Capability> capabilities) |
void |
setCapabilityScope(CapabilityScope capabilityScope) |
String |
toString() |
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
setId
getId
public CapabilitySetImpl()
public CapabilitySetImpl(CapabilityScope capabilityScope, Capability... capabilities)
public CapabilitySetImpl(CapabilityScope capabilityScope)
@Nullable public Capability getCapability(@NotNull String key)
ReadOnlyCapabilitySet
getCapability
in interface ReadOnlyCapabilitySet
@NotNull public Set<Capability> getCapabilities()
ReadOnlyCapabilitySet
getCapabilities
in interface ReadOnlyCapabilitySet
public void addCapability(@NotNull Capability capability)
CapabilitySet
addCapability
in interface CapabilitySet
public void addCapability(@NotNull Capability capability, boolean overwrite)
CapabilitySet
addCapability
in interface CapabilitySet
public void removeCapability(@NotNull String key)
CapabilitySet
removeCapability
in interface CapabilitySet
@NotNull public CapabilityScope getCapabilityScope()
CapabilitySet
CapabilityScope.AGENT
- only applies to one agent.
or CapabilityScope.SHARED
- shared across all local, or all remote agents.getCapabilityScope
in interface CapabilitySet
CapabilityScope
@Nullable public String getSharedCapabilitySetType()
CapabilitySet
getSharedCapabilitySetType
in interface CapabilitySet
public String getCapabilitySetType()
CapabilitySet
getCapabilitySetType
in interface CapabilitySet
public void setCapabilities(Set<Capability> capabilities)
setCapabilities
in interface CapabilitySet
public void setCapabilityScope(CapabilityScope capabilityScope)
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int compareTo(Object obj)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.