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.dao.orm.DynamicQuery;
31  import com.liferay.portal.service.ResourceLocalService;
32  import com.liferay.portal.service.ResourceService;
33  import com.liferay.portal.service.UserLocalService;
34  import com.liferay.portal.service.UserService;
35  import com.liferay.portal.service.persistence.ResourceFinder;
36  import com.liferay.portal.service.persistence.ResourcePersistence;
37  import com.liferay.portal.service.persistence.UserFinder;
38  import com.liferay.portal.service.persistence.UserPersistence;
39  
40  import com.liferay.portlet.documentlibrary.model.DLFileShortcut;
41  import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
42  import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
43  import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
44  import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
45  import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
46  import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
47  import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
48  import com.liferay.portlet.documentlibrary.service.DLFolderService;
49  import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder;
50  import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
51  import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
52  import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
53  import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
54  import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder;
55  import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
56  import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
57  import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
58  
59  import java.util.List;
60  
61  /**
62   * <a href="DLFileShortcutLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
63   *
64   * @author Brian Wing Shun Chan
65   *
66   */
67  public abstract class DLFileShortcutLocalServiceBaseImpl
68      implements DLFileShortcutLocalService {
69      public DLFileShortcut addDLFileShortcut(DLFileShortcut dlFileShortcut)
70          throws SystemException {
71          dlFileShortcut.setNew(true);
72  
73          return dlFileShortcutPersistence.update(dlFileShortcut, false);
74      }
75  
76      public DLFileShortcut createDLFileShortcut(long fileShortcutId) {
77          return dlFileShortcutPersistence.create(fileShortcutId);
78      }
79  
80      public void deleteDLFileShortcut(long fileShortcutId)
81          throws PortalException, SystemException {
82          dlFileShortcutPersistence.remove(fileShortcutId);
83      }
84  
85      public void deleteDLFileShortcut(DLFileShortcut dlFileShortcut)
86          throws SystemException {
87          dlFileShortcutPersistence.remove(dlFileShortcut);
88      }
89  
90      public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
91          throws SystemException {
92          return dlFileShortcutPersistence.findWithDynamicQuery(dynamicQuery);
93      }
94  
95      public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
96          int end) throws SystemException {
97          return dlFileShortcutPersistence.findWithDynamicQuery(dynamicQuery,
98              start, end);
99      }
100 
101     public DLFileShortcut getDLFileShortcut(long fileShortcutId)
102         throws PortalException, SystemException {
103         return dlFileShortcutPersistence.findByPrimaryKey(fileShortcutId);
104     }
105 
106     public List<DLFileShortcut> getDLFileShortcuts(int start, int end)
107         throws SystemException {
108         return dlFileShortcutPersistence.findAll(start, end);
109     }
110 
111     public int getDLFileShortcutsCount() throws SystemException {
112         return dlFileShortcutPersistence.countAll();
113     }
114 
115     public DLFileShortcut updateDLFileShortcut(DLFileShortcut dlFileShortcut)
116         throws SystemException {
117         dlFileShortcut.setNew(false);
118 
119         return dlFileShortcutPersistence.update(dlFileShortcut, true);
120     }
121 
122     public DLFileEntryLocalService getDLFileEntryLocalService() {
123         return dlFileEntryLocalService;
124     }
125 
126     public void setDLFileEntryLocalService(
127         DLFileEntryLocalService dlFileEntryLocalService) {
128         this.dlFileEntryLocalService = dlFileEntryLocalService;
129     }
130 
131     public DLFileEntryService getDLFileEntryService() {
132         return dlFileEntryService;
133     }
134 
135     public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
136         this.dlFileEntryService = dlFileEntryService;
137     }
138 
139     public DLFileEntryPersistence getDLFileEntryPersistence() {
140         return dlFileEntryPersistence;
141     }
142 
143     public void setDLFileEntryPersistence(
144         DLFileEntryPersistence dlFileEntryPersistence) {
145         this.dlFileEntryPersistence = dlFileEntryPersistence;
146     }
147 
148     public DLFileEntryFinder getDLFileEntryFinder() {
149         return dlFileEntryFinder;
150     }
151 
152     public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
153         this.dlFileEntryFinder = dlFileEntryFinder;
154     }
155 
156     public DLFileEntryAndShortcutFinder getDLFileEntryAndShortcutFinder() {
157         return dlFileEntryAndShortcutFinder;
158     }
159 
160     public void setDLFileEntryAndShortcutFinder(
161         DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder) {
162         this.dlFileEntryAndShortcutFinder = dlFileEntryAndShortcutFinder;
163     }
164 
165     public DLFileRankLocalService getDLFileRankLocalService() {
166         return dlFileRankLocalService;
167     }
168 
169     public void setDLFileRankLocalService(
170         DLFileRankLocalService dlFileRankLocalService) {
171         this.dlFileRankLocalService = dlFileRankLocalService;
172     }
173 
174     public DLFileRankPersistence getDLFileRankPersistence() {
175         return dlFileRankPersistence;
176     }
177 
178     public void setDLFileRankPersistence(
179         DLFileRankPersistence dlFileRankPersistence) {
180         this.dlFileRankPersistence = dlFileRankPersistence;
181     }
182 
183     public DLFileRankFinder getDLFileRankFinder() {
184         return dlFileRankFinder;
185     }
186 
187     public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
188         this.dlFileRankFinder = dlFileRankFinder;
189     }
190 
191     public DLFileShortcutLocalService getDLFileShortcutLocalService() {
192         return dlFileShortcutLocalService;
193     }
194 
195     public void setDLFileShortcutLocalService(
196         DLFileShortcutLocalService dlFileShortcutLocalService) {
197         this.dlFileShortcutLocalService = dlFileShortcutLocalService;
198     }
199 
200     public DLFileShortcutService getDLFileShortcutService() {
201         return dlFileShortcutService;
202     }
203 
204     public void setDLFileShortcutService(
205         DLFileShortcutService dlFileShortcutService) {
206         this.dlFileShortcutService = dlFileShortcutService;
207     }
208 
209     public DLFileShortcutPersistence getDLFileShortcutPersistence() {
210         return dlFileShortcutPersistence;
211     }
212 
213     public void setDLFileShortcutPersistence(
214         DLFileShortcutPersistence dlFileShortcutPersistence) {
215         this.dlFileShortcutPersistence = dlFileShortcutPersistence;
216     }
217 
218     public DLFileShortcutFinder getDLFileShortcutFinder() {
219         return dlFileShortcutFinder;
220     }
221 
222     public void setDLFileShortcutFinder(
223         DLFileShortcutFinder dlFileShortcutFinder) {
224         this.dlFileShortcutFinder = dlFileShortcutFinder;
225     }
226 
227     public DLFileVersionLocalService getDLFileVersionLocalService() {
228         return dlFileVersionLocalService;
229     }
230 
231     public void setDLFileVersionLocalService(
232         DLFileVersionLocalService dlFileVersionLocalService) {
233         this.dlFileVersionLocalService = dlFileVersionLocalService;
234     }
235 
236     public DLFileVersionPersistence getDLFileVersionPersistence() {
237         return dlFileVersionPersistence;
238     }
239 
240     public void setDLFileVersionPersistence(
241         DLFileVersionPersistence dlFileVersionPersistence) {
242         this.dlFileVersionPersistence = dlFileVersionPersistence;
243     }
244 
245     public DLFolderLocalService getDLFolderLocalService() {
246         return dlFolderLocalService;
247     }
248 
249     public void setDLFolderLocalService(
250         DLFolderLocalService dlFolderLocalService) {
251         this.dlFolderLocalService = dlFolderLocalService;
252     }
253 
254     public DLFolderService getDLFolderService() {
255         return dlFolderService;
256     }
257 
258     public void setDLFolderService(DLFolderService dlFolderService) {
259         this.dlFolderService = dlFolderService;
260     }
261 
262     public DLFolderPersistence getDLFolderPersistence() {
263         return dlFolderPersistence;
264     }
265 
266     public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
267         this.dlFolderPersistence = dlFolderPersistence;
268     }
269 
270     public CounterLocalService getCounterLocalService() {
271         return counterLocalService;
272     }
273 
274     public void setCounterLocalService(CounterLocalService counterLocalService) {
275         this.counterLocalService = counterLocalService;
276     }
277 
278     public CounterService getCounterService() {
279         return counterService;
280     }
281 
282     public void setCounterService(CounterService counterService) {
283         this.counterService = counterService;
284     }
285 
286     public ResourceLocalService getResourceLocalService() {
287         return resourceLocalService;
288     }
289 
290     public void setResourceLocalService(
291         ResourceLocalService resourceLocalService) {
292         this.resourceLocalService = resourceLocalService;
293     }
294 
295     public ResourceService getResourceService() {
296         return resourceService;
297     }
298 
299     public void setResourceService(ResourceService resourceService) {
300         this.resourceService = resourceService;
301     }
302 
303     public ResourcePersistence getResourcePersistence() {
304         return resourcePersistence;
305     }
306 
307     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
308         this.resourcePersistence = resourcePersistence;
309     }
310 
311     public ResourceFinder getResourceFinder() {
312         return resourceFinder;
313     }
314 
315     public void setResourceFinder(ResourceFinder resourceFinder) {
316         this.resourceFinder = resourceFinder;
317     }
318 
319     public UserLocalService getUserLocalService() {
320         return userLocalService;
321     }
322 
323     public void setUserLocalService(UserLocalService userLocalService) {
324         this.userLocalService = userLocalService;
325     }
326 
327     public UserService getUserService() {
328         return userService;
329     }
330 
331     public void setUserService(UserService userService) {
332         this.userService = userService;
333     }
334 
335     public UserPersistence getUserPersistence() {
336         return userPersistence;
337     }
338 
339     public void setUserPersistence(UserPersistence userPersistence) {
340         this.userPersistence = userPersistence;
341     }
342 
343     public UserFinder getUserFinder() {
344         return userFinder;
345     }
346 
347     public void setUserFinder(UserFinder userFinder) {
348         this.userFinder = userFinder;
349     }
350 
351     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService.impl")
352     protected DLFileEntryLocalService dlFileEntryLocalService;
353     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.DLFileEntryService.impl")
354     protected DLFileEntryService dlFileEntryService;
355     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence.impl")
356     protected DLFileEntryPersistence dlFileEntryPersistence;
357     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder.impl")
358     protected DLFileEntryFinder dlFileEntryFinder;
359     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder.impl")
360     protected DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder;
361     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.DLFileRankLocalService.impl")
362     protected DLFileRankLocalService dlFileRankLocalService;
363     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence.impl")
364     protected DLFileRankPersistence dlFileRankPersistence;
365     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder.impl")
366     protected DLFileRankFinder dlFileRankFinder;
367     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService.impl")
368     protected DLFileShortcutLocalService dlFileShortcutLocalService;
369     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.DLFileShortcutService.impl")
370     protected DLFileShortcutService dlFileShortcutService;
371     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence.impl")
372     protected DLFileShortcutPersistence dlFileShortcutPersistence;
373     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder.impl")
374     protected DLFileShortcutFinder dlFileShortcutFinder;
375     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService.impl")
376     protected DLFileVersionLocalService dlFileVersionLocalService;
377     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence.impl")
378     protected DLFileVersionPersistence dlFileVersionPersistence;
379     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.DLFolderLocalService.impl")
380     protected DLFolderLocalService dlFolderLocalService;
381     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.DLFolderService.impl")
382     protected DLFolderService dlFolderService;
383     @javax.annotation.Resource(name = "com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence.impl")
384     protected DLFolderPersistence dlFolderPersistence;
385     @javax.annotation.Resource(name = "com.liferay.counter.service.CounterLocalService.impl")
386     protected CounterLocalService counterLocalService;
387     @javax.annotation.Resource(name = "com.liferay.counter.service.CounterService.impl")
388     protected CounterService counterService;
389     @javax.annotation.Resource(name = "com.liferay.portal.service.ResourceLocalService.impl")
390     protected ResourceLocalService resourceLocalService;
391     @javax.annotation.Resource(name = "com.liferay.portal.service.ResourceService.impl")
392     protected ResourceService resourceService;
393     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
394     protected ResourcePersistence resourcePersistence;
395     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.ResourceFinder.impl")
396     protected ResourceFinder resourceFinder;
397     @javax.annotation.Resource(name = "com.liferay.portal.service.UserLocalService.impl")
398     protected UserLocalService userLocalService;
399     @javax.annotation.Resource(name = "com.liferay.portal.service.UserService.impl")
400     protected UserService userService;
401     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
402     protected UserPersistence userPersistence;
403     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.UserFinder.impl")
404     protected UserFinder userFinder;
405 }