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

File DocumentInstanceInputProperties.java

 

Coverage histogram

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

Code metrics

0
12
12
1
168
72
12
1
1
12
1

Classes

Class Line # Actions
DocumentInstanceInputProperties 29 12 0% 12 2
0.916666791.7%
 

Contributing tests

This file is covered by 20 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.instance.input;
21   
22    import org.xwiki.properties.annotation.PropertyDescription;
23    import org.xwiki.properties.annotation.PropertyName;
24   
25    /**
26    * @version $Id: b1676063e5dd45eb6039217c23120098aabdebcd $
27    * @since 6.2M1
28    */
 
29    public class DocumentInstanceInputProperties extends InstanceInputProperties
30    {
31    /**
32    * @see #isWithRevisions()
33    */
34    private boolean withRevisions = true;
35   
36    /**
37    * @see #isWithJRCSRevisions()
38    */
39    private boolean withJRCSRevisions = true;
40   
41    /**
42    * @see #isWithWikiAttachments()
43    */
44    private boolean withWikiAttachments = true;
45   
46    /**
47    * @see #isWithWikiObjects()
48    */
49    private boolean withWikiObjects = true;
50   
51    /**
52    * @see #isWithWikiClass()
53    */
54    private boolean withWikiClass = true;
55   
56    /**
57    * @see #isWithWikiDocumentContentHTML()
58    */
59    private boolean withWikiDocumentContentHTML;
60   
61    /**
62    * @return Indicates if events should be generated for history
63    */
 
64  6416 toggle @PropertyName("With revisions")
65    @PropertyDescription("Indicates if events should be generated for history")
66    public boolean isWithRevisions()
67    {
68  6416 return this.withRevisions;
69    }
70   
71    /**
72    * @param withRevisions Indicates if events should be generated for history
73    */
 
74  6334 toggle public void setWithRevisions(boolean withRevisions)
75    {
76  6334 this.withRevisions = withRevisions;
77    }
78   
79    /**
80    * @return Indicates if JRCS based history should be added to document locale event properties
81    */
 
82  6437 toggle @PropertyName("With JRCS revisions")
83    @PropertyDescription("Indicates if JRCS based history should be added to document locale event properties")
84    public boolean isWithJRCSRevisions()
85    {
86  6437 return withJRCSRevisions;
87    }
88   
89    /**
90    * @param withJRCSRevisions Indicates if JRCS based history should be added to document locale event properties
91    */
 
92  6334 toggle public void setWithJRCSRevisions(boolean withJRCSRevisions)
93    {
94  6334 this.withJRCSRevisions = withJRCSRevisions;
95    }
96   
97    /**
98    * @return Indicate if events should be generated for attachments
99    */
 
100  6415 toggle @PropertyName("With attachments")
101    @PropertyDescription("Indicate if events should be generated for attachments")
102    public boolean isWithWikiAttachments()
103    {
104  6415 return this.withWikiAttachments;
105    }
106   
107    /**
108    * @param withWikiAttachments Indicate if events should be generated for attachments
109    */
 
110  6332 toggle public void setWithWikiAttachments(boolean withWikiAttachments)
111    {
112  6332 this.withWikiAttachments = withWikiAttachments;
113    }
114   
115    /**
116    * @return Indicate if events should be generated for classes
117    */
 
118  6415 toggle @PropertyName("With classes")
119    @PropertyDescription("Indicate if events should be generated for classes")
120    public boolean isWithWikiClass()
121    {
122  6415 return this.withWikiClass;
123    }
124   
125    /**
126    * @param withWikiClass Indicate if events should be generated for classes
127    */
 
128  0 toggle public void setWithWikiClass(boolean withWikiClass)
129    {
130  0 this.withWikiClass = withWikiClass;
131    }
132   
133    /**
134    * @return Indicate if events should be generated for objects
135    */
 
136  6415 toggle @PropertyName("With objects")
137    @PropertyDescription("Indicate if events should be generated for objects")
138    public boolean isWithWikiObjects()
139    {
140  6415 return this.withWikiObjects;
141    }
142   
143    /**
144    * @param withWikiObjects Indicate if events should be generated for objects
145    */
 
146  6332 toggle public void setWithWikiObjects(boolean withWikiObjects)
147    {
148  6332 this.withWikiObjects = withWikiObjects;
149    }
150   
151    /**
152    * @return Indicate if events should be generated for document content as HTML
153    */
 
154  6415 toggle @PropertyName("With content as HTML")
155    @PropertyDescription("Indicate if events should be generated for document content as HTML")
156    public boolean isWithWikiDocumentContentHTML()
157    {
158  6415 return this.withWikiDocumentContentHTML;
159    }
160   
161    /**
162    * @param withWikiDocumentContentHTML Indicate if events should be generated for document content as HTML
163    */
 
164  6332 toggle public void setWithWikiDocumentContentHTML(boolean withWikiDocumentContentHTML)
165    {
166  6332 this.withWikiDocumentContentHTML = withWikiDocumentContentHTML;
167    }
168    }