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.service.ResourceLocalService;
029: import com.liferay.portal.service.ResourceLocalServiceFactory;
030: import com.liferay.portal.service.ResourceService;
031: import com.liferay.portal.service.ResourceServiceFactory;
032: import com.liferay.portal.service.UserLocalService;
033: import com.liferay.portal.service.UserLocalServiceFactory;
034: import com.liferay.portal.service.UserService;
035: import com.liferay.portal.service.UserServiceFactory;
036: import com.liferay.portal.service.impl.PrincipalBean;
037: import com.liferay.portal.service.persistence.ResourceFinder;
038: import com.liferay.portal.service.persistence.ResourceFinderUtil;
039: import com.liferay.portal.service.persistence.ResourcePersistence;
040: import com.liferay.portal.service.persistence.ResourceUtil;
041: import com.liferay.portal.service.persistence.UserFinder;
042: import com.liferay.portal.service.persistence.UserFinderUtil;
043: import com.liferay.portal.service.persistence.UserPersistence;
044: import com.liferay.portal.service.persistence.UserUtil;
045:
046: import com.liferay.portlet.imagegallery.service.IGFolderLocalService;
047: import com.liferay.portlet.imagegallery.service.IGFolderLocalServiceFactory;
048: import com.liferay.portlet.imagegallery.service.IGFolderService;
049: import com.liferay.portlet.imagegallery.service.IGFolderServiceFactory;
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.persistence.IGFolderPersistence;
054: import com.liferay.portlet.imagegallery.service.persistence.IGFolderUtil;
055: import com.liferay.portlet.imagegallery.service.persistence.IGImageFinder;
056: import com.liferay.portlet.imagegallery.service.persistence.IGImageFinderUtil;
057: import com.liferay.portlet.imagegallery.service.persistence.IGImagePersistence;
058: import com.liferay.portlet.imagegallery.service.persistence.IGImageUtil;
059: import com.liferay.portlet.tags.service.TagsAssetLocalService;
060: import com.liferay.portlet.tags.service.TagsAssetLocalServiceFactory;
061: import com.liferay.portlet.tags.service.TagsAssetService;
062: import com.liferay.portlet.tags.service.TagsAssetServiceFactory;
063: import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
064: import com.liferay.portlet.tags.service.persistence.TagsAssetFinderUtil;
065: import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
066: import com.liferay.portlet.tags.service.persistence.TagsAssetUtil;
067:
068: import org.springframework.beans.factory.InitializingBean;
069:
070: /**
071: * <a href="IGImageServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
072: *
073: * @author Brian Wing Shun Chan
074: *
075: */
076: public abstract class IGImageServiceBaseImpl extends PrincipalBean
077: implements IGImageService, InitializingBean {
078: public IGFolderLocalService getIGFolderLocalService() {
079: return igFolderLocalService;
080: }
081:
082: public void setIGFolderLocalService(
083: IGFolderLocalService igFolderLocalService) {
084: this .igFolderLocalService = igFolderLocalService;
085: }
086:
087: public IGFolderService getIGFolderService() {
088: return igFolderService;
089: }
090:
091: public void setIGFolderService(IGFolderService igFolderService) {
092: this .igFolderService = igFolderService;
093: }
094:
095: public IGFolderPersistence getIGFolderPersistence() {
096: return igFolderPersistence;
097: }
098:
099: public void setIGFolderPersistence(
100: IGFolderPersistence igFolderPersistence) {
101: this .igFolderPersistence = igFolderPersistence;
102: }
103:
104: public IGImageLocalService getIGImageLocalService() {
105: return igImageLocalService;
106: }
107:
108: public void setIGImageLocalService(
109: IGImageLocalService igImageLocalService) {
110: this .igImageLocalService = igImageLocalService;
111: }
112:
113: public IGImagePersistence getIGImagePersistence() {
114: return igImagePersistence;
115: }
116:
117: public void setIGImagePersistence(
118: IGImagePersistence igImagePersistence) {
119: this .igImagePersistence = igImagePersistence;
120: }
121:
122: public IGImageFinder getIGImageFinder() {
123: return igImageFinder;
124: }
125:
126: public void setIGImageFinder(IGImageFinder igImageFinder) {
127: this .igImageFinder = igImageFinder;
128: }
129:
130: public CounterLocalService getCounterLocalService() {
131: return counterLocalService;
132: }
133:
134: public void setCounterLocalService(
135: CounterLocalService counterLocalService) {
136: this .counterLocalService = counterLocalService;
137: }
138:
139: public CounterService getCounterService() {
140: return counterService;
141: }
142:
143: public void setCounterService(CounterService counterService) {
144: this .counterService = counterService;
145: }
146:
147: public ResourceLocalService getResourceLocalService() {
148: return resourceLocalService;
149: }
150:
151: public void setResourceLocalService(
152: ResourceLocalService resourceLocalService) {
153: this .resourceLocalService = resourceLocalService;
154: }
155:
156: public ResourceService getResourceService() {
157: return resourceService;
158: }
159:
160: public void setResourceService(ResourceService resourceService) {
161: this .resourceService = resourceService;
162: }
163:
164: public ResourcePersistence getResourcePersistence() {
165: return resourcePersistence;
166: }
167:
168: public void setResourcePersistence(
169: ResourcePersistence resourcePersistence) {
170: this .resourcePersistence = resourcePersistence;
171: }
172:
173: public ResourceFinder getResourceFinder() {
174: return resourceFinder;
175: }
176:
177: public void setResourceFinder(ResourceFinder resourceFinder) {
178: this .resourceFinder = resourceFinder;
179: }
180:
181: public UserLocalService getUserLocalService() {
182: return userLocalService;
183: }
184:
185: public void setUserLocalService(UserLocalService userLocalService) {
186: this .userLocalService = userLocalService;
187: }
188:
189: public UserService getUserService() {
190: return userService;
191: }
192:
193: public void setUserService(UserService userService) {
194: this .userService = userService;
195: }
196:
197: public UserPersistence getUserPersistence() {
198: return userPersistence;
199: }
200:
201: public void setUserPersistence(UserPersistence userPersistence) {
202: this .userPersistence = userPersistence;
203: }
204:
205: public UserFinder getUserFinder() {
206: return userFinder;
207: }
208:
209: public void setUserFinder(UserFinder userFinder) {
210: this .userFinder = userFinder;
211: }
212:
213: public TagsAssetLocalService getTagsAssetLocalService() {
214: return tagsAssetLocalService;
215: }
216:
217: public void setTagsAssetLocalService(
218: TagsAssetLocalService tagsAssetLocalService) {
219: this .tagsAssetLocalService = tagsAssetLocalService;
220: }
221:
222: public TagsAssetService getTagsAssetService() {
223: return tagsAssetService;
224: }
225:
226: public void setTagsAssetService(TagsAssetService tagsAssetService) {
227: this .tagsAssetService = tagsAssetService;
228: }
229:
230: public TagsAssetPersistence getTagsAssetPersistence() {
231: return tagsAssetPersistence;
232: }
233:
234: public void setTagsAssetPersistence(
235: TagsAssetPersistence tagsAssetPersistence) {
236: this .tagsAssetPersistence = tagsAssetPersistence;
237: }
238:
239: public TagsAssetFinder getTagsAssetFinder() {
240: return tagsAssetFinder;
241: }
242:
243: public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
244: this .tagsAssetFinder = tagsAssetFinder;
245: }
246:
247: public void afterPropertiesSet() {
248: if (igFolderLocalService == null) {
249: igFolderLocalService = IGFolderLocalServiceFactory
250: .getImpl();
251: }
252:
253: if (igFolderService == null) {
254: igFolderService = IGFolderServiceFactory.getImpl();
255: }
256:
257: if (igFolderPersistence == null) {
258: igFolderPersistence = IGFolderUtil.getPersistence();
259: }
260:
261: if (igImageLocalService == null) {
262: igImageLocalService = IGImageLocalServiceFactory.getImpl();
263: }
264:
265: if (igImagePersistence == null) {
266: igImagePersistence = IGImageUtil.getPersistence();
267: }
268:
269: if (igImageFinder == null) {
270: igImageFinder = IGImageFinderUtil.getFinder();
271: }
272:
273: if (counterLocalService == null) {
274: counterLocalService = CounterLocalServiceFactory.getImpl();
275: }
276:
277: if (counterService == null) {
278: counterService = CounterServiceFactory.getImpl();
279: }
280:
281: if (resourceLocalService == null) {
282: resourceLocalService = ResourceLocalServiceFactory
283: .getImpl();
284: }
285:
286: if (resourceService == null) {
287: resourceService = ResourceServiceFactory.getImpl();
288: }
289:
290: if (resourcePersistence == null) {
291: resourcePersistence = ResourceUtil.getPersistence();
292: }
293:
294: if (resourceFinder == null) {
295: resourceFinder = ResourceFinderUtil.getFinder();
296: }
297:
298: if (userLocalService == null) {
299: userLocalService = UserLocalServiceFactory.getImpl();
300: }
301:
302: if (userService == null) {
303: userService = UserServiceFactory.getImpl();
304: }
305:
306: if (userPersistence == null) {
307: userPersistence = UserUtil.getPersistence();
308: }
309:
310: if (userFinder == null) {
311: userFinder = UserFinderUtil.getFinder();
312: }
313:
314: if (tagsAssetLocalService == null) {
315: tagsAssetLocalService = TagsAssetLocalServiceFactory
316: .getImpl();
317: }
318:
319: if (tagsAssetService == null) {
320: tagsAssetService = TagsAssetServiceFactory.getImpl();
321: }
322:
323: if (tagsAssetPersistence == null) {
324: tagsAssetPersistence = TagsAssetUtil.getPersistence();
325: }
326:
327: if (tagsAssetFinder == null) {
328: tagsAssetFinder = TagsAssetFinderUtil.getFinder();
329: }
330: }
331:
332: protected IGFolderLocalService igFolderLocalService;
333: protected IGFolderService igFolderService;
334: protected IGFolderPersistence igFolderPersistence;
335: protected IGImageLocalService igImageLocalService;
336: protected IGImagePersistence igImagePersistence;
337: protected IGImageFinder igImageFinder;
338: protected CounterLocalService counterLocalService;
339: protected CounterService counterService;
340: protected ResourceLocalService resourceLocalService;
341: protected ResourceService resourceService;
342: protected ResourcePersistence resourcePersistence;
343: protected ResourceFinder resourceFinder;
344: protected UserLocalService userLocalService;
345: protected UserService userService;
346: protected UserPersistence userPersistence;
347: protected UserFinder userFinder;
348: protected TagsAssetLocalService tagsAssetLocalService;
349: protected TagsAssetService tagsAssetService;
350: protected TagsAssetPersistence tagsAssetPersistence;
351: protected TagsAssetFinder tagsAssetFinder;
352: }
|