You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developer/architecture/security/feature-registration.asciidoc
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,12 @@ Registering features also gives your plugin access to “UI Capabilities”. The
9
9
10
10
=== Registering a feature
11
11
12
-
Feature registration is controlled via the built-in `xpack_main` plugin. To register a feature, call `xpack_main`'s `registerFeature` function from your plugin's `init` function, and provide the appropriate details:
12
+
Feature registration is controlled via the built-in `features` plugin. To register a feature, call `features`'s `registerKibanaFeature` function from your plugin's `setup` lifecycle function, and provide the appropriate details:
|The set of subfeatures that enables finer access control than the `all` and `read` feature privileges. These options are only available in the Gold subscription level and higher.
56
55
@@ -73,25 +72,26 @@ For a full explanation of fields and options, consult the {kib-repo}blob/{branch
73
72
=== Using UI Capabilities
74
73
75
74
UI Capabilities are available to your public (client) plugin code. These capabilities are read-only, and are used to inform the UI. This object is namespaced by feature id. For example, if your feature id is “foo”, then your UI Capabilities are stored at `uiCapabilities.foo`.
76
-
To access capabilities, import them from `ui/capabilities`:
75
+
Capabilities can be accessed from your plugin's `start` lifecycle from the `core.application` service:
|[SavedObjectsSerializer](./kibana-plugin-core-server.savedobjectsserializer.md)| A serializer that can be used to manually convert [raw](./kibana-plugin-core-server.savedobjectsrawdoc.md) or [sanitized](./kibana-plugin-core-server.savedobjectsanitizeddoc.md) documents to the other kind. |
|[SavedObjectTypeRegistry](./kibana-plugin-core-server.savedobjecttyperegistry.md)| Registry holding information about all the registered [saved object types](./kibana-plugin-core-server.savedobjectstype.md)<!---->. |
0 commit comments