View Javadoc
1   /*
2    * Copyright (C) 2003-2009 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.wiki.mow.api;
18  
19  import java.util.List;
20  
21  public class Wiki {
22  
23    /**
24     * Wiki unique id
25     */
26    private String id;
27  
28    /**
29     * Name of the owner of this wiki. May be a portal name, a group name or a
30     * user name depending on the type of the wiki
31     */
32    private String owner;
33  
34    /**
35     * Type of this wiki. May be a portal type, a group type or a user type
36     */
37    private String type;
38  
39    /**
40     * Home page of the wiki
41     */
42    private Page wikiHome;
43  
44    private List<PermissionEntry> permissions;
45    
46    private WikiPreferences preferences;
47    
48    private boolean defaultPermissionsInited;
49  
50    public Wiki() {
51    }
52  
53    public Wiki(String type, String owner) {
54      this.type = type;
55      this.owner = owner;
56    }
57  
58    public String getId() {
59      return id;
60    }
61  
62    public void setId(String id) {
63      this.id = id;
64    }
65  
66    public String getOwner() {
67      return owner;
68    }
69  
70    public void setOwner(String owner) {
71      this.owner = owner;
72    }
73  
74    public String getType() {
75      return type;
76    }
77  
78    public void setType(String type) {
79      this.type = type;
80    }
81  
82    public Page getWikiHome() {
83      return wikiHome;
84    }
85  
86    public void setWikiHome(Page wikiHome) {
87      this.wikiHome = wikiHome;
88    }
89  
90    public List<PermissionEntry> getPermissions() {
91      return permissions;
92    }
93  
94    public void setPermissions(List<PermissionEntry> permissions) {
95      this.permissions = permissions;
96    }
97  
98    public WikiPreferences getPreferences() {
99      return preferences;
100   }
101 
102   public void setPreferences(WikiPreferences preferences) {
103     this.preferences = preferences;
104   }
105 
106   public boolean isDefaultPermissionsInited() {
107     return defaultPermissionsInited;
108   }
109 
110   public void setDefaultPermissionsInited(boolean defaultPermissionsInited) {
111     this.defaultPermissionsInited = defaultPermissionsInited;
112   }
113 }