summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-07-28 17:23:41 -0500
committerAdam Young <ayoung@redhat.com>2011-07-28 21:40:03 -0400
commit51cd0c916b7f97a249abe17a2987b5ec849bf723 (patch)
tree815d25b097392df0f311e4b8424e870b8638b004 /install
parent1983193d477227c1102dc219d0925da91be51731 (diff)
downloadfreeipa-51cd0c916b7f97a249abe17a2987b5ec849bf723.zip
freeipa-51cd0c916b7f97a249abe17a2987b5ec849bf723.tar.gz
freeipa-51cd0c916b7f97a249abe17a2987b5ec849bf723.tar.xz
Added association facets for HBAC and sudo.
The HBAC service, HBAC service group, sudo command and sudo command group have been modified to show the associations as facets. Ticket #1536
Diffstat (limited to 'install')
-rw-r--r--install/ui/hbac.js58
-rw-r--r--install/ui/sudo.js116
2 files changed, 94 insertions, 80 deletions
diff --git a/install/ui/hbac.js b/install/ui/hbac.js
index 2cdb710..4e25123 100644
--- a/install/ui/hbac.js
+++ b/install/ui/hbac.js
@@ -63,6 +63,30 @@ IPA.entity_factories.hbacsvc = function() {
name: 'general',
label: IPA.messages.details.general,
fields:[ 'cn', 'description']}]}).
+ association_facet({
+ name: 'memberof_hbacsvcgroup',
+ associator: IPA.serial_associator,
+ columns:[
+ {
+ name: 'cn',
+ primary_key: true,
+ link: true
+ },
+ { name: 'description' }
+ ],
+ adder_columns: [
+ {
+ name: 'cn',
+ primary_key: true,
+ width: '100px'
+ },
+ {
+ name: 'description',
+ width: '100px'
+ }
+ ]
+ }).
+ standard_association_facets().
adder_dialog({
fields:['cn','description']
}).
@@ -80,18 +104,30 @@ IPA.entity_factories.hbacsvcgroup = function() {
name: 'general',
label: IPA.messages.details.general,
fields:['cn','description']
- },
- {
- name: 'services',
- label: IPA.messages.objects.hbacsvcgroup.services,
- fields:[{
- factory: IPA.hbacsvcgroup_member_hbacsvc_table_widget,
- name: 'member_hbacsvc',
- label: IPA.messages.objects.hbacsvcgroup.services,
- other_entity: 'hbacsvc',
- save_values: false
- }]
}]}).
+ association_facet({
+ name: 'member_hbacsvc',
+ columns:[
+ {
+ name: 'cn',
+ primary_key: true,
+ link: true
+ },
+ { name: 'description' }
+ ],
+ adder_columns: [
+ {
+ name: 'cn',
+ primary_key: true,
+ width: '100px'
+ },
+ {
+ name: 'description',
+ width: '100px'
+ }
+ ]
+ }).
+ standard_association_facets().
adder_dialog({
fields:['cn', 'description']
}).
diff --git a/install/ui/sudo.js b/install/ui/sudo.js
index d725f21..d8d6331 100644
--- a/install/ui/sudo.js
+++ b/install/ui/sudo.js
@@ -50,42 +50,31 @@ IPA.entity_factories.sudocmd = function() {
name: 'general',
label: IPA.messages.details.general,
fields:['sudocmd','description']
- },
- {
- name: 'groups',
- label: IPA.messages.objects.sudocmd.groups,
- factory: IPA.details_section,
- fields:[{
- factory: IPA.sudocmd_member_sudocmdgroup_table_widget,
- name: 'memberof_sudocmdgroup',
- label: '',//IPA.messages.objects.sudocmd.groups,
- other_entity: 'sudocmdgroup',
- save_values: false,
- columns:[
- {
- name: 'cn',
- primary_key: true,
- width: '150px',
- link: true
- },
- {
- name: 'description',
- width: '150px'
- }
- ],
- adder_columns:[
- {
- name: 'cn',
- primary_key: true,
- width: '100px'
- },
- {
- name: 'description',
- width: '100px'
- }
- ]
- }]
}]}).
+ association_facet({
+ name: 'memberof_sudocmdgroup',
+ associator: IPA.serial_associator,
+ columns:[
+ {
+ name: 'cn',
+ primary_key: true,
+ link: true
+ },
+ { name: 'description' }
+ ],
+ adder_columns:[
+ {
+ name: 'cn',
+ primary_key: true,
+ width: '100px'
+ },
+ {
+ name: 'description',
+ width: '100px'
+ }
+ ]
+ }).
+ standard_association_facets().
adder_dialog({
fields:['sudocmd','description']
}).
@@ -105,41 +94,30 @@ IPA.entity_factories.sudocmdgroup = function() {
name: 'general',
label: IPA.messages.details.general,
fields:['cn','description']
- },
- {
- name: 'commands',
- factory: IPA.details_section,
- fields: [{
- factory: IPA.association_table_widget,
- name: 'member_sudocmd',
- label: IPA.messages.objects.sudocmdgroup.commands,
- other_entity: 'sudocmd',
- save_values: false,
- columns:[
- {
- name: 'sudocmd',
- primary_key: true,
- width: '150px',
- link: true
- },
- {
- name: 'description',
- width: '150px'
- }
- ],
- adder_columns: [
- {
- name: 'sudocmd',
- primary_key: true,
- width: '100px'
- },
- {
- name: 'description',
- width: '100px'
- }
- ]
- }]
}]}).
+ association_facet({
+ name: 'member_sudocmd',
+ columns:[
+ {
+ name: 'sudocmd',
+ primary_key: true,
+ link: true
+ },
+ { name: 'description' }
+ ],
+ adder_columns: [
+ {
+ name: 'sudocmd',
+ primary_key: true,
+ width: '100px'
+ },
+ {
+ name: 'description',
+ width: '100px'
+ }
+ ]
+ }).
+ standard_association_facets().
adder_dialog({
fields:['cn','description']
}).