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.wiki.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.ResourceLocalService;
031: import com.liferay.portal.service.ResourceLocalServiceFactory;
032: import com.liferay.portal.service.ResourceService;
033: import com.liferay.portal.service.ResourceServiceFactory;
034: import com.liferay.portal.service.UserLocalService;
035: import com.liferay.portal.service.UserLocalServiceFactory;
036: import com.liferay.portal.service.UserService;
037: import com.liferay.portal.service.UserServiceFactory;
038: import com.liferay.portal.service.persistence.ResourceFinder;
039: import com.liferay.portal.service.persistence.ResourceFinderUtil;
040: import com.liferay.portal.service.persistence.ResourcePersistence;
041: import com.liferay.portal.service.persistence.ResourceUtil;
042: import com.liferay.portal.service.persistence.UserFinder;
043: import com.liferay.portal.service.persistence.UserFinderUtil;
044: import com.liferay.portal.service.persistence.UserPersistence;
045: import com.liferay.portal.service.persistence.UserUtil;
046:
047: import com.liferay.portlet.tags.service.TagsEntryLocalService;
048: import com.liferay.portlet.tags.service.TagsEntryLocalServiceFactory;
049: import com.liferay.portlet.tags.service.TagsEntryService;
050: import com.liferay.portlet.tags.service.TagsEntryServiceFactory;
051: import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
052: import com.liferay.portlet.tags.service.persistence.TagsEntryFinderUtil;
053: import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
054: import com.liferay.portlet.tags.service.persistence.TagsEntryUtil;
055: import com.liferay.portlet.wiki.model.WikiNode;
056: import com.liferay.portlet.wiki.model.impl.WikiNodeImpl;
057: import com.liferay.portlet.wiki.service.WikiNodeLocalService;
058: import com.liferay.portlet.wiki.service.WikiPageLocalService;
059: import com.liferay.portlet.wiki.service.WikiPageLocalServiceFactory;
060: import com.liferay.portlet.wiki.service.WikiPageResourceLocalService;
061: import com.liferay.portlet.wiki.service.WikiPageResourceLocalServiceFactory;
062: import com.liferay.portlet.wiki.service.WikiPageService;
063: import com.liferay.portlet.wiki.service.WikiPageServiceFactory;
064: import com.liferay.portlet.wiki.service.persistence.WikiNodePersistence;
065: import com.liferay.portlet.wiki.service.persistence.WikiNodeUtil;
066: import com.liferay.portlet.wiki.service.persistence.WikiPageFinder;
067: import com.liferay.portlet.wiki.service.persistence.WikiPageFinderUtil;
068: import com.liferay.portlet.wiki.service.persistence.WikiPagePersistence;
069: import com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence;
070: import com.liferay.portlet.wiki.service.persistence.WikiPageResourceUtil;
071: import com.liferay.portlet.wiki.service.persistence.WikiPageUtil;
072:
073: import org.springframework.beans.factory.InitializingBean;
074:
075: import java.util.List;
076:
077: /**
078: * <a href="WikiNodeLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
079: *
080: * @author Brian Wing Shun Chan
081: *
082: */
083: public abstract class WikiNodeLocalServiceBaseImpl implements
084: WikiNodeLocalService, InitializingBean {
085: public WikiNode addWikiNode(WikiNode model) throws SystemException {
086: WikiNode wikiNode = new WikiNodeImpl();
087:
088: wikiNode.setNew(true);
089:
090: wikiNode.setUuid(model.getUuid());
091: wikiNode.setNodeId(model.getNodeId());
092: wikiNode.setGroupId(model.getGroupId());
093: wikiNode.setCompanyId(model.getCompanyId());
094: wikiNode.setUserId(model.getUserId());
095: wikiNode.setUserName(model.getUserName());
096: wikiNode.setCreateDate(model.getCreateDate());
097: wikiNode.setModifiedDate(model.getModifiedDate());
098: wikiNode.setName(model.getName());
099: wikiNode.setDescription(model.getDescription());
100: wikiNode.setLastPostDate(model.getLastPostDate());
101:
102: return wikiNodePersistence.update(wikiNode);
103: }
104:
105: public List dynamicQuery(DynamicQueryInitializer queryInitializer)
106: throws SystemException {
107: return wikiNodePersistence
108: .findWithDynamicQuery(queryInitializer);
109: }
110:
111: public List dynamicQuery(DynamicQueryInitializer queryInitializer,
112: int begin, int end) throws SystemException {
113: return wikiNodePersistence.findWithDynamicQuery(
114: queryInitializer, begin, end);
115: }
116:
117: public WikiNode updateWikiNode(WikiNode model)
118: throws SystemException {
119: return wikiNodePersistence.update(model, true);
120: }
121:
122: public WikiNodePersistence getWikiNodePersistence() {
123: return wikiNodePersistence;
124: }
125:
126: public void setWikiNodePersistence(
127: WikiNodePersistence wikiNodePersistence) {
128: this .wikiNodePersistence = wikiNodePersistence;
129: }
130:
131: public WikiPageLocalService getWikiPageLocalService() {
132: return wikiPageLocalService;
133: }
134:
135: public void setWikiPageLocalService(
136: WikiPageLocalService wikiPageLocalService) {
137: this .wikiPageLocalService = wikiPageLocalService;
138: }
139:
140: public WikiPageService getWikiPageService() {
141: return wikiPageService;
142: }
143:
144: public void setWikiPageService(WikiPageService wikiPageService) {
145: this .wikiPageService = wikiPageService;
146: }
147:
148: public WikiPagePersistence getWikiPagePersistence() {
149: return wikiPagePersistence;
150: }
151:
152: public void setWikiPagePersistence(
153: WikiPagePersistence wikiPagePersistence) {
154: this .wikiPagePersistence = wikiPagePersistence;
155: }
156:
157: public WikiPageFinder getWikiPageFinder() {
158: return wikiPageFinder;
159: }
160:
161: public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
162: this .wikiPageFinder = wikiPageFinder;
163: }
164:
165: public WikiPageResourceLocalService getWikiPageResourceLocalService() {
166: return wikiPageResourceLocalService;
167: }
168:
169: public void setWikiPageResourceLocalService(
170: WikiPageResourceLocalService wikiPageResourceLocalService) {
171: this .wikiPageResourceLocalService = wikiPageResourceLocalService;
172: }
173:
174: public WikiPageResourcePersistence getWikiPageResourcePersistence() {
175: return wikiPageResourcePersistence;
176: }
177:
178: public void setWikiPageResourcePersistence(
179: WikiPageResourcePersistence wikiPageResourcePersistence) {
180: this .wikiPageResourcePersistence = wikiPageResourcePersistence;
181: }
182:
183: public CounterLocalService getCounterLocalService() {
184: return counterLocalService;
185: }
186:
187: public void setCounterLocalService(
188: CounterLocalService counterLocalService) {
189: this .counterLocalService = counterLocalService;
190: }
191:
192: public CounterService getCounterService() {
193: return counterService;
194: }
195:
196: public void setCounterService(CounterService counterService) {
197: this .counterService = counterService;
198: }
199:
200: public ResourceLocalService getResourceLocalService() {
201: return resourceLocalService;
202: }
203:
204: public void setResourceLocalService(
205: ResourceLocalService resourceLocalService) {
206: this .resourceLocalService = resourceLocalService;
207: }
208:
209: public ResourceService getResourceService() {
210: return resourceService;
211: }
212:
213: public void setResourceService(ResourceService resourceService) {
214: this .resourceService = resourceService;
215: }
216:
217: public ResourcePersistence getResourcePersistence() {
218: return resourcePersistence;
219: }
220:
221: public void setResourcePersistence(
222: ResourcePersistence resourcePersistence) {
223: this .resourcePersistence = resourcePersistence;
224: }
225:
226: public ResourceFinder getResourceFinder() {
227: return resourceFinder;
228: }
229:
230: public void setResourceFinder(ResourceFinder resourceFinder) {
231: this .resourceFinder = resourceFinder;
232: }
233:
234: public UserLocalService getUserLocalService() {
235: return userLocalService;
236: }
237:
238: public void setUserLocalService(UserLocalService userLocalService) {
239: this .userLocalService = userLocalService;
240: }
241:
242: public UserService getUserService() {
243: return userService;
244: }
245:
246: public void setUserService(UserService userService) {
247: this .userService = userService;
248: }
249:
250: public UserPersistence getUserPersistence() {
251: return userPersistence;
252: }
253:
254: public void setUserPersistence(UserPersistence userPersistence) {
255: this .userPersistence = userPersistence;
256: }
257:
258: public UserFinder getUserFinder() {
259: return userFinder;
260: }
261:
262: public void setUserFinder(UserFinder userFinder) {
263: this .userFinder = userFinder;
264: }
265:
266: public TagsEntryLocalService getTagsEntryLocalService() {
267: return tagsEntryLocalService;
268: }
269:
270: public void setTagsEntryLocalService(
271: TagsEntryLocalService tagsEntryLocalService) {
272: this .tagsEntryLocalService = tagsEntryLocalService;
273: }
274:
275: public TagsEntryService getTagsEntryService() {
276: return tagsEntryService;
277: }
278:
279: public void setTagsEntryService(TagsEntryService tagsEntryService) {
280: this .tagsEntryService = tagsEntryService;
281: }
282:
283: public TagsEntryPersistence getTagsEntryPersistence() {
284: return tagsEntryPersistence;
285: }
286:
287: public void setTagsEntryPersistence(
288: TagsEntryPersistence tagsEntryPersistence) {
289: this .tagsEntryPersistence = tagsEntryPersistence;
290: }
291:
292: public TagsEntryFinder getTagsEntryFinder() {
293: return tagsEntryFinder;
294: }
295:
296: public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
297: this .tagsEntryFinder = tagsEntryFinder;
298: }
299:
300: public void afterPropertiesSet() {
301: if (wikiNodePersistence == null) {
302: wikiNodePersistence = WikiNodeUtil.getPersistence();
303: }
304:
305: if (wikiPageLocalService == null) {
306: wikiPageLocalService = WikiPageLocalServiceFactory
307: .getImpl();
308: }
309:
310: if (wikiPageService == null) {
311: wikiPageService = WikiPageServiceFactory.getImpl();
312: }
313:
314: if (wikiPagePersistence == null) {
315: wikiPagePersistence = WikiPageUtil.getPersistence();
316: }
317:
318: if (wikiPageFinder == null) {
319: wikiPageFinder = WikiPageFinderUtil.getFinder();
320: }
321:
322: if (wikiPageResourceLocalService == null) {
323: wikiPageResourceLocalService = WikiPageResourceLocalServiceFactory
324: .getImpl();
325: }
326:
327: if (wikiPageResourcePersistence == null) {
328: wikiPageResourcePersistence = WikiPageResourceUtil
329: .getPersistence();
330: }
331:
332: if (counterLocalService == null) {
333: counterLocalService = CounterLocalServiceFactory.getImpl();
334: }
335:
336: if (counterService == null) {
337: counterService = CounterServiceFactory.getImpl();
338: }
339:
340: if (resourceLocalService == null) {
341: resourceLocalService = ResourceLocalServiceFactory
342: .getImpl();
343: }
344:
345: if (resourceService == null) {
346: resourceService = ResourceServiceFactory.getImpl();
347: }
348:
349: if (resourcePersistence == null) {
350: resourcePersistence = ResourceUtil.getPersistence();
351: }
352:
353: if (resourceFinder == null) {
354: resourceFinder = ResourceFinderUtil.getFinder();
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: if (tagsEntryLocalService == null) {
374: tagsEntryLocalService = TagsEntryLocalServiceFactory
375: .getImpl();
376: }
377:
378: if (tagsEntryService == null) {
379: tagsEntryService = TagsEntryServiceFactory.getImpl();
380: }
381:
382: if (tagsEntryPersistence == null) {
383: tagsEntryPersistence = TagsEntryUtil.getPersistence();
384: }
385:
386: if (tagsEntryFinder == null) {
387: tagsEntryFinder = TagsEntryFinderUtil.getFinder();
388: }
389: }
390:
391: protected WikiNodePersistence wikiNodePersistence;
392: protected WikiPageLocalService wikiPageLocalService;
393: protected WikiPageService wikiPageService;
394: protected WikiPagePersistence wikiPagePersistence;
395: protected WikiPageFinder wikiPageFinder;
396: protected WikiPageResourceLocalService wikiPageResourceLocalService;
397: protected WikiPageResourcePersistence wikiPageResourcePersistence;
398: protected CounterLocalService counterLocalService;
399: protected CounterService counterService;
400: protected ResourceLocalService resourceLocalService;
401: protected ResourceService resourceService;
402: protected ResourcePersistence resourcePersistence;
403: protected ResourceFinder resourceFinder;
404: protected UserLocalService userLocalService;
405: protected UserService userService;
406: protected UserPersistence userPersistence;
407: protected UserFinder userFinder;
408: protected TagsEntryLocalService tagsEntryLocalService;
409: protected TagsEntryService tagsEntryService;
410: protected TagsEntryPersistence tagsEntryPersistence;
411: protected TagsEntryFinder tagsEntryFinder;
412: }
|