Plugin contributed SSH commands and UiActions can now be annotated
with plugin-owned capabilities.
Capability scope was introduced to differentiate between plugin-owned
capabilities and core capabilities. Per default the scope of
@RequiresCapability annotation is CapabilityScope.CONTEXT, i. e. when
@RequiresCapability is used within a plugin the scope of the capability is
assumed to be that plugin. If @RequiresCapability is used within the core
Gerrit Code Review server (and thus is outside of a plugin) the scope is the
core server and will use the GlobalCapability known to Gerrit Code Review
server.
If a plugin needs to use a core capability name (e.g. "administrateServer")
this can be specified by setting scope = CapabilityScope.CORE:
@RequiresCapability(value="administrateServer", scope=CapabilityScope.CORE)
Change-Id: I82f7a6fef2a47613a1fd9c7474ff568db3ca84a2