1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.social.util;
16  
17  import com.liferay.portal.theme.ThemeDisplay;
18  import com.liferay.portlet.social.model.BaseSocialRequestInterpreter;
19  import com.liferay.portlet.social.model.SocialRequest;
20  import com.liferay.portlet.social.model.SocialRequestFeedEntry;
21  
22  /**
23   * <a href="PortalRequestInterpreter.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   */
27  public class PortalRequestInterpreter extends BaseSocialRequestInterpreter {
28  
29      public String[] getClassNames() {
30          return _CLASS_NAMES;
31      }
32  
33      protected SocialRequestFeedEntry doInterpret(
34              SocialRequest request, ThemeDisplay themeDisplay)
35          throws Exception {
36  
37          return null;
38      }
39  
40      protected boolean doProcessConfirmation(
41          SocialRequest request, ThemeDisplay themeDisplay) {
42  
43          return true;
44      }
45  
46      private static final String[] _CLASS_NAMES = new String[] {
47          PortalRequestInterpreter.class.getName()
48      };
49  
50  }