Project

General

Profile

Download (1.41 KB) Statistics
| Branch: | Revision:

git_sitools_idoc / flarecast / workspace / client-user-3.0 / app / model / RoleModel.js @ master

1
/*******************************************************************************
2
 * Copyright 2010-2014 CNES - CENTRE NATIONAL d'ETUDES SPATIALES
3
 * 
4
 * This file is part of SITools2.
5
 * 
6
 * SITools2 is free software: you can redistribute it and/or modify it under the
7
 * terms of the GNU General Public License as published by the Free Software
8
 * Foundation, either version 3 of the License, or (at your option) any later
9
 * version.
10
 * 
11
 * SITools2 is distributed in the hope that it will be useful, but WITHOUT ANY
12
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13
 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14
 * 
15
 * You should have received a copy of the GNU General Public License along with
16
 * SITools2. If not, see <http://www.gnu.org/licenses/>.
17
 ******************************************************************************/
18
/* global Ext, sitools, window */
19

    
20
Ext.define('sitools.user.model.RoleModel', {
21
    extend : 'Ext.data.Model',
22

    
23
    require : [ 'sitools.user.model.ResourceModel' ],
24

    
25
    fields : [ {
26
        name : 'id',
27
        type : 'string'
28
    }, {
29
        name : 'name',
30
        type : 'string'
31
    }, {
32
        name : 'description',
33
        type : 'string'
34
    } ],
35
    hasMany : [ {
36
        model : 'sitools.user.model.ResourceModel',
37
        name : 'users'
38
    }, {
39
        model : 'sitools.user.model.ResourceModel',
40
        name : 'groups'
41
    } ]
42
});