View Javadoc
1   /*
2    * Copyright (C) 2003-2007 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   * Created by The eXo Platform SARL
24   * Author : Ly Dinh Quang
25   *          quang.ly@exoplatform.com
26   *          xxx5669@gmail.com
27   * Mar 31, 2009
28   */
29  public class TaxonomyConfig {
30    private List<Taxonomy> taxonomies = new ArrayList<Taxonomy>();
31  
32    public List<Taxonomy> getTaxonomies() { return this.taxonomies; }
33  
34    public void setTaxonomies(List<Taxonomy> taxonomies) { this.taxonomies = taxonomies;}
35  
36    static public class Taxonomy {
37      private String path;
38      private String name;
39      private String title;
40      private String description;
41      private List<Permission> permissions = new ArrayList<Permission>(4);
42  
43      public String getPath() { return this.path; }
44  
45      public void setPath(String path) { this.path = path;}
46  
47      public String getName() {return this.name; }
48  
49      public void setName(String name) { this.name = name; }
50  
51      public String getTitle() {return this.title; }
52  
53      public void setTitle(String title) { this.title = title; }
54  
55      public String getDescription()  { return this.description; }
56  
57      public void setDescription(String description) { this.description = description; }
58  
59      public List<Permission> getPermissions() {
60        return this.permissions;
61      }
62  
63      public void setPermissions(List<Permission> list) {
64        this.permissions = list;
65      }
66    }
67  
68    static public class Permission {
69      private String identity;
70      private String read;
71      private String addNode;
72      private String setProperty;
73      private String remove;
74  
75      public String getIdentity() {
76        return identity;
77      }
78  
79      public void setIdentity(String identity) {
80        this.identity = identity;
81      }
82  
83      public String getAddNode() {
84        return addNode;
85      }
86  
87      public void setAddNode(String addNode) {
88        this.addNode = addNode;
89      }
90  
91      public String getRead() {
92        return read;
93      }
94  
95      public void setRead(String read) {
96        this.read = read;
97      }
98  
99      public String getRemove() {
100       return remove;
101     }
102 
103     public void setRemove(String remove) {
104       this.remove = remove;
105     }
106 
107     public String getSetProperty() {
108       return setProperty;
109     }
110 
111     public void setSetProperty(String setProperty) {
112       this.setProperty = setProperty;
113     }
114   }
115 }