1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.filter.confluence.input

File ConfluenceInputProperties.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart7.png
64% of files have more coverage

Code metrics

0
8
8
1
131
55
8
1
1
8
1

Classes

Class Line # Actions
ConfluenceInputProperties 36 8 0% 8 6
0.62562.5%
 

Contributing tests

This file is covered by 3 tests. .

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 org.xwiki.filter.confluence.input;
21   
22    import java.util.Locale;
23   
24    import org.xwiki.filter.DefaultFilterStreamProperties;
25    import org.xwiki.filter.input.InputSource;
26    import org.xwiki.properties.annotation.PropertyDescription;
27    import org.xwiki.properties.annotation.PropertyMandatory;
28    import org.xwiki.properties.annotation.PropertyName;
29   
30    /**
31    * Confluence XMLL input properties.
32    *
33    * @version $Id: 408d9389abed98e4ab2fa6f528557e5d2c032b24 $
34    * @since 6.2M1
35    */
 
36    public class ConfluenceInputProperties extends DefaultFilterStreamProperties
37    {
38    /**
39    * @see #getSource()
40    */
41    private InputSource source;
42   
43    /**
44    * @see #getDefaultLocale()
45    */
46    private Locale defaultLocale;
47   
48    /**
49    * @see #isConvertToXWiki()
50    */
51    private boolean convertToXWiki = true;
52   
53    /**
54    * @see #getSpacePageName()
55    */
56    private String spacePageName = "WebHome";
57   
58    /**
59    * @return The source to load the wiki from
60    */
 
61  9 toggle @PropertyName("The source")
62    @PropertyDescription("The source to load the wiki from")
63    @PropertyMandatory
64    public InputSource getSource()
65    {
66  9 return this.source;
67    }
68   
69    /**
70    * @param source The source to load the wiki from
71    */
 
72  3 toggle public void setSource(InputSource source)
73    {
74  3 this.source = source;
75    }
76   
77    /**
78    * @return The locale of the documents
79    */
 
80  27 toggle @PropertyName("Default locale")
81    @PropertyDescription("The locale of the documents")
82    public Locale getDefaultLocale()
83    {
84  27 return defaultLocale;
85    }
86   
87    /**
88    * @param defaultLocale The locale of the documents
89    */
 
90  0 toggle public void setDefaultLocale(Locale defaultLocale)
91    {
92  0 this.defaultLocale = defaultLocale;
93    }
94   
95    /**
96    * @return if true, convert various Confluence standards to XWiki standard (the name of the admin group, etc.)
97    */
 
98  30 toggle @PropertyName("XWiki conversion")
99    @PropertyDescription("Convert various Confluence standards to XWiki standard (the name of the admin group, etc.)")
100    public boolean isConvertToXWiki()
101    {
102  30 return this.convertToXWiki;
103    }
104   
105    /**
106    * @param convertToXWiki if true, convert various Confluence standards to XWiki standard (the name of the admin
107    * group, etc.)
108    */
 
109  0 toggle public void setConvertToXWiki(boolean convertToXWiki)
110    {
111  0 this.convertToXWiki = convertToXWiki;
112    }
113   
114    /**
115    * @return The name to use for space home page
116    */
 
117  8 toggle @PropertyName("Space home page")
118    @PropertyDescription("The name to use for space home page")
119    public String getSpacePageName()
120    {
121  8 return this.spacePageName;
122    }
123   
124    /**
125    * @param spacePageName The name to use for space home page
126    */
 
127  0 toggle public void setSpacePageName(String spacePageName)
128    {
129  0 this.spacePageName = spacePageName;
130    }
131    }