1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package com.xpn.xwiki.web

File PrepareEditForm.java

 

Coverage histogram

../../../../img/srcFileCovDistChart0.png
83% of files have more coverage

Code metrics

0
19
13
1
109
70
13
0.68
1.46
13
1

Classes

Class Line # Actions
PrepareEditForm 24 19 0% 13 32
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package com.xpn.xwiki.web;
21   
22    import com.xpn.xwiki.util.Util;
23   
 
24    public class PrepareEditForm extends XWikiForm
25    {
26    private String template;
27   
28    private String parent;
29   
30    private String defaultLanguage;
31   
32    private String defaultTemplate;
33   
34    private String creator;
35   
36    private boolean lockForce;
37   
 
38  0 toggle @Override
39    public void readRequest()
40    {
41  0 XWikiRequest request = getRequest();
42  0 setTemplate(request.getParameter("template"));
43  0 setParent(request.getParameter("parent"));
44  0 setCreator(request.getParameter("creator"));
45  0 setDefaultLanguage(request.getParameter("defaultLanguage"));
46  0 setDefaultTemplate(request.getParameter("defaultTemplate"));
47  0 setLockForce("1".equals(request.getParameter("force")));
48    }
49   
 
50  0 toggle public String getTemplate()
51    {
52  0 return this.template;
53    }
54   
 
55  0 toggle public void setTemplate(String template)
56    {
57  0 this.template = template;
58    }
59   
 
60  0 toggle public String getDefaultTemplate()
61    {
62  0 return this.defaultTemplate;
63    }
64   
 
65  0 toggle public void setDefaultTemplate(String template)
66    {
67  0 this.defaultTemplate = template;
68    }
69   
 
70  0 toggle public String getParent()
71    {
72  0 return this.parent;
73    }
74   
 
75  0 toggle public void setParent(String parent)
76    {
77  0 this.parent = parent;
78    }
79   
 
80  0 toggle public String getCreator()
81    {
82  0 return this.creator;
83    }
84   
 
85  0 toggle public void setCreator(String creator)
86    {
87  0 this.creator = creator;
88    }
89   
 
90  0 toggle public String getDefaultLanguage()
91    {
92  0 return this.defaultLanguage;
93    }
94   
 
95  0 toggle public void setDefaultLanguage(String defaultLanguage)
96    {
97  0 this.defaultLanguage = Util.normalizeLanguage(defaultLanguage);
98    }
99   
 
100  0 toggle public boolean isLockForce()
101    {
102  0 return this.lockForce;
103    }
104   
 
105  0 toggle public void setLockForce(boolean lockForce)
106    {
107  0 this.lockForce = lockForce;
108    }
109    }