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

File DeleteVersionsForm.java

 

Coverage histogram

../../../../img/srcFileCovDistChart10.png
0% of files have more coverage

Code metrics

0
11
6
1
96
40
6
0.55
1.83
6
1

Classes

Class Line # Actions
DeleteVersionsForm 29 11 0% 6 0
1.0100%
 

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    /**
25    * Struts form for {@link DeleteVersionsAction}.
26    *
27    * @version $Id: 7d391bc8ea492001390ff9786c472326e210e5fb $
28    */
 
29    public class DeleteVersionsForm extends XWikiForm
30    {
31    /** from revision. */
32    private String rev1;
33   
34    /** to revision. */
35    private String rev2;
36   
37    /** single version. */
38    private String rev;
39   
40    /** document language. */
41    private String language;
42   
43    /** is action confirmed. */
44    private boolean confirm;
45   
 
46  4 toggle @Override
47    public void readRequest()
48    {
49  4 XWikiRequest request = getRequest();
50  4 this.rev1 = request.getParameter("rev1");
51  4 this.rev2 = request.getParameter("rev2");
52  4 this.rev = request.getParameter("rev");
53  4 this.language = Util.normalizeLanguage(request.getParameter("language"));
54  4 this.confirm = request.getParameter("confirm") != null;
55    }
56   
57    /**
58    * @return from revision
59    */
 
60  2 toggle public String getRev1()
61    {
62  2 return this.rev1;
63    }
64   
65    /**
66    * @return to revision
67    */
 
68  2 toggle public String getRev2()
69    {
70  2 return this.rev2;
71    }
72   
73    /**
74    * @return single revision
75    */
 
76  2 toggle public String getRev()
77    {
78  2 return this.rev;
79    }
80   
81    /**
82    * @return document language
83    */
 
84  2 toggle public String getLanguage()
85    {
86  2 return this.language;
87    }
88   
89    /**
90    * @return is action confirmed
91    */
 
92  2 toggle public boolean isConfirmed()
93    {
94  2 return this.confirm;
95    }
96    }