4
* Pavel Zuna <pzuna@redhat.com>
6
* Copyright (C) 2010 Red Hat
7
* see file 'COPYING' for use and warranty information
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program. If not, see <http://www.gnu.org/licenses/>.
23
/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */
26
IPA.entity_factories.hostgroup = function() {
28
return IPA.entity_builder().
30
search_facet({columns:['cn','description']}).
31
details_facet({sections:[{
33
label: IPA.messages.objects.hostgroup.identity,
34
fields:['cn','description']
37
name: 'memberof_hostgroup',
38
associator: IPA.serial_associator
41
name: 'memberof_netgroup',
42
associator: IPA.serial_associator
45
name: 'memberof_hbacrule',
46
associator: IPA.serial_associator,
47
add_method: 'add_host',
48
remove_method: 'remove_host'
51
name: 'memberof_sudorule',
52
associator: IPA.serial_associator,
53
add_method: 'add_host',
54
remove_method: 'remove_host'
56
standard_association_facets().
58
fields:['cn','description']