summaryrefslogtreecommitdiffstats
path: root/install/ui/aci.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-01-19 21:10:18 -0500
committerAdam Young <ayoung@redhat.com>2011-01-27 16:46:44 -0500
commitf904df0f0dfd4734f978cdc3ddf5badabc067ed6 (patch)
treea9da10718ae2982b0f8721cdf7df4bad05532f93 /install/ui/aci.js
parent442d6ad30ce1156914e6245aa7502499e50ec0da (diff)
downloadfreeipa-f904df0f0dfd4734f978cdc3ddf5badabc067ed6.tar.gz
freeipa-f904df0f0dfd4734f978cdc3ddf5badabc067ed6.tar.xz
freeipa-f904df0f0dfd4734f978cdc3ddf5badabc067ed6.zip
declarative defintions
Delay the creation of entities until after ipa init is called made the user and group entity definitions declarative removed unused facet from groups adjusted unit tests made review changes: factories are now in an associative array entity init called right after factory init dialogs in entity init fixed type on search
Diffstat (limited to 'install/ui/aci.js')
-rw-r--r--install/ui/aci.js26
1 files changed, 12 insertions, 14 deletions
diff --git a/install/ui/aci.js b/install/ui/aci.js
index b1ac1d529..f7d7266f5 100644
--- a/install/ui/aci.js
+++ b/install/ui/aci.js
@@ -561,7 +561,7 @@ IPA.target_section = function () {
};
-IPA.permission = function () {
+IPA.entity_factories.permission = function () {
var that = IPA.entity({
'name': 'permission'
@@ -593,9 +593,6 @@ IPA.permission = function () {
};
-IPA.add_entity(IPA.permission());
-
-
IPA.permission_add_dialog = function (spec) {
@@ -675,7 +672,7 @@ IPA.permission_details_facet = function () {
};
-IPA.add_entity( function() {
+IPA.entity_factories.privilege = function() {
var that = IPA.entity({
'name': 'privilege'
});
@@ -715,10 +712,10 @@ IPA.add_entity( function() {
that.entity_init();
};
return that;
-}());
+};
-IPA.add_entity( function() {
+IPA.entity_factories.role = function() {
var that = IPA.entity({
'name': 'role'
});
@@ -756,10 +753,10 @@ IPA.add_entity( function() {
that.entity_init();
};
return that;
-}());
+};
-IPA.add_entity( function() {
+IPA.entity_factories.selfservice = function() {
var that = IPA.entity({
'name': 'selfservice'
});
@@ -783,7 +780,8 @@ IPA.add_entity( function() {
that.init = function() {
that.add_section(
- IPA.stanza({name:'general', label:'General'}).
+ IPA.stanza({name:'general', label:'General',
+ entity_name:'selfservice'}).
input({name:'aciname'}).
custom_input(IPA.attribute_table_widget({
object_type:'user',
@@ -793,7 +791,6 @@ IPA.add_entity( function() {
return that;
}());
-
that.parent_init = that.init;
that.init = function(){
that.parent_init();
@@ -810,10 +807,10 @@ IPA.add_entity( function() {
dialog.init();
};
return that;
-}());
+};
-IPA.add_entity( function() {
+IPA.entity_factories.delegation = function() {
var that = IPA.entity({
'name': 'delegation'
});
@@ -870,4 +867,5 @@ IPA.add_entity( function() {
};
return that;
-}());
+
+};