Update plugin owned capabilities documentation
Mention in first sentence that capabilities can be also used with UiActions. Also fixes small copy-paste error from UiActions section. Change-Id: I686e7b40f04216367751b8829295973fa6fa2c09 Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
This commit is contained in:
parent
b8dd435dec
commit
112d93a3bc
@ -853,7 +853,7 @@ public class MyListener implements GitReferenceUpdatedListener {
|
|||||||
== Plugin Owned Capabilities
|
== Plugin Owned Capabilities
|
||||||
|
|
||||||
Plugins may provide their own capabilities and restrict usage of SSH
|
Plugins may provide their own capabilities and restrict usage of SSH
|
||||||
commands to the users who are granted those capabilities.
|
commands or `UiAction` to the users who are granted those capabilities.
|
||||||
|
|
||||||
Plugins define the capabilities by overriding the `CapabilityDefinition`
|
Plugins define the capabilities by overriding the `CapabilityDefinition`
|
||||||
abstract class:
|
abstract class:
|
||||||
@ -868,7 +868,7 @@ public class PrintHelloCapability extends CapabilityDefinition {
|
|||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
If no Guice modules are declared in the manifest, UI actions may
|
If no Guice modules are declared in the manifest, capability may
|
||||||
use auto-registration by providing an `@Export` annotation:
|
use auto-registration by providing an `@Export` annotation:
|
||||||
|
|
||||||
[source,java]
|
[source,java]
|
||||||
|
Loading…
Reference in New Issue
Block a user