public class CapabilityContextImpl extends Object implements CapabilityContext
Constructor and Description |
---|
CapabilityContextImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clearCapabilitySet()
Removes whatever is currently stored in thread local
|
ReadOnlyCapabilitySet |
getCapabilitySet()
Retrieves the capability set currently stored within the context,
If empty the shared local (server) capabilities are returned
|
String |
getCapabilityValue(String key)
Convenience method.
|
void |
setCapabilitySet(ReadOnlyCapabilitySet capabilitySet)
Stores a specific capability set within the ThreadLocal
|
@Nullable public ReadOnlyCapabilitySet getCapabilitySet()
CapabilityContext
getCapabilitySet
in interface CapabilityContext
public void setCapabilitySet(@Nullable ReadOnlyCapabilitySet capabilitySet)
CapabilityContext
setCapabilitySet
in interface CapabilityContext
public void clearCapabilitySet()
CapabilityContext
clearCapabilitySet
in interface CapabilityContext
@Nullable public String getCapabilityValue(@NotNull String key)
CapabilityContext
getCapabilityValue
in interface CapabilityContext
key
- capability keyCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.