summaryrefslogtreecommitdiffstats
BranchCommit messageAuthorAge
dependabot/github_actions/master/actions/checkout-4Bump actions/checkout from 3 to 4dependabot[bot]16 months
dependabot/maven/archiva-modules/metadata/metadata-store-provider/oak-jcr/oak-jcr-lucene/org.apache.tika-tika-core-1.28.3Bump org.apache.tika:tika-coredependabot[bot]17 months
dependabot/github_actions/master/actions/setup-java-3.12.0Bump actions/setup-java from 3.4.1 to 3.12.0dependabot[bot]18 months
archiva-2.xdisable registration link should disable registration for realOlivier Lamy19 months
dependabot/maven/io.netty-netty-handler-4.1.94.FinalBump netty-handler from 4.1.68.Final to 4.1.94.Finaldependabot[bot]19 months
dependabot/maven/org.springframework-spring-core-5.3.27Bump spring-core from 5.3.22 to 5.3.27dependabot[bot]21 months
dependabot/maven/org.json-json-20230227Bump json from 20200518 to 20230227dependabot[bot]21 months
master2.2.10 release noteOlivier Lamy22 months
dependabot/npm_and_yarn/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/http-cache-semantics-and-angular/cli-4.1.1Bump http-cache-semantics and @angular/clidependabot[bot]22 months
dependabot/npm_and_yarn/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/ua-parser-js-and-karma-0.7.34Bump ua-parser-js and karmadependabot[bot]22 months
dependabot/npm_and_yarn/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/engine.io-and-socket.io-3.6.1Bump engine.io and socket.iodependabot[bot]22 months
dependabot/npm_and_yarn/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/qs-6.5.3Bump qsdependabot[bot]22 months
dependabot/npm_and_yarn/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/decode-uri-component-0.2.2Bump decode-uri-componentdependabot[bot]22 months
dependabot/npm_and_yarn/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/json5-1.0.2Bump json5dependabot[bot]22 months
dependabot/npm_and_yarn/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/jszip-3.10.1Bump jszipdependabot[bot]22 months
dependabot/npm_and_yarn/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/minimist-1.2.8Bump minimistdependabot[bot]22 months
dependabot/maven/org.apache.cxf-cxf-core-3.4.10Bump cxf-core from 3.3.11 to 3.4.10dependabot[bot]2 years
dependabot/maven/org.springframework-spring-web-6.0.0Bump spring-web from 5.3.22 to 6.0.0dependabot[bot]2 years
dependabot/maven/com.fasterxml.jackson.core-jackson-databind-2.12.7.1Bump jackson-databind from 2.12.2 to 2.12.7.1dependabot[bot]2 years
dependabot/maven/com.fasterxml.woodstox-woodstox-core-6.4.0Bump woodstox-core from 6.2.4 to 6.4.0dependabot[bot]2 years
dependabot/maven/org.jsoup-jsoup-1.15.3Bump jsoup from 1.14.2 to 1.15.3dependabot[bot]2 years
dependabot/maven/org.apache.derby-derby-10.14.2.0Bump derby from 10.13.1.1 to 10.14.2.0dependabot[bot]2 years
dependabot/maven/master/com.google.guava-guava-23.0Bump guava from 20.0 to 23.0dependabot[bot]2 years
dependabot/maven/org.apache.commons-commons-configuration2-2.8.0Bump commons-configuration2 from 2.7 to 2.8.0dependabot[bot]2 years
dependabot/npm_and_yarn/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/terser-4.8.1Bump terserdependabot[bot]2 years
master-jenkinsfile-it-testmissing variableOlivier Lamy3 years
dependabot/maven/master/maven3x.version-3.8.5Bump maven3x.version from 3.8.1 to 3.8.5dependabot[bot]3 years
dependabot/maven/master/derbyVersion-10.15.2.0Bump derbyVersion from 10.13.1.1 to 10.15.2.0dependabot[bot]3 years
dependabot/npm_and_yarn/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/eventsource-1.1.1Bump eventsourcedependabot[bot]3 years
dependabot/maven/archiva-2.x/cglib-cglib-3.3.0Bump cglib from 2.2.2 to 3.3.0dependabot[bot]3 years
dependabot/npm_and_yarn/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/async-2.6.4Bump asyncdependabot[bot]3 years
dependabot/maven/archiva-2.x/cxf.version-3.5.2Bump cxf.version from 3.0.3 to 3.5.2dependabot[bot]3 years
dependabot/maven/master/org.codehaus.plexus-plexus-component-metadata-2.1.1Bump plexus-component-metadata from 1.0-beta-3.0.5 to 2.1.1dependabot[bot]3 years
dependabot/maven/master/selenium-server.version-3.141.59Bump selenium-server.version from 3.4.0 to 3.141.59dependabot[bot]3 years
master-maven-indexer-6.0.1minor changesOlivier Lamy3 years
debug-it-testsfix filteringOlivier Lamy3 years
dependabot/npm_and_yarn/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/url-parse-1.5.10Bump url-parsedependabot[bot]3 years
feature/storage_refactoringMigrating servlet to repository registry usageMartin Stockhammer5 years
feature/site-git-migrationActivating new git web publish repositoryMartin Stockhammer6 years
MRM-1958Reformat codeMartin Stockhammer7 years
citestAdding reg files for IEMartin Stockhammer8 years
archiva-2.2.3-docsChanging some docs for archiva 2.2.3Martin Stockhammer8 years
feature/header_checkAdding validation token during loginMartin Stockhammer8 years
jpaUse JPA as default and only database backendMartin Stockhammer8 years
validauthAdding isValid() method to authentication classesMartin Stockhammer8 years
archiva-1.3.x[MRM-1857] RSS feeds not workingBrett Porter10 years
2.0.1-RC[maven-release-plugin] prepare for next development iterationOlivier Lamy11 years
2.0.0-RCfix unit test due to bad previous commitOlivier Lamy11 years
archiva-MRM-1756manual patch js file to cope with trunkskygo12 years
1.4-M2-RC[maven-release-plugin] prepare for next development iterationOlivier Lamy13 years
staging-refactorinitial work on removing hardcoded staging repositories. Still several tasks ...Brett Porter13 years
MRM-1327-jcr-backend-defaultadd missing files from previous commitBrett Porter14 years
archiva-MRM-980[MRM-980] Update docs on staging and promotion. Only a System Administrator ...Wendy Smoak14 years
MRM-1025[MRM-1282] sort the results for platform independanceBrett Porter15 years
MRM-1296[MRM-1269] Audit logging reportMaria Odea B. Ching15 years
MRM-976move working notes to the active branchBrett Porter15 years
archiva-1.1.x[maven-release-plugin] prepare for next development iterationMaria Odea B. Ching16 years
archiva-with-new-repoapiShould add the values of the bean map to the collectionJames William Dumay16 years
archiva-nexus-indexero update branch with latest changes from trunkMaria Odea B. Ching16 years
archiva-obr-repositoryAdd obr consumer to webappJames William Dumay16 years
archiva-search-improvementsMerging back with trunkJames William Dumay16 years
archiva-pluginsAdding felix config to the consumer pomJames William Dumay16 years
MRM-124synched to trunk (-r706114) in prep for mergeMaria Odea B. Ching16 years
archiva-database-decouplingremove unrelated config fileBrett Porter16 years
archiva-security-fixupdated test methods namesMaria Odea B. Ching16 years
MRM-541MRM-541 - convenient way to take Archiva proxies "offline"James William Dumay16 years
metadata-rejig-1.2Fix failing test testGetMergedMetadata(org.apache.maven.archiva.webdav.Reposi...James William Dumay16 years
archiva-MRM-829Last commitJames William Dumay17 years
archiva-1.0.xo Unindent configuration snippets to make them copy-paste friendly.Dennis Lundberg17 years
moved-repo-servletNeed to clean the test repository after every test...James William Dumay17 years
archiva-0.9[INFRA-1563] move Archiva to a TLPBrett Porter17 years
archiva-MRM-239[INFRA-1563] move Archiva to a TLPBrett Porter17 years
archiva-backend-security[INFRA-1563] move Archiva to a TLPBrett Porter17 years
 
TagDownloadAuthorAge
archiva-2.2.10archiva-2.2.10.tar.gz  archiva-2.2.10.zip  Olivier Lamy22 months
archiva-2.2.9archiva-2.2.9.tar.gz  archiva-2.2.9.zip  Olivier Lamy2 years
archiva-2.2.8archiva-2.2.8.tar.gz  archiva-2.2.8.zip  Olivier Lamy3 years
archiva-2.2.7archiva-2.2.7.tar.gz  archiva-2.2.7.zip  Martin Stockhammer3 years
archiva-2.2.6archiva-2.2.6.tar.gz  archiva-2.2.6.zip  Martin Stockhammer3 years
archiva-2.2.5archiva-2.2.5.tar.gz  archiva-2.2.5.zip  Martin Stockhammer5 years
archiva-2.2.4archiva-2.2.4.tar.gz  archiva-2.2.4.zip  Martin Stockhammer6 years
archiva-2.2.3archiva-2.2.3.tar.gz  archiva-2.2.3.zip  Martin Stockhammer8 years
archiva-2.2.2archiva-2.2.2.tar.gz  archiva-2.2.2.zip  Martin Stockhammer8 years
without_jdoarchiva-without_jdo.tar.gz  archiva-without_jdo.zip  Martin Stockhammer8 years
archiva-2.2.1archiva-2.2.1.tar.gz  archiva-2.2.1.zip  olivier lamy9 years
archiva-2.2.0archiva-2.2.0.tar.gz  archiva-2.2.0.zip  Olivier Lamy10 years
archiva-2.1.1archiva-2.1.1.tar.gz  archiva-2.1.1.zip  Olivier Lamy10 years
archiva-2.1.0archiva-2.1.0.tar.gz  archiva-2.1.0.zip  Olivier Lamy11 years
archiva-1.3.9archiva-1.3.9.tar.gz  archiva-1.3.9.zip  Brett Porter11 years
archiva-1.3.8archiva-1.3.8.tar.gz  archiva-1.3.8.zip  Brett Porter11 years
archiva-1.3.7archiva-1.3.7.tar.gz  archiva-1.3.7.zip  Brett Porter11 years
archiva-2.0.1archiva-2.0.1.tar.gz  archiva-2.0.1.zip  Olivier Lamy11 years
archiva-parent-12archiva-parent-12.tar.gz  archiva-parent-12.zip  Olivier Lamy11 years
archiva-2.0.0archiva-2.0.0.tar.gz  archiva-2.0.0.zip  Olivier Lamy11 years
archiva-2.0.0-RC3archiva-2.0.0-RC3.tar.gz  archiva-2.0.0-RC3.zip  Olivier Lamy11 years
archiva-2.0.0-RC2archiva-2.0.0-RC2.tar.gz  archiva-2.0.0-RC2.zip  Olivier Lamy11 years
archiva-2.0.0-RC1archiva-2.0.0-RC1.tar.gz  archiva-2.0.0-RC1.zip  Olivier Lamy11 years
redback-2.2archiva-redback-2.2.tar.gz  archiva-redback-2.2.zip  Olivier Lamy11 years
archiva-parent-11archiva-parent-11.tar.gz  archiva-parent-11.zip  Olivier Lamy11 years
archiva-1.4-M4archiva-1.4-M4.tar.gz  archiva-1.4-M4.zip  Olivier Lamy12 years
redback-2.1archiva-redback-2.1.tar.gz  archiva-redback-2.1.zip  Olivier Lamy12 years
archiva-parent-10archiva-parent-10.tar.gz  archiva-parent-10.zip  Olivier Lamy12 years
archiva-1.3.6archiva-1.3.6.tar.gz  archiva-1.3.6.zip  Brett Porter12 years
archiva-1.4-M3archiva-1.4-M3.tar.gz  archiva-1.4-M3.zip  Olivier Lamy12 years
redback-2.0archiva-redback-2.0.tar.gz  archiva-redback-2.0.zip  Olivier Lamy12 years
archiva-parent-9archiva-parent-9.tar.gz  archiva-parent-9.zip  Olivier Lamy12 years
archiva-1.4-M2archiva-1.4-M2.tar.gz  archiva-1.4-M2.zip  Olivier Lamy13 years
archiva-parent-8archiva-parent-8.tar.gz  archiva-parent-8.zip  Olivier Lamy13 years
archiva-1.4-M1archiva-1.4-M1.tar.gz  archiva-1.4-M1.zip  Olivier Lamy13 years
archiva-parent-7archiva-parent-7.tar.gz  archiva-parent-7.zip  Olivier Lamy13 years
archiva-1.3.5archiva-1.3.5.tar.gz  archiva-1.3.5.zip  Maria Odea B. Ching14 years
archiva-1.3.4archiva-1.3.4.tar.gz  archiva-1.3.4.zip  Brett Porter14 years
archiva-1.3.3archiva-1.3.3.tar.gz  archiva-1.3.3.zip  Brett Porter14 years
archiva-1.3.2archiva-1.3.2.tar.gz  archiva-1.3.2.zip  Maria Odea B. Ching14 years
archiva-1.3.1archiva-1.3.1.tar.gz  archiva-1.3.1.zip  Jevica Arianne B. Zurbano15 years
archiva-parent-6archiva-parent-6.tar.gz  archiva-parent-6.zip  Jevica Arianne B. Zurbano15 years
archiva-1.3archiva-1.3.tar.gz  archiva-1.3.zip  Brett Porter15 years
archiva-parent-5archiva-parent-5.tar.gz  archiva-parent-5.zip  Maria Odea B. Ching15 years
archiva-parent-4archiva-parent-4.tar.gz  archiva-parent-4.zip  Maria Odea B. Ching15 years
archiva-1.2.2archiva-1.2.2.tar.gz  archiva-1.2.2.zip  Maria Odea B. Ching15 years
archiva-1.2.1archiva-1.2.1.tar.gz  archiva-1.2.1.zip  Maria Odea B. Ching16 years
archiva-1.1.4archiva-1.1.4.tar.gz  archiva-1.1.4.zip  Maria Odea B. Ching16 years
archiva-1.2archiva-1.2.tar.gz  archiva-1.2.zip  Maria Odea B. Ching16 years
archiva-1.2-M1archiva-1.2-M1.tar.gz  archiva-1.2-M1.zip  Maria Odea B. Ching16 years
archiva-1.1.3archiva-1.1.3.tar.gz  archiva-1.1.3.zip  Brett Porter16 years
archiva-1.1.2archiva-1.1.2.tar.gz  archiva-1.1.2.zip  Maria Odea B. Ching16 years
archiva-1.1.1archiva-1.1.1.tar.gz  archiva-1.1.1.zip  Brett Porter16 years
archiva-1.1archiva-1.1.tar.gz  archiva-1.1.zip  Maria Odea B. Ching17 years
archiva-r676265archiva-r676265.tar.gz  archiva-r676265.zip  Maria Odea B. Ching17 years
archiva-parent-3archiva-parent-3.tar.gz  archiva-parent-3.zip  Brett Porter17 years
archiva-parent-2archiva-parent-2.tar.gz  archiva-parent-2.zip  James William Dumay17 years
archiva-1.0.2archiva-1.0.2.tar.gz  archiva-1.0.2.zip  Brett Porter17 years
1.0-beta-1archiva-1.0-beta-1.tar.gz  archiva-1.0-beta-1.zip  Brett Porter17 years
archiva-0.9-alpha-1archiva-0.9-alpha-1.tar.gz  archiva-0.9-alpha-1.zip  Brett Porter17 years
archiva-0.9-alpha-2archiva-0.9-alpha-2.tar.gz  archiva-0.9-alpha-2.zip  Brett Porter17 years
archiva-1.0archiva-1.0.tar.gz  archiva-1.0.zip  Brett Porter17 years
archiva-1.0-alpha-1archiva-1.0-alpha-1.tar.gz  archiva-1.0-alpha-1.zip  Brett Porter17 years
archiva-1.0-alpha-2archiva-1.0-alpha-2.tar.gz  archiva-1.0-alpha-2.zip  Brett Porter17 years
archiva-1.0-beta-1archiva-1.0-beta-1.tar.gz  archiva-1.0-beta-1.zip  Brett Porter17 years
archiva-1.0-beta-2archiva-1.0-beta-2.tar.gz  archiva-1.0-beta-2.zip  Brett Porter17 years
archiva-1.0-beta-3archiva-1.0-beta-3.tar.gz  archiva-1.0-beta-3.zip  Brett Porter17 years
archiva-1.0-beta-4archiva-1.0-beta-4.tar.gz  archiva-1.0-beta-4.zip  Brett Porter17 years
archiva-1.0.1archiva-1.0.1.tar.gz  archiva-1.0.1.zip  Brett Porter17 years
archiva-parent-1.0-alpha-2archiva-parent-1.0-alpha-2.tar.gz  archiva-parent-1.0-alpha-2.zip  Brett Porter17 years
tion> Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/core/application.php
blob: dfc4fc38c7d3fbcdb2a20585c49f2736612b9ee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php
/**
 * @author Bernhard Posselt <dev@bernhard-posselt.com>
 * @author Lukas Reschke <lukas@owncloud.com>
 * @author Morris Jobke <hey@morrisjobke.de>
 * @author Roeland Jago Douma <rullzer@owncloud.com>
 * @author Thomas Müller <thomas.mueller@tmit.eu>
 * @author Victor Dubiniuk <dubiniuk@owncloud.com>
 *
 * @copyright Copyright (c) 2015, ownCloud, Inc.
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */

namespace OC\Core;

use OC\AppFramework\Utility\SimpleContainer;
use OC\AppFramework\Utility\TimeFactory;
use \OCP\AppFramework\App;
use OC\Core\LostPassword\Controller\LostController;
use OC\Core\User\UserController;
use OC\Core\Avatar\AvatarController;
use \OCP\Util;

/**
 * Class Application
 *
 * @package OC\Core
 */
class Application extends App {

	/**
	 * @param array $urlParams
	 */
	public function __construct(array $urlParams=array()){
		parent::__construct('core', $urlParams);

		$container = $this->getContainer();

		/**
		 * Controllers
		 */
		$container->registerService('LostController', function(SimpleContainer $c) {
			return new LostController(
				$c->query('AppName'),
				$c->query('Request'),
				$c->query('URLGenerator'),
				$c->query('UserManager'),
				$c->query('Defaults'),
				$c->query('L10N'),
				$c->query('Config'),
				$c->query('SecureRandom'),
				$c->query('DefaultEmailAddress'),
				$c->query('IsEncryptionEnabled'),
				$c->query('Mailer'),
				$c->query('TimeFactory')
			);
		});
		$container->registerService('UserController', function(SimpleContainer $c) {
			return new UserController(
				$c->query('AppName'),
				$c->query('Request'),
				$c->query('UserManager'),
				$c->query('Defaults')
			);
		});
		$container->registerService('AvatarController', function(SimpleContainer $c) {
			return new AvatarController(
				$c->query('AppName'),
				$c->query('Request'),
				$c->query('AvatarManager'),
				$c->query('Cache'),
				$c->query('L10N'),
				$c->query('UserManager'),
				$c->query('UserSession'),
				$c->query('UserFolder'),
				$c->query('Logger')
			);
		});

		/**
		 * Core class wrappers
		 */
		$container->registerService('IsEncryptionEnabled', function(SimpleContainer $c) {
			return $c->query('ServerContainer')->getEncryptionManager()->isEnabled();
		});
		$container->registerService('URLGenerator', function(SimpleContainer $c) {
			return $c->query('ServerContainer')->getURLGenerator();
		});
		$container->registerService('UserManager', function(SimpleContainer $c) {
			return $c->query('ServerContainer')->getUserManager();
		});
		$container->registerService('Config', function(SimpleContainer $c) {
			return $c->query('ServerContainer')->getConfig();
		});
		$container->registerService('L10N', function(SimpleContainer $c) {
			return $c->query('ServerContainer')->getL10N('core');
		});
		$container->registerService('SecureRandom', function(SimpleContainer $c) {
			return $c->query('ServerContainer')->getSecureRandom();
		});
		$container->registerService('AvatarManager', function(SimpleContainer $c) {
			return $c->query('ServerContainer')->getAvatarManager();
		});
		$container->registerService('UserSession', function(SimpleContainer $c) {
			return $c->query('ServerContainer')->getUserSession();
		});
		$container->registerService('Cache', function(SimpleContainer $c) {
			return $c->query('ServerContainer')->getCache();
		});
		$container->registerService('UserFolder', function(SimpleContainer $c) {
			return $c->query('ServerContainer')->getUserFolder();
		});
		$container->registerService('Defaults', function() {
			return new \OC_Defaults;
		});
		$container->registerService('Mailer', function(SimpleContainer $c) {
			return $c->query('ServerContainer')->getMailer();
		});
		$container->registerService('Logger', function(SimpleContainer $c) {
			return $c->query('ServerContainer')->getLogger();
		});
		$container->registerService('TimeFactory', function(SimpleContainer $c) {
			return new TimeFactory();
		});
		$container->registerService('DefaultEmailAddress', function() {
			return Util::getDefaultEmailAddress('lostpassword-noreply');
		});
	}

}