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.tags.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: import com.liferay.portal.service.UserLocalService;
031: import com.liferay.portal.service.UserLocalServiceFactory;
032: import com.liferay.portal.service.UserService;
033: import com.liferay.portal.service.UserServiceFactory;
034: import com.liferay.portal.service.persistence.UserFinder;
035: import com.liferay.portal.service.persistence.UserFinderUtil;
036: import com.liferay.portal.service.persistence.UserPersistence;
037: import com.liferay.portal.service.persistence.UserUtil;
038:
039: import com.liferay.portlet.tags.model.TagsEntry;
040: import com.liferay.portlet.tags.model.impl.TagsEntryImpl;
041: import com.liferay.portlet.tags.service.TagsAssetLocalService;
042: import com.liferay.portlet.tags.service.TagsAssetLocalServiceFactory;
043: import com.liferay.portlet.tags.service.TagsAssetService;
044: import com.liferay.portlet.tags.service.TagsAssetServiceFactory;
045: import com.liferay.portlet.tags.service.TagsEntryLocalService;
046: import com.liferay.portlet.tags.service.TagsPropertyLocalService;
047: import com.liferay.portlet.tags.service.TagsPropertyLocalServiceFactory;
048: import com.liferay.portlet.tags.service.TagsPropertyService;
049: import com.liferay.portlet.tags.service.TagsPropertyServiceFactory;
050: import com.liferay.portlet.tags.service.TagsSourceLocalService;
051: import com.liferay.portlet.tags.service.TagsSourceLocalServiceFactory;
052: import com.liferay.portlet.tags.service.TagsSourceService;
053: import com.liferay.portlet.tags.service.TagsSourceServiceFactory;
054: import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
055: import com.liferay.portlet.tags.service.persistence.TagsAssetFinderUtil;
056: import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
057: import com.liferay.portlet.tags.service.persistence.TagsAssetUtil;
058: import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
059: import com.liferay.portlet.tags.service.persistence.TagsEntryFinderUtil;
060: import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
061: import com.liferay.portlet.tags.service.persistence.TagsEntryUtil;
062: import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
063: import com.liferay.portlet.tags.service.persistence.TagsPropertyFinderUtil;
064: import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
065: import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinderUtil;
066: import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
067: import com.liferay.portlet.tags.service.persistence.TagsPropertyUtil;
068: import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
069: import com.liferay.portlet.tags.service.persistence.TagsSourceUtil;
070:
071: import org.springframework.beans.factory.InitializingBean;
072:
073: import java.util.List;
074:
075: /**
076: * <a href="TagsEntryLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
077: *
078: * @author Brian Wing Shun Chan
079: *
080: */
081: public abstract class TagsEntryLocalServiceBaseImpl implements
082: TagsEntryLocalService, InitializingBean {
083: public TagsEntry addTagsEntry(TagsEntry model)
084: throws SystemException {
085: TagsEntry tagsEntry = new TagsEntryImpl();
086:
087: tagsEntry.setNew(true);
088:
089: tagsEntry.setEntryId(model.getEntryId());
090: tagsEntry.setCompanyId(model.getCompanyId());
091: tagsEntry.setUserId(model.getUserId());
092: tagsEntry.setUserName(model.getUserName());
093: tagsEntry.setCreateDate(model.getCreateDate());
094: tagsEntry.setModifiedDate(model.getModifiedDate());
095: tagsEntry.setName(model.getName());
096:
097: return tagsEntryPersistence.update(tagsEntry);
098: }
099:
100: public List dynamicQuery(DynamicQueryInitializer queryInitializer)
101: throws SystemException {
102: return tagsEntryPersistence
103: .findWithDynamicQuery(queryInitializer);
104: }
105:
106: public List dynamicQuery(DynamicQueryInitializer queryInitializer,
107: int begin, int end) throws SystemException {
108: return tagsEntryPersistence.findWithDynamicQuery(
109: queryInitializer, begin, end);
110: }
111:
112: public TagsEntry updateTagsEntry(TagsEntry model)
113: throws SystemException {
114: return tagsEntryPersistence.update(model, true);
115: }
116:
117: public TagsAssetLocalService getTagsAssetLocalService() {
118: return tagsAssetLocalService;
119: }
120:
121: public void setTagsAssetLocalService(
122: TagsAssetLocalService tagsAssetLocalService) {
123: this .tagsAssetLocalService = tagsAssetLocalService;
124: }
125:
126: public TagsAssetService getTagsAssetService() {
127: return tagsAssetService;
128: }
129:
130: public void setTagsAssetService(TagsAssetService tagsAssetService) {
131: this .tagsAssetService = tagsAssetService;
132: }
133:
134: public TagsAssetPersistence getTagsAssetPersistence() {
135: return tagsAssetPersistence;
136: }
137:
138: public void setTagsAssetPersistence(
139: TagsAssetPersistence tagsAssetPersistence) {
140: this .tagsAssetPersistence = tagsAssetPersistence;
141: }
142:
143: public TagsAssetFinder getTagsAssetFinder() {
144: return tagsAssetFinder;
145: }
146:
147: public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
148: this .tagsAssetFinder = tagsAssetFinder;
149: }
150:
151: public TagsEntryPersistence getTagsEntryPersistence() {
152: return tagsEntryPersistence;
153: }
154:
155: public void setTagsEntryPersistence(
156: TagsEntryPersistence tagsEntryPersistence) {
157: this .tagsEntryPersistence = tagsEntryPersistence;
158: }
159:
160: public TagsEntryFinder getTagsEntryFinder() {
161: return tagsEntryFinder;
162: }
163:
164: public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
165: this .tagsEntryFinder = tagsEntryFinder;
166: }
167:
168: public TagsPropertyLocalService getTagsPropertyLocalService() {
169: return tagsPropertyLocalService;
170: }
171:
172: public void setTagsPropertyLocalService(
173: TagsPropertyLocalService tagsPropertyLocalService) {
174: this .tagsPropertyLocalService = tagsPropertyLocalService;
175: }
176:
177: public TagsPropertyService getTagsPropertyService() {
178: return tagsPropertyService;
179: }
180:
181: public void setTagsPropertyService(
182: TagsPropertyService tagsPropertyService) {
183: this .tagsPropertyService = tagsPropertyService;
184: }
185:
186: public TagsPropertyPersistence getTagsPropertyPersistence() {
187: return tagsPropertyPersistence;
188: }
189:
190: public void setTagsPropertyPersistence(
191: TagsPropertyPersistence tagsPropertyPersistence) {
192: this .tagsPropertyPersistence = tagsPropertyPersistence;
193: }
194:
195: public TagsPropertyFinder getTagsPropertyFinder() {
196: return tagsPropertyFinder;
197: }
198:
199: public void setTagsPropertyFinder(
200: TagsPropertyFinder tagsPropertyFinder) {
201: this .tagsPropertyFinder = tagsPropertyFinder;
202: }
203:
204: public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
205: return tagsPropertyKeyFinder;
206: }
207:
208: public void setTagsPropertyKeyFinder(
209: TagsPropertyKeyFinder tagsPropertyKeyFinder) {
210: this .tagsPropertyKeyFinder = tagsPropertyKeyFinder;
211: }
212:
213: public TagsSourceLocalService getTagsSourceLocalService() {
214: return tagsSourceLocalService;
215: }
216:
217: public void setTagsSourceLocalService(
218: TagsSourceLocalService tagsSourceLocalService) {
219: this .tagsSourceLocalService = tagsSourceLocalService;
220: }
221:
222: public TagsSourceService getTagsSourceService() {
223: return tagsSourceService;
224: }
225:
226: public void setTagsSourceService(TagsSourceService tagsSourceService) {
227: this .tagsSourceService = tagsSourceService;
228: }
229:
230: public TagsSourcePersistence getTagsSourcePersistence() {
231: return tagsSourcePersistence;
232: }
233:
234: public void setTagsSourcePersistence(
235: TagsSourcePersistence tagsSourcePersistence) {
236: this .tagsSourcePersistence = tagsSourcePersistence;
237: }
238:
239: public CounterLocalService getCounterLocalService() {
240: return counterLocalService;
241: }
242:
243: public void setCounterLocalService(
244: CounterLocalService counterLocalService) {
245: this .counterLocalService = counterLocalService;
246: }
247:
248: public CounterService getCounterService() {
249: return counterService;
250: }
251:
252: public void setCounterService(CounterService counterService) {
253: this .counterService = counterService;
254: }
255:
256: public UserLocalService getUserLocalService() {
257: return userLocalService;
258: }
259:
260: public void setUserLocalService(UserLocalService userLocalService) {
261: this .userLocalService = userLocalService;
262: }
263:
264: public UserService getUserService() {
265: return userService;
266: }
267:
268: public void setUserService(UserService userService) {
269: this .userService = userService;
270: }
271:
272: public UserPersistence getUserPersistence() {
273: return userPersistence;
274: }
275:
276: public void setUserPersistence(UserPersistence userPersistence) {
277: this .userPersistence = userPersistence;
278: }
279:
280: public UserFinder getUserFinder() {
281: return userFinder;
282: }
283:
284: public void setUserFinder(UserFinder userFinder) {
285: this .userFinder = userFinder;
286: }
287:
288: public void afterPropertiesSet() {
289: if (tagsAssetLocalService == null) {
290: tagsAssetLocalService = TagsAssetLocalServiceFactory
291: .getImpl();
292: }
293:
294: if (tagsAssetService == null) {
295: tagsAssetService = TagsAssetServiceFactory.getImpl();
296: }
297:
298: if (tagsAssetPersistence == null) {
299: tagsAssetPersistence = TagsAssetUtil.getPersistence();
300: }
301:
302: if (tagsAssetFinder == null) {
303: tagsAssetFinder = TagsAssetFinderUtil.getFinder();
304: }
305:
306: if (tagsEntryPersistence == null) {
307: tagsEntryPersistence = TagsEntryUtil.getPersistence();
308: }
309:
310: if (tagsEntryFinder == null) {
311: tagsEntryFinder = TagsEntryFinderUtil.getFinder();
312: }
313:
314: if (tagsPropertyLocalService == null) {
315: tagsPropertyLocalService = TagsPropertyLocalServiceFactory
316: .getImpl();
317: }
318:
319: if (tagsPropertyService == null) {
320: tagsPropertyService = TagsPropertyServiceFactory.getImpl();
321: }
322:
323: if (tagsPropertyPersistence == null) {
324: tagsPropertyPersistence = TagsPropertyUtil.getPersistence();
325: }
326:
327: if (tagsPropertyFinder == null) {
328: tagsPropertyFinder = TagsPropertyFinderUtil.getFinder();
329: }
330:
331: if (tagsPropertyKeyFinder == null) {
332: tagsPropertyKeyFinder = TagsPropertyKeyFinderUtil
333: .getFinder();
334: }
335:
336: if (tagsSourceLocalService == null) {
337: tagsSourceLocalService = TagsSourceLocalServiceFactory
338: .getImpl();
339: }
340:
341: if (tagsSourceService == null) {
342: tagsSourceService = TagsSourceServiceFactory.getImpl();
343: }
344:
345: if (tagsSourcePersistence == null) {
346: tagsSourcePersistence = TagsSourceUtil.getPersistence();
347: }
348:
349: if (counterLocalService == null) {
350: counterLocalService = CounterLocalServiceFactory.getImpl();
351: }
352:
353: if (counterService == null) {
354: counterService = CounterServiceFactory.getImpl();
355: }
356:
357: if (userLocalService == null) {
358: userLocalService = UserLocalServiceFactory.getImpl();
359: }
360:
361: if (userService == null) {
362: userService = UserServiceFactory.getImpl();
363: }
364:
365: if (userPersistence == null) {
366: userPersistence = UserUtil.getPersistence();
367: }
368:
369: if (userFinder == null) {
370: userFinder = UserFinderUtil.getFinder();
371: }
372: }
373:
374: protected TagsAssetLocalService tagsAssetLocalService;
375: protected TagsAssetService tagsAssetService;
376: protected TagsAssetPersistence tagsAssetPersistence;
377: protected TagsAssetFinder tagsAssetFinder;
378: protected TagsEntryPersistence tagsEntryPersistence;
379: protected TagsEntryFinder tagsEntryFinder;
380: protected TagsPropertyLocalService tagsPropertyLocalService;
381: protected TagsPropertyService tagsPropertyService;
382: protected TagsPropertyPersistence tagsPropertyPersistence;
383: protected TagsPropertyFinder tagsPropertyFinder;
384: protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
385: protected TagsSourceLocalService tagsSourceLocalService;
386: protected TagsSourceService tagsSourceService;
387: protected TagsSourcePersistence tagsSourcePersistence;
388: protected CounterLocalService counterLocalService;
389: protected CounterService counterService;
390: protected UserLocalService userLocalService;
391: protected UserService userService;
392: protected UserPersistence userPersistence;
393: protected UserFinder userFinder;
394: }
|