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.portal.SystemException;
024: import com.liferay.portal.kernel.dao.DynamicQueryInitializer;
025:
026: import com.liferay.portlet.tags.model.TagsSource;
027: import com.liferay.portlet.tags.model.impl.TagsSourceImpl;
028: import com.liferay.portlet.tags.service.TagsAssetLocalService;
029: import com.liferay.portlet.tags.service.TagsAssetLocalServiceFactory;
030: import com.liferay.portlet.tags.service.TagsAssetService;
031: import com.liferay.portlet.tags.service.TagsAssetServiceFactory;
032: import com.liferay.portlet.tags.service.TagsEntryLocalService;
033: import com.liferay.portlet.tags.service.TagsEntryLocalServiceFactory;
034: import com.liferay.portlet.tags.service.TagsEntryService;
035: import com.liferay.portlet.tags.service.TagsEntryServiceFactory;
036: import com.liferay.portlet.tags.service.TagsPropertyLocalService;
037: import com.liferay.portlet.tags.service.TagsPropertyLocalServiceFactory;
038: import com.liferay.portlet.tags.service.TagsPropertyService;
039: import com.liferay.portlet.tags.service.TagsPropertyServiceFactory;
040: import com.liferay.portlet.tags.service.TagsSourceLocalService;
041: import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
042: import com.liferay.portlet.tags.service.persistence.TagsAssetFinderUtil;
043: import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
044: import com.liferay.portlet.tags.service.persistence.TagsAssetUtil;
045: import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
046: import com.liferay.portlet.tags.service.persistence.TagsEntryFinderUtil;
047: import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
048: import com.liferay.portlet.tags.service.persistence.TagsEntryUtil;
049: import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
050: import com.liferay.portlet.tags.service.persistence.TagsPropertyFinderUtil;
051: import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
052: import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinderUtil;
053: import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
054: import com.liferay.portlet.tags.service.persistence.TagsPropertyUtil;
055: import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
056: import com.liferay.portlet.tags.service.persistence.TagsSourceUtil;
057:
058: import org.springframework.beans.factory.InitializingBean;
059:
060: import java.util.List;
061:
062: /**
063: * <a href="TagsSourceLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
064: *
065: * @author Brian Wing Shun Chan
066: *
067: */
068: public abstract class TagsSourceLocalServiceBaseImpl implements
069: TagsSourceLocalService, InitializingBean {
070: public TagsSource addTagsSource(TagsSource model)
071: throws SystemException {
072: TagsSource tagsSource = new TagsSourceImpl();
073:
074: tagsSource.setNew(true);
075:
076: tagsSource.setSourceId(model.getSourceId());
077: tagsSource.setParentSourceId(model.getParentSourceId());
078: tagsSource.setName(model.getName());
079: tagsSource.setAcronym(model.getAcronym());
080:
081: return tagsSourcePersistence.update(tagsSource);
082: }
083:
084: public List dynamicQuery(DynamicQueryInitializer queryInitializer)
085: throws SystemException {
086: return tagsSourcePersistence
087: .findWithDynamicQuery(queryInitializer);
088: }
089:
090: public List dynamicQuery(DynamicQueryInitializer queryInitializer,
091: int begin, int end) throws SystemException {
092: return tagsSourcePersistence.findWithDynamicQuery(
093: queryInitializer, begin, end);
094: }
095:
096: public TagsSource updateTagsSource(TagsSource model)
097: throws SystemException {
098: return tagsSourcePersistence.update(model, true);
099: }
100:
101: public TagsAssetLocalService getTagsAssetLocalService() {
102: return tagsAssetLocalService;
103: }
104:
105: public void setTagsAssetLocalService(
106: TagsAssetLocalService tagsAssetLocalService) {
107: this .tagsAssetLocalService = tagsAssetLocalService;
108: }
109:
110: public TagsAssetService getTagsAssetService() {
111: return tagsAssetService;
112: }
113:
114: public void setTagsAssetService(TagsAssetService tagsAssetService) {
115: this .tagsAssetService = tagsAssetService;
116: }
117:
118: public TagsAssetPersistence getTagsAssetPersistence() {
119: return tagsAssetPersistence;
120: }
121:
122: public void setTagsAssetPersistence(
123: TagsAssetPersistence tagsAssetPersistence) {
124: this .tagsAssetPersistence = tagsAssetPersistence;
125: }
126:
127: public TagsAssetFinder getTagsAssetFinder() {
128: return tagsAssetFinder;
129: }
130:
131: public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
132: this .tagsAssetFinder = tagsAssetFinder;
133: }
134:
135: public TagsEntryLocalService getTagsEntryLocalService() {
136: return tagsEntryLocalService;
137: }
138:
139: public void setTagsEntryLocalService(
140: TagsEntryLocalService tagsEntryLocalService) {
141: this .tagsEntryLocalService = tagsEntryLocalService;
142: }
143:
144: public TagsEntryService getTagsEntryService() {
145: return tagsEntryService;
146: }
147:
148: public void setTagsEntryService(TagsEntryService tagsEntryService) {
149: this .tagsEntryService = tagsEntryService;
150: }
151:
152: public TagsEntryPersistence getTagsEntryPersistence() {
153: return tagsEntryPersistence;
154: }
155:
156: public void setTagsEntryPersistence(
157: TagsEntryPersistence tagsEntryPersistence) {
158: this .tagsEntryPersistence = tagsEntryPersistence;
159: }
160:
161: public TagsEntryFinder getTagsEntryFinder() {
162: return tagsEntryFinder;
163: }
164:
165: public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
166: this .tagsEntryFinder = tagsEntryFinder;
167: }
168:
169: public TagsPropertyLocalService getTagsPropertyLocalService() {
170: return tagsPropertyLocalService;
171: }
172:
173: public void setTagsPropertyLocalService(
174: TagsPropertyLocalService tagsPropertyLocalService) {
175: this .tagsPropertyLocalService = tagsPropertyLocalService;
176: }
177:
178: public TagsPropertyService getTagsPropertyService() {
179: return tagsPropertyService;
180: }
181:
182: public void setTagsPropertyService(
183: TagsPropertyService tagsPropertyService) {
184: this .tagsPropertyService = tagsPropertyService;
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 TagsSourcePersistence getTagsSourcePersistence() {
215: return tagsSourcePersistence;
216: }
217:
218: public void setTagsSourcePersistence(
219: TagsSourcePersistence tagsSourcePersistence) {
220: this .tagsSourcePersistence = tagsSourcePersistence;
221: }
222:
223: public void afterPropertiesSet() {
224: if (tagsAssetLocalService == null) {
225: tagsAssetLocalService = TagsAssetLocalServiceFactory
226: .getImpl();
227: }
228:
229: if (tagsAssetService == null) {
230: tagsAssetService = TagsAssetServiceFactory.getImpl();
231: }
232:
233: if (tagsAssetPersistence == null) {
234: tagsAssetPersistence = TagsAssetUtil.getPersistence();
235: }
236:
237: if (tagsAssetFinder == null) {
238: tagsAssetFinder = TagsAssetFinderUtil.getFinder();
239: }
240:
241: if (tagsEntryLocalService == null) {
242: tagsEntryLocalService = TagsEntryLocalServiceFactory
243: .getImpl();
244: }
245:
246: if (tagsEntryService == null) {
247: tagsEntryService = TagsEntryServiceFactory.getImpl();
248: }
249:
250: if (tagsEntryPersistence == null) {
251: tagsEntryPersistence = TagsEntryUtil.getPersistence();
252: }
253:
254: if (tagsEntryFinder == null) {
255: tagsEntryFinder = TagsEntryFinderUtil.getFinder();
256: }
257:
258: if (tagsPropertyLocalService == null) {
259: tagsPropertyLocalService = TagsPropertyLocalServiceFactory
260: .getImpl();
261: }
262:
263: if (tagsPropertyService == null) {
264: tagsPropertyService = TagsPropertyServiceFactory.getImpl();
265: }
266:
267: if (tagsPropertyPersistence == null) {
268: tagsPropertyPersistence = TagsPropertyUtil.getPersistence();
269: }
270:
271: if (tagsPropertyFinder == null) {
272: tagsPropertyFinder = TagsPropertyFinderUtil.getFinder();
273: }
274:
275: if (tagsPropertyKeyFinder == null) {
276: tagsPropertyKeyFinder = TagsPropertyKeyFinderUtil
277: .getFinder();
278: }
279:
280: if (tagsSourcePersistence == null) {
281: tagsSourcePersistence = TagsSourceUtil.getPersistence();
282: }
283: }
284:
285: protected TagsAssetLocalService tagsAssetLocalService;
286: protected TagsAssetService tagsAssetService;
287: protected TagsAssetPersistence tagsAssetPersistence;
288: protected TagsAssetFinder tagsAssetFinder;
289: protected TagsEntryLocalService tagsEntryLocalService;
290: protected TagsEntryService tagsEntryService;
291: protected TagsEntryPersistence tagsEntryPersistence;
292: protected TagsEntryFinder tagsEntryFinder;
293: protected TagsPropertyLocalService tagsPropertyLocalService;
294: protected TagsPropertyService tagsPropertyService;
295: protected TagsPropertyPersistence tagsPropertyPersistence;
296: protected TagsPropertyFinder tagsPropertyFinder;
297: protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
298: protected TagsSourcePersistence tagsSourcePersistence;
299: }
|