|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.v2.build.agent.capability.CapabilitySetImpl
@NotThreadSafe public class CapabilitySetImpl
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Constructor Summary | |
---|---|
CapabilitySetImpl()
|
|
CapabilitySetImpl(CapabilityScope capabilityScope)
|
|
CapabilitySetImpl(CapabilityScope capabilityScope,
Capability... capabilities)
|
Method Summary | |
---|---|
void |
addCapability(Capability capability)
Add a capability to the set. |
void |
addCapability(Capability capability,
boolean overwrite)
Adds a capability. |
int |
compareTo(java.lang.Object obj)
|
boolean |
equals(java.lang.Object o)
|
java.util.Set<Capability> |
getCapabilities()
Get all the capabilities as a set |
Capability |
getCapability(java.lang.String key)
Get the capability with the given key |
CapabilityScope |
getCapabilityScope()
The scope of the capability set. |
java.lang.String |
getCapabilitySetType()
Returns the identifier describing the type of this capability. |
java.lang.String |
getSharedCapabilitySetType()
Returns the identifier for the set if it is shared. |
int |
hashCode()
|
void |
removeCapability(java.lang.String key)
Remove a capability from the set, by the key. |
void |
setCapabilities(java.util.Set<Capability> capabilities)
|
void |
setCapabilityScope(CapabilityScope capabilityScope)
|
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
getId, setId |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider |
---|
getId |
Constructor Detail |
---|
public CapabilitySetImpl()
public CapabilitySetImpl(CapabilityScope capabilityScope, Capability... capabilities)
public CapabilitySetImpl(CapabilityScope capabilityScope)
Method Detail |
---|
public Capability getCapability(@NotNull java.lang.String key)
ReadOnlyCapabilitySet
getCapability
in interface ReadOnlyCapabilitySet
@NotNull public java.util.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 java.lang.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 java.lang.String getSharedCapabilitySetType()
CapabilitySet
getSharedCapabilitySetType
in interface CapabilitySet
public java.lang.String getCapabilitySetType()
CapabilitySet
getCapabilitySetType
in interface CapabilitySet
public void setCapabilities(java.util.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(java.lang.Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int compareTo(java.lang.Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |