Files
opencloud/settings/docs/_index.md
A.Unger f725ddaa65 Add 'settings/' from commit '230545a4a75b0611988fbcea51336a6c316d6a3d'
git-subtree-dir: settings
git-subtree-mainline: c26f7b390a
git-subtree-split: 230545a4a7
2020-09-18 12:43:43 +02:00

1.9 KiB

title, date, weight, geekdocRepo, geekdocEditPath, geekdocFilePath
title date weight geekdocRepo geekdocEditPath geekdocFilePath
Settings 2018-05-02T00:00:00+00:00 10 https://github.com/owncloud/ocis-settings edit/master/docs _index.md

Abstract

When using oCIS, the requirement to store settings arises. This extension provides functionality for other extensions to register new settings within oCIS. It is responsible for storing the respective settings values as well.

For ease of use, this extension provides an ocis-web extension which allows users to change their settings values. Please refer to the ocis-web extension docs for running ocis-web extensions.

{{< mermaid class="text-center">}} graph TD subgraph ow[ocis-web] ows[ocis-web-settings] owc[ocis-web-core] end ows ---|"listSettingsBundles(),
saveSettingsValue(value)"| os[ocis-settings] owc ---|"listSettingsValues()"| sdk[oC SDK] sdk --- sdks{ocis-settings
available?} sdks ---|"yes"| os sdks ---|"no"| defaults[Use set of
default values] oa[oCIS extensions
e.g. ocis-accounts] ---|"saveSettingsBundle(bundle)"| os {{< /mermaid >}}

The diagram shows how the settings service integrates into oCIS:

Settings management:

  • oCIS extensions can register settings bundles with the ocis-settings service.
  • The settings frontend can be plugged into ocis-web, showing forms for changing settings values as a user. The forms are generated from the registered settings bundles.

Settings usage:

  • Extensions can query ocis-settings for settings values of a user.
  • The ownCloud SDK, used as a data abstraction layer for ocis-web, will query ocis-settings for settings values of a user, if it's available. The SDK uses sensible defaults when ocis-settings is not part of the setup.

For compatibility with ownCloud 10, a migration of ownCloud 10 settings into the storage of ocis-settings will be available.