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.imagegallery.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.imagegallery.model.IGFolder;
048: import com.liferay.portlet.imagegallery.model.impl.IGFolderImpl;
049: import com.liferay.portlet.imagegallery.service.IGFolderLocalService;
050: import com.liferay.portlet.imagegallery.service.IGImageLocalService;
051: import com.liferay.portlet.imagegallery.service.IGImageLocalServiceFactory;
052: import com.liferay.portlet.imagegallery.service.IGImageService;
053: import com.liferay.portlet.imagegallery.service.IGImageServiceFactory;
054: import com.liferay.portlet.imagegallery.service.persistence.IGFolderPersistence;
055: import com.liferay.portlet.imagegallery.service.persistence.IGFolderUtil;
056: import com.liferay.portlet.imagegallery.service.persistence.IGImageFinder;
057: import com.liferay.portlet.imagegallery.service.persistence.IGImageFinderUtil;
058: import com.liferay.portlet.imagegallery.service.persistence.IGImagePersistence;
059: import com.liferay.portlet.imagegallery.service.persistence.IGImageUtil;
060: import com.liferay.portlet.tags.service.TagsEntryLocalService;
061: import com.liferay.portlet.tags.service.TagsEntryLocalServiceFactory;
062: import com.liferay.portlet.tags.service.TagsEntryService;
063: import com.liferay.portlet.tags.service.TagsEntryServiceFactory;
064: import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
065: import com.liferay.portlet.tags.service.persistence.TagsEntryFinderUtil;
066: import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
067: import com.liferay.portlet.tags.service.persistence.TagsEntryUtil;
068:
069: import org.springframework.beans.factory.InitializingBean;
070:
071: import java.util.List;
072:
073: /**
074: * <a href="IGFolderLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
075: *
076: * @author Brian Wing Shun Chan
077: *
078: */
079: public abstract class IGFolderLocalServiceBaseImpl implements
080: IGFolderLocalService, InitializingBean {
081: public IGFolder addIGFolder(IGFolder model) throws SystemException {
082: IGFolder igFolder = new IGFolderImpl();
083:
084: igFolder.setNew(true);
085:
086: igFolder.setUuid(model.getUuid());
087: igFolder.setFolderId(model.getFolderId());
088: igFolder.setGroupId(model.getGroupId());
089: igFolder.setCompanyId(model.getCompanyId());
090: igFolder.setUserId(model.getUserId());
091: igFolder.setCreateDate(model.getCreateDate());
092: igFolder.setModifiedDate(model.getModifiedDate());
093: igFolder.setParentFolderId(model.getParentFolderId());
094: igFolder.setName(model.getName());
095: igFolder.setDescription(model.getDescription());
096:
097: return igFolderPersistence.update(igFolder);
098: }
099:
100: public List dynamicQuery(DynamicQueryInitializer queryInitializer)
101: throws SystemException {
102: return igFolderPersistence
103: .findWithDynamicQuery(queryInitializer);
104: }
105:
106: public List dynamicQuery(DynamicQueryInitializer queryInitializer,
107: int begin, int end) throws SystemException {
108: return igFolderPersistence.findWithDynamicQuery(
109: queryInitializer, begin, end);
110: }
111:
112: public IGFolder updateIGFolder(IGFolder model)
113: throws SystemException {
114: return igFolderPersistence.update(model, true);
115: }
116:
117: public IGFolderPersistence getIGFolderPersistence() {
118: return igFolderPersistence;
119: }
120:
121: public void setIGFolderPersistence(
122: IGFolderPersistence igFolderPersistence) {
123: this .igFolderPersistence = igFolderPersistence;
124: }
125:
126: public IGImageLocalService getIGImageLocalService() {
127: return igImageLocalService;
128: }
129:
130: public void setIGImageLocalService(
131: IGImageLocalService igImageLocalService) {
132: this .igImageLocalService = igImageLocalService;
133: }
134:
135: public IGImageService getIGImageService() {
136: return igImageService;
137: }
138:
139: public void setIGImageService(IGImageService igImageService) {
140: this .igImageService = igImageService;
141: }
142:
143: public IGImagePersistence getIGImagePersistence() {
144: return igImagePersistence;
145: }
146:
147: public void setIGImagePersistence(
148: IGImagePersistence igImagePersistence) {
149: this .igImagePersistence = igImagePersistence;
150: }
151:
152: public IGImageFinder getIGImageFinder() {
153: return igImageFinder;
154: }
155:
156: public void setIGImageFinder(IGImageFinder igImageFinder) {
157: this .igImageFinder = igImageFinder;
158: }
159:
160: public CounterLocalService getCounterLocalService() {
161: return counterLocalService;
162: }
163:
164: public void setCounterLocalService(
165: CounterLocalService counterLocalService) {
166: this .counterLocalService = counterLocalService;
167: }
168:
169: public CounterService getCounterService() {
170: return counterService;
171: }
172:
173: public void setCounterService(CounterService counterService) {
174: this .counterService = counterService;
175: }
176:
177: public ResourceLocalService getResourceLocalService() {
178: return resourceLocalService;
179: }
180:
181: public void setResourceLocalService(
182: ResourceLocalService resourceLocalService) {
183: this .resourceLocalService = resourceLocalService;
184: }
185:
186: public ResourceService getResourceService() {
187: return resourceService;
188: }
189:
190: public void setResourceService(ResourceService resourceService) {
191: this .resourceService = resourceService;
192: }
193:
194: public ResourcePersistence getResourcePersistence() {
195: return resourcePersistence;
196: }
197:
198: public void setResourcePersistence(
199: ResourcePersistence resourcePersistence) {
200: this .resourcePersistence = resourcePersistence;
201: }
202:
203: public ResourceFinder getResourceFinder() {
204: return resourceFinder;
205: }
206:
207: public void setResourceFinder(ResourceFinder resourceFinder) {
208: this .resourceFinder = resourceFinder;
209: }
210:
211: public UserLocalService getUserLocalService() {
212: return userLocalService;
213: }
214:
215: public void setUserLocalService(UserLocalService userLocalService) {
216: this .userLocalService = userLocalService;
217: }
218:
219: public UserService getUserService() {
220: return userService;
221: }
222:
223: public void setUserService(UserService userService) {
224: this .userService = userService;
225: }
226:
227: public UserPersistence getUserPersistence() {
228: return userPersistence;
229: }
230:
231: public void setUserPersistence(UserPersistence userPersistence) {
232: this .userPersistence = userPersistence;
233: }
234:
235: public UserFinder getUserFinder() {
236: return userFinder;
237: }
238:
239: public void setUserFinder(UserFinder userFinder) {
240: this .userFinder = userFinder;
241: }
242:
243: public TagsEntryLocalService getTagsEntryLocalService() {
244: return tagsEntryLocalService;
245: }
246:
247: public void setTagsEntryLocalService(
248: TagsEntryLocalService tagsEntryLocalService) {
249: this .tagsEntryLocalService = tagsEntryLocalService;
250: }
251:
252: public TagsEntryService getTagsEntryService() {
253: return tagsEntryService;
254: }
255:
256: public void setTagsEntryService(TagsEntryService tagsEntryService) {
257: this .tagsEntryService = tagsEntryService;
258: }
259:
260: public TagsEntryPersistence getTagsEntryPersistence() {
261: return tagsEntryPersistence;
262: }
263:
264: public void setTagsEntryPersistence(
265: TagsEntryPersistence tagsEntryPersistence) {
266: this .tagsEntryPersistence = tagsEntryPersistence;
267: }
268:
269: public TagsEntryFinder getTagsEntryFinder() {
270: return tagsEntryFinder;
271: }
272:
273: public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
274: this .tagsEntryFinder = tagsEntryFinder;
275: }
276:
277: public void afterPropertiesSet() {
278: if (igFolderPersistence == null) {
279: igFolderPersistence = IGFolderUtil.getPersistence();
280: }
281:
282: if (igImageLocalService == null) {
283: igImageLocalService = IGImageLocalServiceFactory.getImpl();
284: }
285:
286: if (igImageService == null) {
287: igImageService = IGImageServiceFactory.getImpl();
288: }
289:
290: if (igImagePersistence == null) {
291: igImagePersistence = IGImageUtil.getPersistence();
292: }
293:
294: if (igImageFinder == null) {
295: igImageFinder = IGImageFinderUtil.getFinder();
296: }
297:
298: if (counterLocalService == null) {
299: counterLocalService = CounterLocalServiceFactory.getImpl();
300: }
301:
302: if (counterService == null) {
303: counterService = CounterServiceFactory.getImpl();
304: }
305:
306: if (resourceLocalService == null) {
307: resourceLocalService = ResourceLocalServiceFactory
308: .getImpl();
309: }
310:
311: if (resourceService == null) {
312: resourceService = ResourceServiceFactory.getImpl();
313: }
314:
315: if (resourcePersistence == null) {
316: resourcePersistence = ResourceUtil.getPersistence();
317: }
318:
319: if (resourceFinder == null) {
320: resourceFinder = ResourceFinderUtil.getFinder();
321: }
322:
323: if (userLocalService == null) {
324: userLocalService = UserLocalServiceFactory.getImpl();
325: }
326:
327: if (userService == null) {
328: userService = UserServiceFactory.getImpl();
329: }
330:
331: if (userPersistence == null) {
332: userPersistence = UserUtil.getPersistence();
333: }
334:
335: if (userFinder == null) {
336: userFinder = UserFinderUtil.getFinder();
337: }
338:
339: if (tagsEntryLocalService == null) {
340: tagsEntryLocalService = TagsEntryLocalServiceFactory
341: .getImpl();
342: }
343:
344: if (tagsEntryService == null) {
345: tagsEntryService = TagsEntryServiceFactory.getImpl();
346: }
347:
348: if (tagsEntryPersistence == null) {
349: tagsEntryPersistence = TagsEntryUtil.getPersistence();
350: }
351:
352: if (tagsEntryFinder == null) {
353: tagsEntryFinder = TagsEntryFinderUtil.getFinder();
354: }
355: }
356:
357: protected IGFolderPersistence igFolderPersistence;
358: protected IGImageLocalService igImageLocalService;
359: protected IGImageService igImageService;
360: protected IGImagePersistence igImagePersistence;
361: protected IGImageFinder igImageFinder;
362: protected CounterLocalService counterLocalService;
363: protected CounterService counterService;
364: protected ResourceLocalService resourceLocalService;
365: protected ResourceService resourceService;
366: protected ResourcePersistence resourcePersistence;
367: protected ResourceFinder resourceFinder;
368: protected UserLocalService userLocalService;
369: protected UserService userService;
370: protected UserPersistence userPersistence;
371: protected UserFinder userFinder;
372: protected TagsEntryLocalService tagsEntryLocalService;
373: protected TagsEntryService tagsEntryService;
374: protected TagsEntryPersistence tagsEntryPersistence;
375: protected TagsEntryFinder tagsEntryFinder;
376: }
|