1. Project Clover database Sat Feb 2 2019 06:45:20 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  6 toggle @Override
47    public void readRequest()
48    {
49  6 XWikiRequest request = getRequest();
50  6 this.rev1 = request.getParameter("rev1");
51  6 this.rev2 = request.getParameter("rev2");
52  6 this.rev = request.getParameter("rev");
53  6 this.language = Util.normalizeLanguage(request.getParameter("language"));
54  6 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  5 toggle public String getRev()
77    {
78  5 return this.rev;
79    }
80   
81    /**
82    * @return document language
83    */
 
84  3 toggle public String getLanguage()
85    {
86  3 return this.language;
87    }
88   
89    /**
90    * @return is action confirmed
91    */
 
92  3 toggle public boolean isConfirmed()
93    {
94  3 return this.confirm;
95    }
96    }