1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.social.service.base;
24  
25  import com.liferay.counter.service.CounterLocalService;
26  import com.liferay.counter.service.CounterService;
27  
28  import com.liferay.portal.SystemException;
29  import com.liferay.portal.kernel.annotation.BeanReference;
30  import com.liferay.portal.kernel.dao.db.DB;
31  import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
32  import com.liferay.portal.service.ResourceLocalService;
33  import com.liferay.portal.service.ResourceService;
34  import com.liferay.portal.service.UserLocalService;
35  import com.liferay.portal.service.UserService;
36  import com.liferay.portal.service.persistence.ResourceFinder;
37  import com.liferay.portal.service.persistence.ResourcePersistence;
38  import com.liferay.portal.service.persistence.UserFinder;
39  import com.liferay.portal.service.persistence.UserPersistence;
40  
41  import com.liferay.portlet.social.service.SocialActivityInterpreterLocalService;
42  import com.liferay.portlet.social.service.SocialActivityLocalService;
43  import com.liferay.portlet.social.service.SocialRelationLocalService;
44  import com.liferay.portlet.social.service.SocialRequestInterpreterLocalService;
45  import com.liferay.portlet.social.service.SocialRequestLocalService;
46  import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
47  import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
48  import com.liferay.portlet.social.service.persistence.SocialRelationPersistence;
49  import com.liferay.portlet.social.service.persistence.SocialRequestPersistence;
50  
51  /**
52   * <a href="SocialActivityInterpreterLocalServiceBaseImpl.java.html"><b><i>View
53   * Source</i></b></a>
54   *
55   * @author Brian Wing Shun Chan
56   */
57  public abstract class SocialActivityInterpreterLocalServiceBaseImpl
58      implements SocialActivityInterpreterLocalService {
59      public SocialActivityLocalService getSocialActivityLocalService() {
60          return socialActivityLocalService;
61      }
62  
63      public void setSocialActivityLocalService(
64          SocialActivityLocalService socialActivityLocalService) {
65          this.socialActivityLocalService = socialActivityLocalService;
66      }
67  
68      public SocialActivityPersistence getSocialActivityPersistence() {
69          return socialActivityPersistence;
70      }
71  
72      public void setSocialActivityPersistence(
73          SocialActivityPersistence socialActivityPersistence) {
74          this.socialActivityPersistence = socialActivityPersistence;
75      }
76  
77      public SocialActivityFinder getSocialActivityFinder() {
78          return socialActivityFinder;
79      }
80  
81      public void setSocialActivityFinder(
82          SocialActivityFinder socialActivityFinder) {
83          this.socialActivityFinder = socialActivityFinder;
84      }
85  
86      public SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
87          return socialActivityInterpreterLocalService;
88      }
89  
90      public void setSocialActivityInterpreterLocalService(
91          SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
92          this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
93      }
94  
95      public SocialRelationLocalService getSocialRelationLocalService() {
96          return socialRelationLocalService;
97      }
98  
99      public void setSocialRelationLocalService(
100         SocialRelationLocalService socialRelationLocalService) {
101         this.socialRelationLocalService = socialRelationLocalService;
102     }
103 
104     public SocialRelationPersistence getSocialRelationPersistence() {
105         return socialRelationPersistence;
106     }
107 
108     public void setSocialRelationPersistence(
109         SocialRelationPersistence socialRelationPersistence) {
110         this.socialRelationPersistence = socialRelationPersistence;
111     }
112 
113     public SocialRequestLocalService getSocialRequestLocalService() {
114         return socialRequestLocalService;
115     }
116 
117     public void setSocialRequestLocalService(
118         SocialRequestLocalService socialRequestLocalService) {
119         this.socialRequestLocalService = socialRequestLocalService;
120     }
121 
122     public SocialRequestPersistence getSocialRequestPersistence() {
123         return socialRequestPersistence;
124     }
125 
126     public void setSocialRequestPersistence(
127         SocialRequestPersistence socialRequestPersistence) {
128         this.socialRequestPersistence = socialRequestPersistence;
129     }
130 
131     public SocialRequestInterpreterLocalService getSocialRequestInterpreterLocalService() {
132         return socialRequestInterpreterLocalService;
133     }
134 
135     public void setSocialRequestInterpreterLocalService(
136         SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
137         this.socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
138     }
139 
140     public CounterLocalService getCounterLocalService() {
141         return counterLocalService;
142     }
143 
144     public void setCounterLocalService(CounterLocalService counterLocalService) {
145         this.counterLocalService = counterLocalService;
146     }
147 
148     public CounterService getCounterService() {
149         return counterService;
150     }
151 
152     public void setCounterService(CounterService counterService) {
153         this.counterService = counterService;
154     }
155 
156     public ResourceLocalService getResourceLocalService() {
157         return resourceLocalService;
158     }
159 
160     public void setResourceLocalService(
161         ResourceLocalService resourceLocalService) {
162         this.resourceLocalService = resourceLocalService;
163     }
164 
165     public ResourceService getResourceService() {
166         return resourceService;
167     }
168 
169     public void setResourceService(ResourceService resourceService) {
170         this.resourceService = resourceService;
171     }
172 
173     public ResourcePersistence getResourcePersistence() {
174         return resourcePersistence;
175     }
176 
177     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
178         this.resourcePersistence = resourcePersistence;
179     }
180 
181     public ResourceFinder getResourceFinder() {
182         return resourceFinder;
183     }
184 
185     public void setResourceFinder(ResourceFinder resourceFinder) {
186         this.resourceFinder = resourceFinder;
187     }
188 
189     public UserLocalService getUserLocalService() {
190         return userLocalService;
191     }
192 
193     public void setUserLocalService(UserLocalService userLocalService) {
194         this.userLocalService = userLocalService;
195     }
196 
197     public UserService getUserService() {
198         return userService;
199     }
200 
201     public void setUserService(UserService userService) {
202         this.userService = userService;
203     }
204 
205     public UserPersistence getUserPersistence() {
206         return userPersistence;
207     }
208 
209     public void setUserPersistence(UserPersistence userPersistence) {
210         this.userPersistence = userPersistence;
211     }
212 
213     public UserFinder getUserFinder() {
214         return userFinder;
215     }
216 
217     public void setUserFinder(UserFinder userFinder) {
218         this.userFinder = userFinder;
219     }
220 
221     protected void runSQL(String sql) throws SystemException {
222         try {
223             DB db = DBFactoryUtil.getDB();
224 
225             db.runSQL(sql);
226         }
227         catch (Exception e) {
228             throw new SystemException(e);
229         }
230     }
231 
232     @BeanReference(name = "com.liferay.portlet.social.service.SocialActivityLocalService")
233     protected SocialActivityLocalService socialActivityLocalService;
234     @BeanReference(name = "com.liferay.portlet.social.service.persistence.SocialActivityPersistence")
235     protected SocialActivityPersistence socialActivityPersistence;
236     @BeanReference(name = "com.liferay.portlet.social.service.persistence.SocialActivityFinder")
237     protected SocialActivityFinder socialActivityFinder;
238     @BeanReference(name = "com.liferay.portlet.social.service.SocialActivityInterpreterLocalService")
239     protected SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
240     @BeanReference(name = "com.liferay.portlet.social.service.SocialRelationLocalService")
241     protected SocialRelationLocalService socialRelationLocalService;
242     @BeanReference(name = "com.liferay.portlet.social.service.persistence.SocialRelationPersistence")
243     protected SocialRelationPersistence socialRelationPersistence;
244     @BeanReference(name = "com.liferay.portlet.social.service.SocialRequestLocalService")
245     protected SocialRequestLocalService socialRequestLocalService;
246     @BeanReference(name = "com.liferay.portlet.social.service.persistence.SocialRequestPersistence")
247     protected SocialRequestPersistence socialRequestPersistence;
248     @BeanReference(name = "com.liferay.portlet.social.service.SocialRequestInterpreterLocalService")
249     protected SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
250     @BeanReference(name = "com.liferay.counter.service.CounterLocalService")
251     protected CounterLocalService counterLocalService;
252     @BeanReference(name = "com.liferay.counter.service.CounterService")
253     protected CounterService counterService;
254     @BeanReference(name = "com.liferay.portal.service.ResourceLocalService")
255     protected ResourceLocalService resourceLocalService;
256     @BeanReference(name = "com.liferay.portal.service.ResourceService")
257     protected ResourceService resourceService;
258     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence")
259     protected ResourcePersistence resourcePersistence;
260     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder")
261     protected ResourceFinder resourceFinder;
262     @BeanReference(name = "com.liferay.portal.service.UserLocalService")
263     protected UserLocalService userLocalService;
264     @BeanReference(name = "com.liferay.portal.service.UserService")
265     protected UserService userService;
266     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence")
267     protected UserPersistence userPersistence;
268     @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder")
269     protected UserFinder userFinder;
270 }