001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.upgrade.v7_0_0;
016    
017    import com.liferay.portal.kernel.upgrade.RenameUpgradePortalPreferences;
018    import com.liferay.portal.kernel.util.PropsKeys;
019    
020    import java.util.HashMap;
021    import java.util.Map;
022    
023    /**
024     * @author Eduardo Garcia
025     */
026    public class UpgradeEmailNotificationPreferences
027            extends RenameUpgradePortalPreferences {
028    
029            public UpgradeEmailNotificationPreferences() {
030                    _preferenceNamesMap.put(
031                            PropsKeys.ADMIN_EMAIL_PASSWORD_SENT_BODY,
032                            "adminEmailPasswordSentBody");
033                    _preferenceNamesMap.put(
034                            PropsKeys.ADMIN_EMAIL_PASSWORD_SENT_SUBJECT,
035                            "adminEmailPasswordSentSubject");
036                    _preferenceNamesMap.put(
037                            PropsKeys.ADMIN_EMAIL_PASSWORD_RESET_BODY,
038                            "adminEmailPasswordResetBody");
039                    _preferenceNamesMap.put(
040                            PropsKeys.ADMIN_EMAIL_PASSWORD_RESET_SUBJECT,
041                            "adminEmailPasswordResetSubject");
042                    _preferenceNamesMap.put(
043                            PropsKeys.ADMIN_EMAIL_USER_ADDED_BODY, "adminEmailUserAddedBody");
044                    _preferenceNamesMap.put(
045                            PropsKeys.ADMIN_EMAIL_USER_ADDED_NO_PASSWORD_BODY,
046                            "adminEmailUserAddedNoPasswordBody");
047                    _preferenceNamesMap.put(
048                            PropsKeys.ADMIN_EMAIL_USER_ADDED_SUBJECT,
049                            "adminEmailUserAddedSubject");
050                    _preferenceNamesMap.put(
051                            PropsKeys.ADMIN_EMAIL_VERIFICATION_BODY,
052                            "adminEmailVerificationBody");
053                    _preferenceNamesMap.put(
054                            PropsKeys.ADMIN_EMAIL_VERIFICATION_SUBJECT,
055                            "adminEmailVerificationSubject");
056            }
057    
058            @Override
059            protected Map<String, String> getPreferenceNamesMap() {
060                    return _preferenceNamesMap;
061            }
062    
063            private final Map<String, String> _preferenceNamesMap = new HashMap<>();
064    
065    }