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.portal.SystemException;
029: import com.liferay.portal.kernel.dao.DynamicQueryInitializer;
030:
031: import com.liferay.portlet.documentlibrary.model.DLFileRank;
032: import com.liferay.portlet.documentlibrary.model.impl.DLFileRankImpl;
033: import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
034: import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceFactory;
035: import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
036: import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceFactory;
037: import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
038: import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
039: import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalServiceFactory;
040: import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
041: import com.liferay.portlet.documentlibrary.service.DLFileShortcutServiceFactory;
042: import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
043: import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalServiceFactory;
044: import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
045: import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceFactory;
046: import com.liferay.portlet.documentlibrary.service.DLFolderService;
047: import com.liferay.portlet.documentlibrary.service.DLFolderServiceFactory;
048: import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder;
049: import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinderUtil;
050: import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
051: import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinderUtil;
052: import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
053: import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryUtil;
054: import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
055: import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinderUtil;
056: import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
057: import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankUtil;
058: import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder;
059: import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinderUtil;
060: import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
061: import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutUtil;
062: import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
063: import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionUtil;
064: import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
065: import com.liferay.portlet.documentlibrary.service.persistence.DLFolderUtil;
066:
067: import org.springframework.beans.factory.InitializingBean;
068:
069: import java.util.List;
070:
071: /**
072: * <a href="DLFileRankLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
073: *
074: * @author Brian Wing Shun Chan
075: *
076: */
077: public abstract class DLFileRankLocalServiceBaseImpl implements
078: DLFileRankLocalService, InitializingBean {
079: public DLFileRank addDLFileRank(DLFileRank model)
080: throws SystemException {
081: DLFileRank dlFileRank = new DLFileRankImpl();
082:
083: dlFileRank.setNew(true);
084:
085: dlFileRank.setFileRankId(model.getFileRankId());
086: dlFileRank.setCompanyId(model.getCompanyId());
087: dlFileRank.setUserId(model.getUserId());
088: dlFileRank.setCreateDate(model.getCreateDate());
089: dlFileRank.setFolderId(model.getFolderId());
090: dlFileRank.setName(model.getName());
091:
092: return dlFileRankPersistence.update(dlFileRank);
093: }
094:
095: public List dynamicQuery(DynamicQueryInitializer queryInitializer)
096: throws SystemException {
097: return dlFileRankPersistence
098: .findWithDynamicQuery(queryInitializer);
099: }
100:
101: public List dynamicQuery(DynamicQueryInitializer queryInitializer,
102: int begin, int end) throws SystemException {
103: return dlFileRankPersistence.findWithDynamicQuery(
104: queryInitializer, begin, end);
105: }
106:
107: public DLFileRank updateDLFileRank(DLFileRank model)
108: throws SystemException {
109: return dlFileRankPersistence.update(model, true);
110: }
111:
112: public DLFileEntryLocalService getDLFileEntryLocalService() {
113: return dlFileEntryLocalService;
114: }
115:
116: public void setDLFileEntryLocalService(
117: DLFileEntryLocalService dlFileEntryLocalService) {
118: this .dlFileEntryLocalService = dlFileEntryLocalService;
119: }
120:
121: public DLFileEntryService getDLFileEntryService() {
122: return dlFileEntryService;
123: }
124:
125: public void setDLFileEntryService(
126: DLFileEntryService dlFileEntryService) {
127: this .dlFileEntryService = dlFileEntryService;
128: }
129:
130: public DLFileEntryPersistence getDLFileEntryPersistence() {
131: return dlFileEntryPersistence;
132: }
133:
134: public void setDLFileEntryPersistence(
135: DLFileEntryPersistence dlFileEntryPersistence) {
136: this .dlFileEntryPersistence = dlFileEntryPersistence;
137: }
138:
139: public DLFileEntryFinder getDLFileEntryFinder() {
140: return dlFileEntryFinder;
141: }
142:
143: public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
144: this .dlFileEntryFinder = dlFileEntryFinder;
145: }
146:
147: public DLFileEntryAndShortcutFinder getDLFileEntryAndShortcutFinder() {
148: return dlFileEntryAndShortcutFinder;
149: }
150:
151: public void setDLFileEntryAndShortcutFinder(
152: DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder) {
153: this .dlFileEntryAndShortcutFinder = dlFileEntryAndShortcutFinder;
154: }
155:
156: public DLFileRankPersistence getDLFileRankPersistence() {
157: return dlFileRankPersistence;
158: }
159:
160: public void setDLFileRankPersistence(
161: DLFileRankPersistence dlFileRankPersistence) {
162: this .dlFileRankPersistence = dlFileRankPersistence;
163: }
164:
165: public DLFileRankFinder getDLFileRankFinder() {
166: return dlFileRankFinder;
167: }
168:
169: public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
170: this .dlFileRankFinder = dlFileRankFinder;
171: }
172:
173: public DLFileShortcutLocalService getDLFileShortcutLocalService() {
174: return dlFileShortcutLocalService;
175: }
176:
177: public void setDLFileShortcutLocalService(
178: DLFileShortcutLocalService dlFileShortcutLocalService) {
179: this .dlFileShortcutLocalService = dlFileShortcutLocalService;
180: }
181:
182: public DLFileShortcutService getDLFileShortcutService() {
183: return dlFileShortcutService;
184: }
185:
186: public void setDLFileShortcutService(
187: DLFileShortcutService dlFileShortcutService) {
188: this .dlFileShortcutService = dlFileShortcutService;
189: }
190:
191: public DLFileShortcutPersistence getDLFileShortcutPersistence() {
192: return dlFileShortcutPersistence;
193: }
194:
195: public void setDLFileShortcutPersistence(
196: DLFileShortcutPersistence dlFileShortcutPersistence) {
197: this .dlFileShortcutPersistence = dlFileShortcutPersistence;
198: }
199:
200: public DLFileShortcutFinder getDLFileShortcutFinder() {
201: return dlFileShortcutFinder;
202: }
203:
204: public void setDLFileShortcutFinder(
205: DLFileShortcutFinder dlFileShortcutFinder) {
206: this .dlFileShortcutFinder = dlFileShortcutFinder;
207: }
208:
209: public DLFileVersionLocalService getDLFileVersionLocalService() {
210: return dlFileVersionLocalService;
211: }
212:
213: public void setDLFileVersionLocalService(
214: DLFileVersionLocalService dlFileVersionLocalService) {
215: this .dlFileVersionLocalService = dlFileVersionLocalService;
216: }
217:
218: public DLFileVersionPersistence getDLFileVersionPersistence() {
219: return dlFileVersionPersistence;
220: }
221:
222: public void setDLFileVersionPersistence(
223: DLFileVersionPersistence dlFileVersionPersistence) {
224: this .dlFileVersionPersistence = dlFileVersionPersistence;
225: }
226:
227: public DLFolderLocalService getDLFolderLocalService() {
228: return dlFolderLocalService;
229: }
230:
231: public void setDLFolderLocalService(
232: DLFolderLocalService dlFolderLocalService) {
233: this .dlFolderLocalService = dlFolderLocalService;
234: }
235:
236: public DLFolderService getDLFolderService() {
237: return dlFolderService;
238: }
239:
240: public void setDLFolderService(DLFolderService dlFolderService) {
241: this .dlFolderService = dlFolderService;
242: }
243:
244: public DLFolderPersistence getDLFolderPersistence() {
245: return dlFolderPersistence;
246: }
247:
248: public void setDLFolderPersistence(
249: DLFolderPersistence dlFolderPersistence) {
250: this .dlFolderPersistence = dlFolderPersistence;
251: }
252:
253: public CounterLocalService getCounterLocalService() {
254: return counterLocalService;
255: }
256:
257: public void setCounterLocalService(
258: CounterLocalService counterLocalService) {
259: this .counterLocalService = counterLocalService;
260: }
261:
262: public CounterService getCounterService() {
263: return counterService;
264: }
265:
266: public void setCounterService(CounterService counterService) {
267: this .counterService = counterService;
268: }
269:
270: public void afterPropertiesSet() {
271: if (dlFileEntryLocalService == null) {
272: dlFileEntryLocalService = DLFileEntryLocalServiceFactory
273: .getImpl();
274: }
275:
276: if (dlFileEntryService == null) {
277: dlFileEntryService = DLFileEntryServiceFactory.getImpl();
278: }
279:
280: if (dlFileEntryPersistence == null) {
281: dlFileEntryPersistence = DLFileEntryUtil.getPersistence();
282: }
283:
284: if (dlFileEntryFinder == null) {
285: dlFileEntryFinder = DLFileEntryFinderUtil.getFinder();
286: }
287:
288: if (dlFileEntryAndShortcutFinder == null) {
289: dlFileEntryAndShortcutFinder = DLFileEntryAndShortcutFinderUtil
290: .getFinder();
291: }
292:
293: if (dlFileRankPersistence == null) {
294: dlFileRankPersistence = DLFileRankUtil.getPersistence();
295: }
296:
297: if (dlFileRankFinder == null) {
298: dlFileRankFinder = DLFileRankFinderUtil.getFinder();
299: }
300:
301: if (dlFileShortcutLocalService == null) {
302: dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
303: .getImpl();
304: }
305:
306: if (dlFileShortcutService == null) {
307: dlFileShortcutService = DLFileShortcutServiceFactory
308: .getImpl();
309: }
310:
311: if (dlFileShortcutPersistence == null) {
312: dlFileShortcutPersistence = DLFileShortcutUtil
313: .getPersistence();
314: }
315:
316: if (dlFileShortcutFinder == null) {
317: dlFileShortcutFinder = DLFileShortcutFinderUtil.getFinder();
318: }
319:
320: if (dlFileVersionLocalService == null) {
321: dlFileVersionLocalService = DLFileVersionLocalServiceFactory
322: .getImpl();
323: }
324:
325: if (dlFileVersionPersistence == null) {
326: dlFileVersionPersistence = DLFileVersionUtil
327: .getPersistence();
328: }
329:
330: if (dlFolderLocalService == null) {
331: dlFolderLocalService = DLFolderLocalServiceFactory
332: .getImpl();
333: }
334:
335: if (dlFolderService == null) {
336: dlFolderService = DLFolderServiceFactory.getImpl();
337: }
338:
339: if (dlFolderPersistence == null) {
340: dlFolderPersistence = DLFolderUtil.getPersistence();
341: }
342:
343: if (counterLocalService == null) {
344: counterLocalService = CounterLocalServiceFactory.getImpl();
345: }
346:
347: if (counterService == null) {
348: counterService = CounterServiceFactory.getImpl();
349: }
350: }
351:
352: protected DLFileEntryLocalService dlFileEntryLocalService;
353: protected DLFileEntryService dlFileEntryService;
354: protected DLFileEntryPersistence dlFileEntryPersistence;
355: protected DLFileEntryFinder dlFileEntryFinder;
356: protected DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder;
357: protected DLFileRankPersistence dlFileRankPersistence;
358: protected DLFileRankFinder dlFileRankFinder;
359: protected DLFileShortcutLocalService dlFileShortcutLocalService;
360: protected DLFileShortcutService dlFileShortcutService;
361: protected DLFileShortcutPersistence dlFileShortcutPersistence;
362: protected DLFileShortcutFinder dlFileShortcutFinder;
363: protected DLFileVersionLocalService dlFileVersionLocalService;
364: protected DLFileVersionPersistence dlFileVersionPersistence;
365: protected DLFolderLocalService dlFolderLocalService;
366: protected DLFolderService dlFolderService;
367: protected DLFolderPersistence dlFolderPersistence;
368: protected CounterLocalService counterLocalService;
369: protected CounterService counterService;
370: }
|