001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.documentlibrary.service.base;
022:
023: import com.liferay.counter.service.CounterLocalService;
024: import com.liferay.counter.service.CounterLocalServiceFactory;
025: import com.liferay.counter.service.CounterService;
026: import com.liferay.counter.service.CounterServiceFactory;
027:
028: import com.liferay.documentlibrary.service.DLLocalService;
029: import com.liferay.documentlibrary.service.DLLocalServiceFactory;
030: import com.liferay.documentlibrary.service.DLService;
031: import com.liferay.documentlibrary.service.DLServiceFactory;
032:
033: import com.liferay.portal.SystemException;
034: import com.liferay.portal.kernel.dao.DynamicQueryInitializer;
035: import com.liferay.portal.service.LayoutLocalService;
036: import com.liferay.portal.service.LayoutLocalServiceFactory;
037: import com.liferay.portal.service.LayoutService;
038: import com.liferay.portal.service.LayoutServiceFactory;
039: import com.liferay.portal.service.ResourceLocalService;
040: import com.liferay.portal.service.ResourceLocalServiceFactory;
041: import com.liferay.portal.service.ResourceService;
042: import com.liferay.portal.service.ResourceServiceFactory;
043: import com.liferay.portal.service.UserLocalService;
044: import com.liferay.portal.service.UserLocalServiceFactory;
045: import com.liferay.portal.service.UserService;
046: import com.liferay.portal.service.UserServiceFactory;
047: import com.liferay.portal.service.WebDAVPropsLocalService;
048: import com.liferay.portal.service.WebDAVPropsLocalServiceFactory;
049: import com.liferay.portal.service.persistence.LayoutFinder;
050: import com.liferay.portal.service.persistence.LayoutFinderUtil;
051: import com.liferay.portal.service.persistence.LayoutPersistence;
052: import com.liferay.portal.service.persistence.LayoutUtil;
053: import com.liferay.portal.service.persistence.ResourceFinder;
054: import com.liferay.portal.service.persistence.ResourceFinderUtil;
055: import com.liferay.portal.service.persistence.ResourcePersistence;
056: import com.liferay.portal.service.persistence.ResourceUtil;
057: import com.liferay.portal.service.persistence.UserFinder;
058: import com.liferay.portal.service.persistence.UserFinderUtil;
059: import com.liferay.portal.service.persistence.UserPersistence;
060: import com.liferay.portal.service.persistence.UserUtil;
061: import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
062: import com.liferay.portal.service.persistence.WebDAVPropsUtil;
063:
064: import com.liferay.portlet.documentlibrary.model.DLFolder;
065: import com.liferay.portlet.documentlibrary.model.impl.DLFolderImpl;
066: import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
067: import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceFactory;
068: import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
069: import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceFactory;
070: import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
071: import com.liferay.portlet.documentlibrary.service.DLFileRankLocalServiceFactory;
072: import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
073: import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalServiceFactory;
074: import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
075: import com.liferay.portlet.documentlibrary.service.DLFileShortcutServiceFactory;
076: import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
077: import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalServiceFactory;
078: import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
079: import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder;
080: import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinderUtil;
081: import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
082: import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinderUtil;
083: import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
084: import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryUtil;
085: import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
086: import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinderUtil;
087: import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
088: import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankUtil;
089: import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder;
090: import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinderUtil;
091: import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
092: import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutUtil;
093: import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
094: import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionUtil;
095: import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
096: import com.liferay.portlet.documentlibrary.service.persistence.DLFolderUtil;
097:
098: import org.springframework.beans.factory.InitializingBean;
099:
100: import java.util.List;
101:
102: /**
103: * <a href="DLFolderLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
104: *
105: * @author Brian Wing Shun Chan
106: *
107: */
108: public abstract class DLFolderLocalServiceBaseImpl implements
109: DLFolderLocalService, InitializingBean {
110: public DLFolder addDLFolder(DLFolder model) throws SystemException {
111: DLFolder dlFolder = new DLFolderImpl();
112:
113: dlFolder.setNew(true);
114:
115: dlFolder.setUuid(model.getUuid());
116: dlFolder.setFolderId(model.getFolderId());
117: dlFolder.setGroupId(model.getGroupId());
118: dlFolder.setCompanyId(model.getCompanyId());
119: dlFolder.setUserId(model.getUserId());
120: dlFolder.setUserName(model.getUserName());
121: dlFolder.setCreateDate(model.getCreateDate());
122: dlFolder.setModifiedDate(model.getModifiedDate());
123: dlFolder.setParentFolderId(model.getParentFolderId());
124: dlFolder.setName(model.getName());
125: dlFolder.setDescription(model.getDescription());
126: dlFolder.setLastPostDate(model.getLastPostDate());
127:
128: return dlFolderPersistence.update(dlFolder);
129: }
130:
131: public List dynamicQuery(DynamicQueryInitializer queryInitializer)
132: throws SystemException {
133: return dlFolderPersistence
134: .findWithDynamicQuery(queryInitializer);
135: }
136:
137: public List dynamicQuery(DynamicQueryInitializer queryInitializer,
138: int begin, int end) throws SystemException {
139: return dlFolderPersistence.findWithDynamicQuery(
140: queryInitializer, begin, end);
141: }
142:
143: public DLFolder updateDLFolder(DLFolder model)
144: throws SystemException {
145: return dlFolderPersistence.update(model, true);
146: }
147:
148: public DLFileEntryLocalService getDLFileEntryLocalService() {
149: return dlFileEntryLocalService;
150: }
151:
152: public void setDLFileEntryLocalService(
153: DLFileEntryLocalService dlFileEntryLocalService) {
154: this .dlFileEntryLocalService = dlFileEntryLocalService;
155: }
156:
157: public DLFileEntryService getDLFileEntryService() {
158: return dlFileEntryService;
159: }
160:
161: public void setDLFileEntryService(
162: DLFileEntryService dlFileEntryService) {
163: this .dlFileEntryService = dlFileEntryService;
164: }
165:
166: public DLFileEntryPersistence getDLFileEntryPersistence() {
167: return dlFileEntryPersistence;
168: }
169:
170: public void setDLFileEntryPersistence(
171: DLFileEntryPersistence dlFileEntryPersistence) {
172: this .dlFileEntryPersistence = dlFileEntryPersistence;
173: }
174:
175: public DLFileEntryFinder getDLFileEntryFinder() {
176: return dlFileEntryFinder;
177: }
178:
179: public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
180: this .dlFileEntryFinder = dlFileEntryFinder;
181: }
182:
183: public DLFileEntryAndShortcutFinder getDLFileEntryAndShortcutFinder() {
184: return dlFileEntryAndShortcutFinder;
185: }
186:
187: public void setDLFileEntryAndShortcutFinder(
188: DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder) {
189: this .dlFileEntryAndShortcutFinder = dlFileEntryAndShortcutFinder;
190: }
191:
192: public DLFileRankLocalService getDLFileRankLocalService() {
193: return dlFileRankLocalService;
194: }
195:
196: public void setDLFileRankLocalService(
197: DLFileRankLocalService dlFileRankLocalService) {
198: this .dlFileRankLocalService = dlFileRankLocalService;
199: }
200:
201: public DLFileRankPersistence getDLFileRankPersistence() {
202: return dlFileRankPersistence;
203: }
204:
205: public void setDLFileRankPersistence(
206: DLFileRankPersistence dlFileRankPersistence) {
207: this .dlFileRankPersistence = dlFileRankPersistence;
208: }
209:
210: public DLFileRankFinder getDLFileRankFinder() {
211: return dlFileRankFinder;
212: }
213:
214: public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
215: this .dlFileRankFinder = dlFileRankFinder;
216: }
217:
218: public DLFileShortcutLocalService getDLFileShortcutLocalService() {
219: return dlFileShortcutLocalService;
220: }
221:
222: public void setDLFileShortcutLocalService(
223: DLFileShortcutLocalService dlFileShortcutLocalService) {
224: this .dlFileShortcutLocalService = dlFileShortcutLocalService;
225: }
226:
227: public DLFileShortcutService getDLFileShortcutService() {
228: return dlFileShortcutService;
229: }
230:
231: public void setDLFileShortcutService(
232: DLFileShortcutService dlFileShortcutService) {
233: this .dlFileShortcutService = dlFileShortcutService;
234: }
235:
236: public DLFileShortcutPersistence getDLFileShortcutPersistence() {
237: return dlFileShortcutPersistence;
238: }
239:
240: public void setDLFileShortcutPersistence(
241: DLFileShortcutPersistence dlFileShortcutPersistence) {
242: this .dlFileShortcutPersistence = dlFileShortcutPersistence;
243: }
244:
245: public DLFileShortcutFinder getDLFileShortcutFinder() {
246: return dlFileShortcutFinder;
247: }
248:
249: public void setDLFileShortcutFinder(
250: DLFileShortcutFinder dlFileShortcutFinder) {
251: this .dlFileShortcutFinder = dlFileShortcutFinder;
252: }
253:
254: public DLFileVersionLocalService getDLFileVersionLocalService() {
255: return dlFileVersionLocalService;
256: }
257:
258: public void setDLFileVersionLocalService(
259: DLFileVersionLocalService dlFileVersionLocalService) {
260: this .dlFileVersionLocalService = dlFileVersionLocalService;
261: }
262:
263: public DLFileVersionPersistence getDLFileVersionPersistence() {
264: return dlFileVersionPersistence;
265: }
266:
267: public void setDLFileVersionPersistence(
268: DLFileVersionPersistence dlFileVersionPersistence) {
269: this .dlFileVersionPersistence = dlFileVersionPersistence;
270: }
271:
272: public DLFolderPersistence getDLFolderPersistence() {
273: return dlFolderPersistence;
274: }
275:
276: public void setDLFolderPersistence(
277: DLFolderPersistence dlFolderPersistence) {
278: this .dlFolderPersistence = dlFolderPersistence;
279: }
280:
281: public CounterLocalService getCounterLocalService() {
282: return counterLocalService;
283: }
284:
285: public void setCounterLocalService(
286: CounterLocalService counterLocalService) {
287: this .counterLocalService = counterLocalService;
288: }
289:
290: public CounterService getCounterService() {
291: return counterService;
292: }
293:
294: public void setCounterService(CounterService counterService) {
295: this .counterService = counterService;
296: }
297:
298: public DLLocalService getDLLocalService() {
299: return dlLocalService;
300: }
301:
302: public void setDLLocalService(DLLocalService dlLocalService) {
303: this .dlLocalService = dlLocalService;
304: }
305:
306: public DLService getDLService() {
307: return dlService;
308: }
309:
310: public void setDLService(DLService dlService) {
311: this .dlService = dlService;
312: }
313:
314: public LayoutLocalService getLayoutLocalService() {
315: return layoutLocalService;
316: }
317:
318: public void setLayoutLocalService(
319: LayoutLocalService layoutLocalService) {
320: this .layoutLocalService = layoutLocalService;
321: }
322:
323: public LayoutService getLayoutService() {
324: return layoutService;
325: }
326:
327: public void setLayoutService(LayoutService layoutService) {
328: this .layoutService = layoutService;
329: }
330:
331: public LayoutPersistence getLayoutPersistence() {
332: return layoutPersistence;
333: }
334:
335: public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
336: this .layoutPersistence = layoutPersistence;
337: }
338:
339: public LayoutFinder getLayoutFinder() {
340: return layoutFinder;
341: }
342:
343: public void setLayoutFinder(LayoutFinder layoutFinder) {
344: this .layoutFinder = layoutFinder;
345: }
346:
347: public ResourceLocalService getResourceLocalService() {
348: return resourceLocalService;
349: }
350:
351: public void setResourceLocalService(
352: ResourceLocalService resourceLocalService) {
353: this .resourceLocalService = resourceLocalService;
354: }
355:
356: public ResourceService getResourceService() {
357: return resourceService;
358: }
359:
360: public void setResourceService(ResourceService resourceService) {
361: this .resourceService = resourceService;
362: }
363:
364: public ResourcePersistence getResourcePersistence() {
365: return resourcePersistence;
366: }
367:
368: public void setResourcePersistence(
369: ResourcePersistence resourcePersistence) {
370: this .resourcePersistence = resourcePersistence;
371: }
372:
373: public ResourceFinder getResourceFinder() {
374: return resourceFinder;
375: }
376:
377: public void setResourceFinder(ResourceFinder resourceFinder) {
378: this .resourceFinder = resourceFinder;
379: }
380:
381: public UserLocalService getUserLocalService() {
382: return userLocalService;
383: }
384:
385: public void setUserLocalService(UserLocalService userLocalService) {
386: this .userLocalService = userLocalService;
387: }
388:
389: public UserService getUserService() {
390: return userService;
391: }
392:
393: public void setUserService(UserService userService) {
394: this .userService = userService;
395: }
396:
397: public UserPersistence getUserPersistence() {
398: return userPersistence;
399: }
400:
401: public void setUserPersistence(UserPersistence userPersistence) {
402: this .userPersistence = userPersistence;
403: }
404:
405: public UserFinder getUserFinder() {
406: return userFinder;
407: }
408:
409: public void setUserFinder(UserFinder userFinder) {
410: this .userFinder = userFinder;
411: }
412:
413: public WebDAVPropsLocalService getWebDAVPropsLocalService() {
414: return webDAVPropsLocalService;
415: }
416:
417: public void setWebDAVPropsLocalService(
418: WebDAVPropsLocalService webDAVPropsLocalService) {
419: this .webDAVPropsLocalService = webDAVPropsLocalService;
420: }
421:
422: public WebDAVPropsPersistence getWebDAVPropsPersistence() {
423: return webDAVPropsPersistence;
424: }
425:
426: public void setWebDAVPropsPersistence(
427: WebDAVPropsPersistence webDAVPropsPersistence) {
428: this .webDAVPropsPersistence = webDAVPropsPersistence;
429: }
430:
431: public void afterPropertiesSet() {
432: if (dlFileEntryLocalService == null) {
433: dlFileEntryLocalService = DLFileEntryLocalServiceFactory
434: .getImpl();
435: }
436:
437: if (dlFileEntryService == null) {
438: dlFileEntryService = DLFileEntryServiceFactory.getImpl();
439: }
440:
441: if (dlFileEntryPersistence == null) {
442: dlFileEntryPersistence = DLFileEntryUtil.getPersistence();
443: }
444:
445: if (dlFileEntryFinder == null) {
446: dlFileEntryFinder = DLFileEntryFinderUtil.getFinder();
447: }
448:
449: if (dlFileEntryAndShortcutFinder == null) {
450: dlFileEntryAndShortcutFinder = DLFileEntryAndShortcutFinderUtil
451: .getFinder();
452: }
453:
454: if (dlFileRankLocalService == null) {
455: dlFileRankLocalService = DLFileRankLocalServiceFactory
456: .getImpl();
457: }
458:
459: if (dlFileRankPersistence == null) {
460: dlFileRankPersistence = DLFileRankUtil.getPersistence();
461: }
462:
463: if (dlFileRankFinder == null) {
464: dlFileRankFinder = DLFileRankFinderUtil.getFinder();
465: }
466:
467: if (dlFileShortcutLocalService == null) {
468: dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
469: .getImpl();
470: }
471:
472: if (dlFileShortcutService == null) {
473: dlFileShortcutService = DLFileShortcutServiceFactory
474: .getImpl();
475: }
476:
477: if (dlFileShortcutPersistence == null) {
478: dlFileShortcutPersistence = DLFileShortcutUtil
479: .getPersistence();
480: }
481:
482: if (dlFileShortcutFinder == null) {
483: dlFileShortcutFinder = DLFileShortcutFinderUtil.getFinder();
484: }
485:
486: if (dlFileVersionLocalService == null) {
487: dlFileVersionLocalService = DLFileVersionLocalServiceFactory
488: .getImpl();
489: }
490:
491: if (dlFileVersionPersistence == null) {
492: dlFileVersionPersistence = DLFileVersionUtil
493: .getPersistence();
494: }
495:
496: if (dlFolderPersistence == null) {
497: dlFolderPersistence = DLFolderUtil.getPersistence();
498: }
499:
500: if (counterLocalService == null) {
501: counterLocalService = CounterLocalServiceFactory.getImpl();
502: }
503:
504: if (counterService == null) {
505: counterService = CounterServiceFactory.getImpl();
506: }
507:
508: if (dlLocalService == null) {
509: dlLocalService = DLLocalServiceFactory.getImpl();
510: }
511:
512: if (dlService == null) {
513: dlService = DLServiceFactory.getImpl();
514: }
515:
516: if (layoutLocalService == null) {
517: layoutLocalService = LayoutLocalServiceFactory.getImpl();
518: }
519:
520: if (layoutService == null) {
521: layoutService = LayoutServiceFactory.getImpl();
522: }
523:
524: if (layoutPersistence == null) {
525: layoutPersistence = LayoutUtil.getPersistence();
526: }
527:
528: if (layoutFinder == null) {
529: layoutFinder = LayoutFinderUtil.getFinder();
530: }
531:
532: if (resourceLocalService == null) {
533: resourceLocalService = ResourceLocalServiceFactory
534: .getImpl();
535: }
536:
537: if (resourceService == null) {
538: resourceService = ResourceServiceFactory.getImpl();
539: }
540:
541: if (resourcePersistence == null) {
542: resourcePersistence = ResourceUtil.getPersistence();
543: }
544:
545: if (resourceFinder == null) {
546: resourceFinder = ResourceFinderUtil.getFinder();
547: }
548:
549: if (userLocalService == null) {
550: userLocalService = UserLocalServiceFactory.getImpl();
551: }
552:
553: if (userService == null) {
554: userService = UserServiceFactory.getImpl();
555: }
556:
557: if (userPersistence == null) {
558: userPersistence = UserUtil.getPersistence();
559: }
560:
561: if (userFinder == null) {
562: userFinder = UserFinderUtil.getFinder();
563: }
564:
565: if (webDAVPropsLocalService == null) {
566: webDAVPropsLocalService = WebDAVPropsLocalServiceFactory
567: .getImpl();
568: }
569:
570: if (webDAVPropsPersistence == null) {
571: webDAVPropsPersistence = WebDAVPropsUtil.getPersistence();
572: }
573: }
574:
575: protected DLFileEntryLocalService dlFileEntryLocalService;
576: protected DLFileEntryService dlFileEntryService;
577: protected DLFileEntryPersistence dlFileEntryPersistence;
578: protected DLFileEntryFinder dlFileEntryFinder;
579: protected DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder;
580: protected DLFileRankLocalService dlFileRankLocalService;
581: protected DLFileRankPersistence dlFileRankPersistence;
582: protected DLFileRankFinder dlFileRankFinder;
583: protected DLFileShortcutLocalService dlFileShortcutLocalService;
584: protected DLFileShortcutService dlFileShortcutService;
585: protected DLFileShortcutPersistence dlFileShortcutPersistence;
586: protected DLFileShortcutFinder dlFileShortcutFinder;
587: protected DLFileVersionLocalService dlFileVersionLocalService;
588: protected DLFileVersionPersistence dlFileVersionPersistence;
589: protected DLFolderPersistence dlFolderPersistence;
590: protected CounterLocalService counterLocalService;
591: protected CounterService counterService;
592: protected DLLocalService dlLocalService;
593: protected DLService dlService;
594: protected LayoutLocalService layoutLocalService;
595: protected LayoutService layoutService;
596: protected LayoutPersistence layoutPersistence;
597: protected LayoutFinder layoutFinder;
598: protected ResourceLocalService resourceLocalService;
599: protected ResourceService resourceService;
600: protected ResourcePersistence resourcePersistence;
601: protected ResourceFinder resourceFinder;
602: protected UserLocalService userLocalService;
603: protected UserService userService;
604: protected UserPersistence userPersistence;
605: protected UserFinder userFinder;
606: protected WebDAVPropsLocalService webDAVPropsLocalService;
607: protected WebDAVPropsPersistence webDAVPropsPersistence;
608: }
|