diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-09-06 15:27:06 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-10-16 18:08:17 +0200 |
commit | efafd7fe871bc368b91db78bb132abb027141a24 (patch) | |
tree | f6d71bae937e31c7090828382af8b404b1ce7e1f /install/ui/src/freeipa/aci.js | |
parent | 3fa304d95ec59efe0eb1cb8241d88a173802b172 (diff) | |
download | freeipa-efafd7fe871bc368b91db78bb132abb027141a24.tar.gz freeipa-efafd7fe871bc368b91db78bb132abb027141a24.tar.xz freeipa-efafd7fe871bc368b91db78bb132abb027141a24.zip |
Web UI source code annotation
Part of ongoing Web UI documentation effort. Source code is annotated in a way that it can be processed by documentation generator.
Diffstat (limited to 'install/ui/src/freeipa/aci.js')
-rw-r--r-- | install/ui/src/freeipa/aci.js | 60 |
1 files changed, 59 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/aci.js b/install/ui/src/freeipa/aci.js index 3ca10dbfb..67dc46e3e 100644 --- a/install/ui/src/freeipa/aci.js +++ b/install/ui/src/freeipa/aci.js @@ -32,6 +32,16 @@ define([ './entity'], function(metadata_provider, IPA, $, phases, reg, text) { +/** + * Widgets, entities and fields related to Access Control that means + * Permissions, Privilege, Role, Delegation and Self-service. + * + * When loaded, this module is also accessible as `IPA.aci`. + * + * @class aci + * @alternateClassName IPA.aci + * @singleton + */ var exp = IPA.aci = {}; var make_permission_spec = function() { @@ -231,6 +241,10 @@ return { } };}; +/** + * @class aci.permission_details_facet + * @extends details.details_facet + */ IPA.aci.permission_details_facet = function(spec) { var that = IPA.details_facet(spec); @@ -463,7 +477,10 @@ return { } };}; - +/** + * @class IPA.attributes_widget + * @extends IPA.checkboxes_widget + */ IPA.attributes_widget = function(spec) { spec = spec || {}; @@ -609,6 +626,10 @@ IPA.attributes_widget = function(spec) { return that; }; +/** + * @class IPA.rights_widget + * @extends IPA.checkboxes_widget + */ IPA.rights_widget = function(spec) { var that = IPA.checkboxes_widget(spec); @@ -622,6 +643,10 @@ IPA.rights_widget = function(spec) { return that; }; +/** + * @class IPA.permission_target_widget + * @extends IPA.details_table_section_nc + */ IPA.permission_target_widget = function(spec) { spec = spec || {}; @@ -737,6 +762,11 @@ IPA.permission_target_widget = function(spec) { return that; }; +/** + * Permission target policy + * @class IPA.permission_target_policy + * @extends IPA.facet_policy + */ IPA.permission_target_policy = function (spec) { var that = IPA.facet_policy(); @@ -894,12 +924,40 @@ IPA.permission_target_policy = function (spec) { return that; }; +/** + * Permission entity spec + * @member aci + */ exp.permission_entity_spec = make_permission_spec(); + +/** + * Privilege entity spec + * @member aci + */ exp.privilege_entity_spec = make_privilege_spec(); + +/** + * Role entity spec + * @member aci + */ exp.role_entity_spec = make_role_spec(); + +/** + * Self-service entity spec + * @member aci + */ exp.selfservice_entity_spec = make_selfservice_spec(); + +/** + * Delegation entity spec + * @member aci + */ exp.delegation_entity_spec = make_delegation_spec(); +/** + * Register entities, widgets and fields to global registers. + * @member aci + */ exp.register = function() { var e = reg.entity; var w = reg.widget; |