1. Project Clover database Sat Feb 2 2019 06:45:20 CET
  2. Package org.xwiki.filter.instance.input

File DocumentInstanceInputProperties.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart9.png
41% of files have more coverage

Code metrics

0
14
14
1
193
83
14
1
1
14
1

Classes

Class Line # Actions
DocumentInstanceInputProperties 29 14 0% 14 4
0.8571428785.7%
 

Contributing tests

This file is covered by 21 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: 16f3b9c8117faf8b2f99709332086737643da4c0 $
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 #isWithWikiAttachmentsContent()
48    */
49    private boolean withWikiAttachmentsContent = true;
50   
51    /**
52    * @see #isWithWikiObjects()
53    */
54    private boolean withWikiObjects = true;
55   
56    /**
57    * @see #isWithWikiClass()
58    */
59    private boolean withWikiClass = true;
60   
61    /**
62    * @see #isWithWikiDocumentContentHTML()
63    */
64    private boolean withWikiDocumentContentHTML;
65   
66    /**
67    * @return Indicates if events should be generated for history
68    */
 
69  13559 toggle @PropertyName("With revisions")
70    @PropertyDescription("Indicates if events should be generated for history")
71    public boolean isWithRevisions()
72    {
73  13559 return this.withRevisions;
74    }
75   
76    /**
77    * @param withRevisions Indicates if events should be generated for history
78    */
 
79  13273 toggle public void setWithRevisions(boolean withRevisions)
80    {
81  13273 this.withRevisions = withRevisions;
82    }
83   
84    /**
85    * @return Indicates if JRCS based history should be added to document locale event properties
86    */
 
87  15041 toggle @PropertyName("With JRCS revisions")
88    @PropertyDescription("Indicates if JRCS based history should be added to document locale event properties")
89    public boolean isWithJRCSRevisions()
90    {
91  15041 return withJRCSRevisions;
92    }
93   
94    /**
95    * @param withJRCSRevisions Indicates if JRCS based history should be added to document locale event properties
96    */
 
97  13273 toggle public void setWithJRCSRevisions(boolean withJRCSRevisions)
98    {
99  13273 this.withJRCSRevisions = withJRCSRevisions;
100    }
101   
102    /**
103    * @return Indicate if events should be generated for attachments
104    */
 
105  13557 toggle @PropertyName("With attachments")
106    @PropertyDescription("Indicate if events should be generated for attachments")
107    public boolean isWithWikiAttachments()
108    {
109  13557 return this.withWikiAttachments;
110    }
111   
112    /**
113    * @param withWikiAttachments Indicate if events should be generated for attachments
114    */
 
115  0 toggle public void setWithWikiAttachments(boolean withWikiAttachments)
116    {
117  0 this.withWikiAttachments = withWikiAttachments;
118    }
119   
120    /**
121    * @return Indicate if events should be generated for attachments
122    * @since 9.0RC1
123    */
 
124  1578 toggle @PropertyName("With attachments content")
125    @PropertyDescription("Indicate if events should be generated for attachments content")
126    public boolean isWithWikiAttachmentsContent()
127    {
128  1578 return this.withWikiAttachmentsContent;
129    }
130   
131    /**
132    * @param withWikiAttachmentsContent Indicate if events should be generated for attachments content
133    * @since 9.0RC1
134    */
 
135  13267 toggle public void setWithWikiAttachmentsContent(boolean withWikiAttachmentsContent)
136    {
137  13267 this.withWikiAttachmentsContent = withWikiAttachmentsContent;
138    }
139   
140    /**
141    * @return Indicate if events should be generated for classes
142    */
 
143  13557 toggle @PropertyName("With classes")
144    @PropertyDescription("Indicate if events should be generated for classes")
145    public boolean isWithWikiClass()
146    {
147  13557 return this.withWikiClass;
148    }
149   
150    /**
151    * @param withWikiClass Indicate if events should be generated for classes
152    */
 
153  0 toggle public void setWithWikiClass(boolean withWikiClass)
154    {
155  0 this.withWikiClass = withWikiClass;
156    }
157   
158    /**
159    * @return Indicate if events should be generated for objects
160    */
 
161  13557 toggle @PropertyName("With objects")
162    @PropertyDescription("Indicate if events should be generated for objects")
163    public boolean isWithWikiObjects()
164    {
165  13557 return this.withWikiObjects;
166    }
167   
168    /**
169    * @param withWikiObjects Indicate if events should be generated for objects
170    */
 
171  13266 toggle public void setWithWikiObjects(boolean withWikiObjects)
172    {
173  13266 this.withWikiObjects = withWikiObjects;
174    }
175   
176    /**
177    * @return Indicate if events should be generated for document content as HTML
178    */
 
179  13557 toggle @PropertyName("With content as HTML")
180    @PropertyDescription("Indicate if events should be generated for document content as HTML")
181    public boolean isWithWikiDocumentContentHTML()
182    {
183  13557 return this.withWikiDocumentContentHTML;
184    }
185   
186    /**
187    * @param withWikiDocumentContentHTML Indicate if events should be generated for document content as HTML
188    */
 
189  13266 toggle public void setWithWikiDocumentContentHTML(boolean withWikiDocumentContentHTML)
190    {
191  13266 this.withWikiDocumentContentHTML = withWikiDocumentContentHTML;
192    }
193    }