~ubuntu-branches/ubuntu/precise/freeipa/precise

« back to all changes in this revision

Viewing changes to install/ui/hostgroup.js

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2012-03-22 00:17:10 UTC
  • Revision ID: package-import@ubuntu.com-20120322001710-pyratwr2bfml6bin
Tags: upstream-2.1.4
ImportĀ upstreamĀ versionĀ 2.1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*jsl:import ipa.js */
 
2
 
 
3
/*  Authors:
 
4
 *    Pavel Zuna <pzuna@redhat.com>
 
5
 *
 
6
 * Copyright (C) 2010 Red Hat
 
7
 * see file 'COPYING' for use and warranty information
 
8
 *
 
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.
 
13
 *
 
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.
 
18
 *
 
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/>.
 
21
 */
 
22
 
 
23
/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */
 
24
 
 
25
 
 
26
IPA.entity_factories.hostgroup = function() {
 
27
 
 
28
    return IPA.entity_builder().
 
29
        entity('hostgroup').
 
30
        search_facet({columns:['cn','description']}).
 
31
        details_facet({sections:[{
 
32
            name:'identity',
 
33
            label: IPA.messages.objects.hostgroup.identity,
 
34
            fields:['cn','description']
 
35
        }]}).
 
36
        association_facet({
 
37
            name: 'memberof_hostgroup',
 
38
            associator: IPA.serial_associator
 
39
        }).
 
40
        association_facet({
 
41
            name: 'memberof_netgroup',
 
42
            associator: IPA.serial_associator
 
43
        }).
 
44
        association_facet({
 
45
            name: 'memberof_hbacrule',
 
46
            associator: IPA.serial_associator,
 
47
            add_method: 'add_host',
 
48
            remove_method: 'remove_host'
 
49
        }).
 
50
        association_facet({
 
51
            name: 'memberof_sudorule',
 
52
            associator: IPA.serial_associator,
 
53
            add_method: 'add_host',
 
54
            remove_method: 'remove_host'
 
55
        }).
 
56
        standard_association_facets().
 
57
        adder_dialog({
 
58
            fields:['cn','description']
 
59
        }).
 
60
        build();
 
61
};
 
62
 
 
63
 
 
64