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

File XWikiDefaultStore.java

 

Coverage histogram

../../../../img/srcFileCovDistChart0.png
83% of files have more coverage

Code metrics

0
11
13
1
112
78
13
1.18
0.85
13
1

Classes

Class Line # Actions
XWikiDefaultStore 30 11 0% 13 24
0.00%
 

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.store;
21   
22    import java.util.ArrayList;
23    import java.util.List;
24   
25    import com.xpn.xwiki.XWikiContext;
26    import com.xpn.xwiki.XWikiException;
27    import com.xpn.xwiki.doc.XWikiDocument;
28    import com.xpn.xwiki.objects.classes.BaseClass;
29   
 
30    public abstract class XWikiDefaultStore implements XWikiStoreInterface
31    {
 
32  0 toggle @Override
33    public List searchDocumentsNames(String wheresql, XWikiContext context) throws XWikiException
34    {
35  0 return searchDocumentsNames(wheresql, 0, 0, "", context);
36    }
37   
 
38  0 toggle @Override
39    public List searchDocumentsNames(String wheresql, int nb, int start, XWikiContext context) throws XWikiException
40    {
41  0 return searchDocumentsNames(wheresql, nb, start, "", context);
42    }
43   
 
44  0 toggle @Override
45    public List<XWikiDocument> searchDocuments(String wheresql, XWikiContext context) throws XWikiException
46    {
47  0 return searchDocuments(wheresql, true, 0, 0, context);
48    }
49   
 
50  0 toggle @Override
51    public List<XWikiDocument> searchDocuments(String wheresql, boolean distinctbylanguage, XWikiContext context)
52    throws XWikiException
53    {
54  0 return searchDocuments(wheresql, distinctbylanguage, 0, 0, context);
55    }
56   
 
57  0 toggle @Override
58    public List<XWikiDocument> searchDocuments(String wheresql, boolean distinctbylanguage, boolean customMapping,
59    XWikiContext context) throws XWikiException
60    {
61  0 return searchDocuments(wheresql, distinctbylanguage, customMapping, 0, 0, context);
62    }
63   
 
64  0 toggle @Override
65    public List<XWikiDocument> searchDocuments(String wheresql, int nb, int start, XWikiContext context)
66    throws XWikiException
67    {
68  0 return searchDocuments(wheresql, true, nb, start, context);
69    }
70   
 
71  0 toggle @Override
72    public List<XWikiDocument> searchDocuments(String wheresql, boolean distinctbyname, int nb, int start,
73    XWikiContext context) throws XWikiException
74    {
75  0 return searchDocuments(wheresql, distinctbyname, false, nb, start, context);
76    }
77   
 
78  0 toggle @Override
79    public boolean injectCustomMapping(BaseClass doc1class, XWikiContext xWikiContext) throws XWikiException
80    {
81  0 return false;
82    }
83   
 
84  0 toggle @Override
85    public boolean injectCustomMappings(XWikiDocument doc, XWikiContext xWikiContext) throws XWikiException
86    {
87  0 return false;
88    }
89   
 
90  0 toggle @Override
91    public void injectCustomMappings(XWikiContext context) throws XWikiException
92    {
93    }
94   
 
95  0 toggle @Override
96    public void injectUpdatedCustomMappings(XWikiContext context) throws XWikiException
97    {
98    }
99   
 
100  0 toggle @Override
101    public List getCustomMappingPropertyList(BaseClass bclass)
102    {
103  0 return new ArrayList();
104    }
105   
 
106  0 toggle @Override
107    public List<XWikiDocument> searchDocuments(String wheresql, boolean distinctbyname, boolean customMapping, int nb,
108    int start, XWikiContext context) throws XWikiException
109    {
110  0 return searchDocuments(wheresql, distinctbyname, customMapping, true, nb, start, context);
111    }
112    }