1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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.documentlibrary.service.base;
24  
25  import com.liferay.counter.service.CounterLocalService;
26  import com.liferay.counter.service.CounterService;
27  
28  import com.liferay.portal.PortalException;
29  import com.liferay.portal.SystemException;
30  import com.liferay.portal.kernel.annotation.BeanReference;
31  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
32  import com.liferay.portal.service.LayoutLocalService;
33  import com.liferay.portal.service.LayoutService;
34  import com.liferay.portal.service.persistence.LayoutFinder;
35  import com.liferay.portal.service.persistence.LayoutPersistence;
36  
37  import com.liferay.portlet.documentlibrary.model.DLFileRank;
38  import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
39  import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
40  import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
41  import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
42  import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
43  import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
44  import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
45  import com.liferay.portlet.documentlibrary.service.DLFolderService;
46  import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder;
47  import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
48  import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
49  import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
50  import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
51  import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder;
52  import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
53  import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
54  import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
55  
56  import java.util.List;
57  
58  /**
59   * <a href="DLFileRankLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
60   *
61   * @author Brian Wing Shun Chan
62   *
63   */
64  public abstract class DLFileRankLocalServiceBaseImpl
65      implements DLFileRankLocalService {
66      public DLFileRank addDLFileRank(DLFileRank dlFileRank)
67          throws SystemException {
68          dlFileRank.setNew(true);
69  
70          return dlFileRankPersistence.update(dlFileRank, false);
71      }
72  
73      public DLFileRank createDLFileRank(long fileRankId) {
74          return dlFileRankPersistence.create(fileRankId);
75      }
76  
77      public void deleteDLFileRank(long fileRankId)
78          throws PortalException, SystemException {
79          dlFileRankPersistence.remove(fileRankId);
80      }
81  
82      public void deleteDLFileRank(DLFileRank dlFileRank)
83          throws SystemException {
84          dlFileRankPersistence.remove(dlFileRank);
85      }
86  
87      public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
88          throws SystemException {
89          return dlFileRankPersistence.findWithDynamicQuery(dynamicQuery);
90      }
91  
92      public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
93          int end) throws SystemException {
94          return dlFileRankPersistence.findWithDynamicQuery(dynamicQuery, start,
95              end);
96      }
97  
98      public DLFileRank getDLFileRank(long fileRankId)
99          throws PortalException, SystemException {
100         return dlFileRankPersistence.findByPrimaryKey(fileRankId);
101     }
102 
103     public List<DLFileRank> getDLFileRanks(int start, int end)
104         throws SystemException {
105         return dlFileRankPersistence.findAll(start, end);
106     }
107 
108     public int getDLFileRanksCount() throws SystemException {
109         return dlFileRankPersistence.countAll();
110     }
111 
112     public DLFileRank updateDLFileRank(DLFileRank dlFileRank)
113         throws SystemException {
114         dlFileRank.setNew(false);
115 
116         return dlFileRankPersistence.update(dlFileRank, true);
117     }
118 
119     public DLFileEntryLocalService getDLFileEntryLocalService() {
120         return dlFileEntryLocalService;
121     }
122 
123     public void setDLFileEntryLocalService(
124         DLFileEntryLocalService dlFileEntryLocalService) {
125         this.dlFileEntryLocalService = dlFileEntryLocalService;
126     }
127 
128     public DLFileEntryService getDLFileEntryService() {
129         return dlFileEntryService;
130     }
131 
132     public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
133         this.dlFileEntryService = dlFileEntryService;
134     }
135 
136     public DLFileEntryPersistence getDLFileEntryPersistence() {
137         return dlFileEntryPersistence;
138     }
139 
140     public void setDLFileEntryPersistence(
141         DLFileEntryPersistence dlFileEntryPersistence) {
142         this.dlFileEntryPersistence = dlFileEntryPersistence;
143     }
144 
145     public DLFileEntryFinder getDLFileEntryFinder() {
146         return dlFileEntryFinder;
147     }
148 
149     public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
150         this.dlFileEntryFinder = dlFileEntryFinder;
151     }
152 
153     public DLFileEntryAndShortcutFinder getDLFileEntryAndShortcutFinder() {
154         return dlFileEntryAndShortcutFinder;
155     }
156 
157     public void setDLFileEntryAndShortcutFinder(
158         DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder) {
159         this.dlFileEntryAndShortcutFinder = dlFileEntryAndShortcutFinder;
160     }
161 
162     public DLFileRankLocalService getDLFileRankLocalService() {
163         return dlFileRankLocalService;
164     }
165 
166     public void setDLFileRankLocalService(
167         DLFileRankLocalService dlFileRankLocalService) {
168         this.dlFileRankLocalService = dlFileRankLocalService;
169     }
170 
171     public DLFileRankPersistence getDLFileRankPersistence() {
172         return dlFileRankPersistence;
173     }
174 
175     public void setDLFileRankPersistence(
176         DLFileRankPersistence dlFileRankPersistence) {
177         this.dlFileRankPersistence = dlFileRankPersistence;
178     }
179 
180     public DLFileRankFinder getDLFileRankFinder() {
181         return dlFileRankFinder;
182     }
183 
184     public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
185         this.dlFileRankFinder = dlFileRankFinder;
186     }
187 
188     public DLFileShortcutLocalService getDLFileShortcutLocalService() {
189         return dlFileShortcutLocalService;
190     }
191 
192     public void setDLFileShortcutLocalService(
193         DLFileShortcutLocalService dlFileShortcutLocalService) {
194         this.dlFileShortcutLocalService = dlFileShortcutLocalService;
195     }
196 
197     public DLFileShortcutService getDLFileShortcutService() {
198         return dlFileShortcutService;
199     }
200 
201     public void setDLFileShortcutService(
202         DLFileShortcutService dlFileShortcutService) {
203         this.dlFileShortcutService = dlFileShortcutService;
204     }
205 
206     public DLFileShortcutPersistence getDLFileShortcutPersistence() {
207         return dlFileShortcutPersistence;
208     }
209 
210     public void setDLFileShortcutPersistence(
211         DLFileShortcutPersistence dlFileShortcutPersistence) {
212         this.dlFileShortcutPersistence = dlFileShortcutPersistence;
213     }
214 
215     public DLFileShortcutFinder getDLFileShortcutFinder() {
216         return dlFileShortcutFinder;
217     }
218 
219     public void setDLFileShortcutFinder(
220         DLFileShortcutFinder dlFileShortcutFinder) {
221         this.dlFileShortcutFinder = dlFileShortcutFinder;
222     }
223 
224     public DLFileVersionLocalService getDLFileVersionLocalService() {
225         return dlFileVersionLocalService;
226     }
227 
228     public void setDLFileVersionLocalService(
229         DLFileVersionLocalService dlFileVersionLocalService) {
230         this.dlFileVersionLocalService = dlFileVersionLocalService;
231     }
232 
233     public DLFileVersionPersistence getDLFileVersionPersistence() {
234         return dlFileVersionPersistence;
235     }
236 
237     public void setDLFileVersionPersistence(
238         DLFileVersionPersistence dlFileVersionPersistence) {
239         this.dlFileVersionPersistence = dlFileVersionPersistence;
240     }
241 
242     public DLFolderLocalService getDLFolderLocalService() {
243         return dlFolderLocalService;
244     }
245 
246     public void setDLFolderLocalService(
247         DLFolderLocalService dlFolderLocalService) {
248         this.dlFolderLocalService = dlFolderLocalService;
249     }
250 
251     public DLFolderService getDLFolderService() {
252         return dlFolderService;
253     }
254 
255     public void setDLFolderService(DLFolderService dlFolderService) {
256         this.dlFolderService = dlFolderService;
257     }
258 
259     public DLFolderPersistence getDLFolderPersistence() {
260         return dlFolderPersistence;
261     }
262 
263     public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
264         this.dlFolderPersistence = dlFolderPersistence;
265     }
266 
267     public CounterLocalService getCounterLocalService() {
268         return counterLocalService;
269     }
270 
271     public void setCounterLocalService(CounterLocalService counterLocalService) {
272         this.counterLocalService = counterLocalService;
273     }
274 
275     public CounterService getCounterService() {
276         return counterService;
277     }
278 
279     public void setCounterService(CounterService counterService) {
280         this.counterService = counterService;
281     }
282 
283     public LayoutLocalService getLayoutLocalService() {
284         return layoutLocalService;
285     }
286 
287     public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
288         this.layoutLocalService = layoutLocalService;
289     }
290 
291     public LayoutService getLayoutService() {
292         return layoutService;
293     }
294 
295     public void setLayoutService(LayoutService layoutService) {
296         this.layoutService = layoutService;
297     }
298 
299     public LayoutPersistence getLayoutPersistence() {
300         return layoutPersistence;
301     }
302 
303     public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
304         this.layoutPersistence = layoutPersistence;
305     }
306 
307     public LayoutFinder getLayoutFinder() {
308         return layoutFinder;
309     }
310 
311     public void setLayoutFinder(LayoutFinder layoutFinder) {
312         this.layoutFinder = layoutFinder;
313     }
314 
315     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService.impl")
316     protected DLFileEntryLocalService dlFileEntryLocalService;
317     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.DLFileEntryService.impl")
318     protected DLFileEntryService dlFileEntryService;
319     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence.impl")
320     protected DLFileEntryPersistence dlFileEntryPersistence;
321     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder.impl")
322     protected DLFileEntryFinder dlFileEntryFinder;
323     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder.impl")
324     protected DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder;
325     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.DLFileRankLocalService.impl")
326     protected DLFileRankLocalService dlFileRankLocalService;
327     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence.impl")
328     protected DLFileRankPersistence dlFileRankPersistence;
329     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder.impl")
330     protected DLFileRankFinder dlFileRankFinder;
331     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService.impl")
332     protected DLFileShortcutLocalService dlFileShortcutLocalService;
333     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.DLFileShortcutService.impl")
334     protected DLFileShortcutService dlFileShortcutService;
335     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence.impl")
336     protected DLFileShortcutPersistence dlFileShortcutPersistence;
337     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder.impl")
338     protected DLFileShortcutFinder dlFileShortcutFinder;
339     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService.impl")
340     protected DLFileVersionLocalService dlFileVersionLocalService;
341     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence.impl")
342     protected DLFileVersionPersistence dlFileVersionPersistence;
343     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.DLFolderLocalService.impl")
344     protected DLFolderLocalService dlFolderLocalService;
345     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.DLFolderService.impl")
346     protected DLFolderService dlFolderService;
347     @BeanReference(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence.impl")
348     protected DLFolderPersistence dlFolderPersistence;
349     @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
350     protected CounterLocalService counterLocalService;
351     @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
352     protected CounterService counterService;
353     @BeanReference(name = "com.liferay.portal.service.LayoutLocalService.impl")
354     protected LayoutLocalService layoutLocalService;
355     @BeanReference(name = "com.liferay.portal.service.LayoutService.impl")
356     protected LayoutService layoutService;
357     @BeanReference(name = "com.liferay.portal.service.persistence.LayoutPersistence.impl")
358     protected LayoutPersistence layoutPersistence;
359     @BeanReference(name = "com.liferay.portal.service.persistence.LayoutFinder.impl")
360     protected LayoutFinder layoutFinder;
361 }