From 0bb15e835ce2c4991d36b100d36c1f12e4a5ec56 Mon Sep 17 00:00:00 2001 From: Krzysztof Golebiowski Date: Tue, 21 Jun 2022 22:34:40 +0200 Subject: [PATCH] Removed upgrade verification step which fails to compile as it references portal-impl --- .../CASCompanySettingsVerifyProcess.java | 116 ------------------ 1 file changed, 116 deletions(-) delete mode 100644 modules/portal-security-sso-cas-impl/src/main/java/com/liferay/portal/security/sso/cas/internal/verify/CASCompanySettingsVerifyProcess.java diff --git a/modules/portal-security-sso-cas-impl/src/main/java/com/liferay/portal/security/sso/cas/internal/verify/CASCompanySettingsVerifyProcess.java b/modules/portal-security-sso-cas-impl/src/main/java/com/liferay/portal/security/sso/cas/internal/verify/CASCompanySettingsVerifyProcess.java deleted file mode 100644 index 67b65db..0000000 --- a/modules/portal-security-sso-cas-impl/src/main/java/com/liferay/portal/security/sso/cas/internal/verify/CASCompanySettingsVerifyProcess.java +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library 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 Lesser General Public License for more - * details. - */ - -package com.liferay.portal.security.sso.cas.internal.verify; - -import com.liferay.portal.kernel.service.CompanyLocalService; -import com.liferay.portal.kernel.settings.SettingsFactory; -import com.liferay.portal.kernel.util.SetUtil; -import com.liferay.portal.security.sso.cas.constants.CASConfigurationKeys; -import com.liferay.portal.security.sso.cas.constants.CASConstants; -import com.liferay.portal.security.sso.cas.constants.LegacyCASPropsKeys; -import com.liferay.portal.verify.BaseCompanySettingsVerifyProcess; -import com.liferay.portal.verify.VerifyProcess; - -import java.util.Set; - -import org.osgi.service.component.annotations.Component; -import org.osgi.service.component.annotations.Reference; - -/** - * @author Brian Greenwald - */ -@Component( - immediate = true, - property = "verify.process.name=com.liferay.portal.security.sso.cas", - service = VerifyProcess.class -) -public class CASCompanySettingsVerifyProcess - extends BaseCompanySettingsVerifyProcess { - - @Override - protected CompanyLocalService getCompanyLocalService() { - return _companyLocalService; - } - - @Override - protected Set getLegacyPropertyKeys() { - return SetUtil.fromArray(LegacyCASPropsKeys.CAS_KEYS); - } - - @Override - protected String[][] getRenamePropertyKeysArray() { - return new String[][] { - { - LegacyCASPropsKeys.CAS_AUTH_ENABLED, - CASConfigurationKeys.AUTH_ENABLED - }, - { - LegacyCASPropsKeys.CAS_IMPORT_FROM_LDAP, - CASConfigurationKeys.IMPORT_FROM_LDAP - }, - {LegacyCASPropsKeys.CAS_LOGIN_URL, CASConfigurationKeys.LOGIN_URL}, - { - LegacyCASPropsKeys.CAS_LOGOUT_ON_SESSION_EXPIRATION, - CASConfigurationKeys.LOGOUT_ON_SESSION_EXPIRATION - }, - { - LegacyCASPropsKeys.CAS_LOGOUT_URL, - CASConfigurationKeys.LOGOUT_URL - }, - { - LegacyCASPropsKeys.CAS_NO_SUCH_USER_REDIRECT_URL, - CASConfigurationKeys.NO_SUCH_USER_REDIRECT_URL - }, - { - LegacyCASPropsKeys.CAS_SERVER_NAME, - CASConfigurationKeys.SERVER_NAME - }, - { - LegacyCASPropsKeys.CAS_SERVER_URL, - CASConfigurationKeys.SERVER_URL - }, - { - LegacyCASPropsKeys.CAS_SERVICE_URL, - CASConfigurationKeys.SERVICE_URL - } - }; - } - - @Override - protected SettingsFactory getSettingsFactory() { - return _settingsFactory; - } - - @Override - protected String getSettingsId() { - return CASConstants.SERVICE_NAME; - } - - @Reference(unbind = "-") - protected void setCompanyLocalService( - CompanyLocalService companyLocalService) { - - _companyLocalService = companyLocalService; - } - - @Reference(unbind = "-") - protected void setSettingsFactory(SettingsFactory settingsFactory) { - _settingsFactory = settingsFactory; - } - - private CompanyLocalService _companyLocalService; - private SettingsFactory _settingsFactory; - -} \ No newline at end of file