001    /**
002     * Copyright (c) 2000-2013 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.mail.util;
016    
017    import com.liferay.mail.model.Filter;
018    import com.liferay.portal.kernel.log.Log;
019    import com.liferay.portal.kernel.log.LogFactoryUtil;
020    
021    import java.util.List;
022    
023    /**
024     * @author Brian Wing Shun Chan
025     */
026    public class DummyHook implements Hook {
027    
028            @Override
029            public void addForward(
030                    long companyId, long userId, List<Filter> filters,
031                    List<String> emailAddresses, boolean leaveCopy) {
032    
033                    if (_log.isDebugEnabled()) {
034                            _log.debug("addForward");
035                    }
036            }
037    
038            @Override
039            public void addUser(
040                    long companyId, long userId, String password, String firstName,
041                    String middleName, String lastName, String emailAddress) {
042    
043                    if (_log.isDebugEnabled()) {
044                            _log.debug("addUser");
045                    }
046            }
047    
048            @Override
049            public void addVacationMessage(
050                    long companyId, long userId, String emailAddress,
051                    String vacationMessage) {
052    
053                    if (_log.isDebugEnabled()) {
054                            _log.debug("addVacationMessage");
055                    }
056            }
057    
058            @Override
059            public void deleteEmailAddress(long companyId, long userId) {
060                    if (_log.isDebugEnabled()) {
061                            _log.debug("deleteEmailAddress");
062                    }
063            }
064    
065            @Override
066            public void deleteUser(long companyId, long userId) {
067                    if (_log.isDebugEnabled()) {
068                            _log.debug("deleteUser");
069                    }
070            }
071    
072            @Override
073            public void updateBlocked(
074                    long companyId, long userId, List<String> blocked) {
075    
076                    if (_log.isDebugEnabled()) {
077                            _log.debug("updateBlocked");
078                    }
079            }
080    
081            @Override
082            public void updateEmailAddress(
083                    long companyId, long userId, String emailAddress) {
084    
085                    if (_log.isDebugEnabled()) {
086                            _log.debug("updateEmailAddress");
087                    }
088            }
089    
090            @Override
091            public void updatePassword(long companyId, long userId, String password) {
092                    if (_log.isDebugEnabled()) {
093                            _log.debug("updatePassword");
094                    }
095            }
096    
097            private static Log _log = LogFactoryUtil.getLog(DummyHook.class);
098    
099    }