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

File RemoteExtension.java

 

Coverage histogram

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

Code metrics

0
1
1
1
57
12
1
1
1
1
1

Classes

Class Line # Actions
RemoteExtension 36 1 0% 1 2
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 org.xwiki.extension;
21   
22    import org.xwiki.extension.repository.ExtensionRepositoryManager;
23    import org.xwiki.stability.Unstable;
24   
25    /**
26    * An extension that come from a remote extensions repository.
27    * <p>
28    * A remote extension repository is any repository which is not one of the repository listed in
29    * {@link ExtensionRepositoryManager}. It means it could be a Maven repository targeting some
30    * {@code file:///my/repository/path} for example.
31    *
32    * @version $Id: efc7f5063d402bbe91852f96d6a7fe66bdd38219 $
33    * @since 8.3RC1
34    */
35    @Unstable
 
36    public interface RemoteExtension extends Extension
37    {
38    /**
39    * @see #isRecommended()
40    */
41    String FIELD_RECOMMENDED = "recommended";
42   
43    /**
44    * Indicate if the extension is recommended by the repository where it come from.
45    * <p>
46    * What "recommended" exactly means depend on the repository giving this information.
47    * <p>
48    * For example on http://extensions.xwiki.org the meaning is the extension is known to be of good quality and still
49    * officially supported by its author.
50    *
51    * @return true if the extension is recommended
52    */
 
53  0 toggle default boolean isRecommended()
54    {
55  0 return false;
56    }
57    }