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.comment;
016    
017    import com.liferay.portal.kernel.comment.CommentManager;
018    import com.liferay.portal.kernel.util.Function;
019    import com.liferay.portal.service.ServiceContext;
020    
021    /**
022     * @author Andr?? de Oliveira
023     */
024    public class DummyCommentManagerImpl implements CommentManager {
025    
026            @Override
027            public void addComment(
028                    long userId, long groupId, String className, long classPK, String body,
029                    ServiceContext serviceContext) {
030            }
031    
032            @Override
033            public long addComment(
034                    long userId, long groupId, String className, long classPK,
035                    String userName, String subject, String body,
036                    Function<String, ServiceContext> serviceContextFunction) {
037    
038                    return 0;
039            }
040    
041            @Override
042            public void addDiscussion(
043                    long userId, long groupId, String className, long classPK,
044                    String userName) {
045            }
046    
047            @Override
048            public void deleteComment(long commentId) {
049            }
050    
051            @Override
052            public void deleteDiscussion(String className, long classPK) {
053            }
054    
055            @Override
056            public int getCommentsCount(String className, long classPK) {
057                    return 0;
058            }
059    
060    }