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