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.portlet.social.util;
016    
017    import com.liferay.portal.kernel.util.ResourceBundleLoader;
018    import com.liferay.portal.language.LanguageResources;
019    import com.liferay.portal.service.ServiceContext;
020    import com.liferay.portlet.social.model.BaseSocialActivityInterpreter;
021    import com.liferay.portlet.social.model.SocialActivity;
022    import com.liferay.portlet.social.model.SocialActivityFeedEntry;
023    
024    /**
025     * @author Brian Wing Shun Chan
026     */
027    public class PortalActivityInterpreter extends BaseSocialActivityInterpreter {
028    
029            @Override
030            public String[] getClassNames() {
031                    return _CLASS_NAMES;
032            }
033    
034            @Override
035            protected SocialActivityFeedEntry doInterpret(
036                            SocialActivity activity, ServiceContext serviceContext)
037                    throws Exception {
038    
039                    return null;
040            }
041    
042            @Override
043            protected ResourceBundleLoader getResourceBundleLoader() {
044                    return LanguageResources.RESOURCE_BUNDLE_LOADER;
045            }
046    
047            private static final String[] _CLASS_NAMES =
048                    {PortalActivityInterpreter.class.getName()};
049    
050    }