Interface CapabilityContext
-
- All Known Implementing Classes:
CapabilityContextImpl
@PublicApi public interface CapabilityContextAllows the ability to retrieve a capability set specific to the context it is called from. Capability set is stored in ThreadLocal.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearCapabilitySet()Removes whatever is currently stored in thread local@Nullable ReadOnlyCapabilitySetgetCapabilitySet()Retrieves the capability set currently stored within the context, If empty the shared local (server) capabilities are returned@Nullable StringgetCapabilityValue(@NotNull String key)Convenience method.voidsetCapabilitySet(@Nullable ReadOnlyCapabilitySet capabilitySet)Stores a specific capability set within the ThreadLocal
-
-
-
Method Detail
-
getCapabilitySet
@Nullable @Nullable ReadOnlyCapabilitySet getCapabilitySet()
Retrieves the capability set currently stored within the context, If empty the shared local (server) capabilities are returned- Returns:
- ReadOnlyCapabilitySet
-
setCapabilitySet
void setCapabilitySet(@Nullable @Nullable ReadOnlyCapabilitySet capabilitySet)Stores a specific capability set within the ThreadLocal- Parameters:
capabilitySet-
-
clearCapabilitySet
void clearCapabilitySet()
Removes whatever is currently stored in thread local
-
-