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