Class | Line # | Actions | |||||
---|---|---|---|---|---|---|---|
ExtensionManagerConfiguration | 36 | 1 | 0% | 1 | 2 |
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 java.io.File; | |
23 | import java.util.Collection; | |
24 | ||
25 | import org.xwiki.component.annotation.Role; | |
26 | import org.xwiki.extension.repository.ExtensionRepositoryDescriptor; | |
27 | import org.xwiki.extension.repository.ExtensionRepositoryId; | |
28 | ||
29 | /** | |
30 | * Provide some general extension manager configuration. | |
31 | * | |
32 | * @version $Id: 32c5949529b806a834ea59e3b1042e158ac7d740 $ | |
33 | * @since 4.0M1 | |
34 | */ | |
35 | @Role | |
36 | public interface ExtensionManagerConfiguration | |
37 | { | |
38 | /** | |
39 | * @return the folder containing the local extensions | |
40 | * @see org.xwiki.extension.repository.LocalExtensionRepository | |
41 | */ | |
42 | File getLocalRepository(); | |
43 | ||
44 | /** | |
45 | * @return the configured repositories | |
46 | * @deprecated since 4.3M1 use {@link #getExtensionRepositoryDescriptors()} instead | |
47 | */ | |
48 | @Deprecated | |
49 | Collection<ExtensionRepositoryId> getRepositories(); | |
50 | ||
51 | /** | |
52 | * @return the configured repositories | |
53 | * @since 4.3M1 | |
54 | */ | |
55 | Collection<ExtensionRepositoryDescriptor> getExtensionRepositoryDescriptors(); | |
56 | ||
57 | /** | |
58 | * @return the user agent to declare when communication with external services (generally repositories) | |
59 | */ | |
60 | String getUserAgent(); | |
61 | ||
62 | /** | |
63 | * @return true if XWiki should try to get more informations about the core extensions using the repositories | |
64 | * @since 8.3RC1 | |
65 | */ | |
66 | 0 | default boolean resolveCoreExtensions() |
67 | { | |
68 | 0 | return true; |
69 | } | |
70 | } |