From a8ea42bda841c8773d68886614faf9efd38e33bd Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Wed, 16 Nov 2011 21:07:20 -0600 Subject: Fixed entity metadata resolution. The current code assumes that an entity will always have a corresponding LDAPObject on the server, so it looks for the metadata in a fixed location. This assumption doesn't work for HBAC Test since it is a Command, not an LDAPObject, so the metadata has to be obtained from a different location. A new method get_default_metadata() has been added to allow each entity to find the metadata from the correct location. Ticket #388 --- install/ui/aci.js | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'install/ui/aci.js') diff --git a/install/ui/aci.js b/install/ui/aci.js index 7f82714c..8e9e5433 100644 --- a/install/ui/aci.js +++ b/install/ui/aci.js @@ -29,9 +29,10 @@ IPA.aci.permission_entity = function(spec) { var that = IPA.entity(spec); - that.init = function(params) { + that.init = function() { + that.entity_init(); - params.builder.facet_groups([ 'privilege' , 'settings' ]). + that.builder.facet_groups([ 'privilege' , 'settings' ]). search_facet({ columns: [ 'cn' ] }). @@ -203,9 +204,10 @@ IPA.aci.privilege_entity = function(spec) { var that = IPA.entity(spec); - that.init = function(params) { + that.init = function() { + that.entity_init(); - params.builder.facet_groups([ 'role', 'settings', 'permission' ]). + that.builder.facet_groups([ 'role', 'settings', 'permission' ]). search_facet({ columns: [ 'cn', @@ -259,9 +261,10 @@ IPA.aci.role_entity = function(spec) { var that = IPA.entity(spec); - that.init = function(params) { + that.init = function() { + that.entity_init(); - params.builder.facet_groups([ 'member', 'settings', 'privilege' ]). + that.builder.facet_groups([ 'member', 'settings', 'privilege' ]). search_facet({ columns: [ 'cn', @@ -308,9 +311,10 @@ IPA.aci.selfservice_entity = function(spec) { var that = IPA.entity(spec); - that.init = function(params) { + that.init = function() { + that.entity_init(); - params.builder.search_facet({ + that.builder.search_facet({ pagination: false, columns: [ 'aciname' ] }). @@ -349,9 +353,10 @@ IPA.aci.delegation_entity = function(spec) { var that = IPA.entity(spec); - that.init = function(params) { + that.init = function() { + that.entity_init(); - params.builder.search_facet({ + that.builder.search_facet({ pagination: false, columns: [ 'aciname' ] }). -- cgit