001
014
015 package com.liferay.portlet.social.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class SocialRequestInterpreterLocalServiceUtil {
035
040
041
046 public static java.lang.String getBeanIdentifier() {
047 return getService().getBeanIdentifier();
048 }
049
050
055 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056 getService().setBeanIdentifier(beanIdentifier);
057 }
058
059 public static void addRequestInterpreter(
060 com.liferay.portlet.social.model.SocialRequestInterpreter requestInterpreter) {
061 getService().addRequestInterpreter(requestInterpreter);
062 }
063
064 public static void deleteRequestInterpreter(
065 com.liferay.portlet.social.model.SocialRequestInterpreter requestInterpreter) {
066 getService().deleteRequestInterpreter(requestInterpreter);
067 }
068
069 public static com.liferay.portlet.social.model.SocialRequestFeedEntry interpret(
070 com.liferay.portlet.social.model.SocialRequest request,
071 com.liferay.portal.theme.ThemeDisplay themeDisplay) {
072 return getService().interpret(request, themeDisplay);
073 }
074
075 public static void processConfirmation(
076 com.liferay.portlet.social.model.SocialRequest request,
077 com.liferay.portal.theme.ThemeDisplay themeDisplay) {
078 getService().processConfirmation(request, themeDisplay);
079 }
080
081 public static void processRejection(
082 com.liferay.portlet.social.model.SocialRequest request,
083 com.liferay.portal.theme.ThemeDisplay themeDisplay) {
084 getService().processRejection(request, themeDisplay);
085 }
086
087 public static SocialRequestInterpreterLocalService getService() {
088 if (_service == null) {
089 _service = (SocialRequestInterpreterLocalService)PortalBeanLocatorUtil.locate(SocialRequestInterpreterLocalService.class.getName());
090
091 ReferenceRegistry.registerReference(SocialRequestInterpreterLocalServiceUtil.class,
092 "_service");
093 MethodCache.remove(SocialRequestInterpreterLocalService.class);
094 }
095
096 return _service;
097 }
098
099 public void setService(SocialRequestInterpreterLocalService service) {
100 MethodCache.remove(SocialRequestInterpreterLocalService.class);
101
102 _service = service;
103
104 ReferenceRegistry.registerReference(SocialRequestInterpreterLocalServiceUtil.class,
105 "_service");
106 MethodCache.remove(SocialRequestInterpreterLocalService.class);
107 }
108
109 private static SocialRequestInterpreterLocalService _service;
110 }