View Javadoc
1   /*
2    * Copyright (C) 2003-2008 eXo Platform SAS.
3    *
4    * This program is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Affero General Public License
6    * as published by the Free Software Foundation; either version 3
7    * of the License, or (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU General Public License for more details.
13   *
14   * You should have received a copy of the GNU General Public License
15   * along with this program; if not, see<http://www.gnu.org/licenses/>.
16   */
17  package org.exoplatform.services.cms.taxonomy.impl;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * This class is used to store data about some default user permissions in
24   * configure file dms-taxonomies-configuration.xml
25   *
26   * Created by The eXo Platform SARL
27   * Author : Nguyen Anh Vu
28   *          anhvurz90@gmail.com
29   * Feb 2, 2010
30   * 11:09:57 AM
31   */
32  public class TaxonomyTreeDefaultUserPermission {
33  
34    private List<Permission> permissions = new ArrayList<Permission>();
35  
36    public List<Permission> getPermissions() { return permissions; }
37  
38    public void setPermissions(List<Permission> permissions) {
39      this.permissions = permissions;
40    }
41  
42    static public class Permission {
43      private String identity;
44      private String read;
45      private String addNode;
46      private String setProperty;
47      private String remove;
48  
49      public String getIdentity() {
50        return identity;
51      }
52  
53      public void setIdentity(String identity) {
54        this.identity = identity;
55      }
56  
57      public String getAddNode() {
58        return addNode;
59      }
60  
61      public void setAddNode(String addNode) {
62        this.addNode = addNode;
63      }
64  
65      public String getRead() {
66        return read;
67      }
68  
69      public void setRead(String read) {
70        this.read = read;
71      }
72  
73      public String getRemove() {
74        return remove;
75      }
76  
77      public void setRemove(String remove) {
78        this.remove = remove;
79      }
80  
81      public String getSetProperty() {
82        return setProperty;
83      }
84  
85      public void setSetProperty(String setProperty) {
86        this.setProperty = setProperty;
87      }
88    }
89  
90  }