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.ratings.service;
022:
023: /**
024: * <a href="RatingsEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portlet.ratings.service.RatingsEntryLocalService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portlet.ratings.service.RatingsEntryLocalServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portlet.ratings.service.RatingsEntryLocalService
047: * @see com.liferay.portlet.ratings.service.RatingsEntryLocalServiceFactory
048: *
049: */
050: public class RatingsEntryLocalServiceUtil {
051: public static com.liferay.portlet.ratings.model.RatingsEntry addRatingsEntry(
052: com.liferay.portlet.ratings.model.RatingsEntry model)
053: throws com.liferay.portal.SystemException {
054: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
055: .getService();
056:
057: return ratingsEntryLocalService.addRatingsEntry(model);
058: }
059:
060: public static java.util.List dynamicQuery(
061: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
062: throws com.liferay.portal.SystemException {
063: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
064: .getService();
065:
066: return ratingsEntryLocalService.dynamicQuery(queryInitializer);
067: }
068:
069: public static java.util.List dynamicQuery(
070: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
071: int begin, int end)
072: throws com.liferay.portal.SystemException {
073: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
074: .getService();
075:
076: return ratingsEntryLocalService.dynamicQuery(queryInitializer,
077: begin, end);
078: }
079:
080: public static com.liferay.portlet.ratings.model.RatingsEntry updateRatingsEntry(
081: com.liferay.portlet.ratings.model.RatingsEntry model)
082: throws com.liferay.portal.SystemException {
083: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
084: .getService();
085:
086: return ratingsEntryLocalService.updateRatingsEntry(model);
087: }
088:
089: public static com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence getRatingsEntryPersistence() {
090: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
091: .getService();
092:
093: return ratingsEntryLocalService.getRatingsEntryPersistence();
094: }
095:
096: public static void setRatingsEntryPersistence(
097: com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence ratingsEntryPersistence) {
098: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
099: .getService();
100:
101: ratingsEntryLocalService
102: .setRatingsEntryPersistence(ratingsEntryPersistence);
103: }
104:
105: public static com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence getRatingsStatsPersistence() {
106: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
107: .getService();
108:
109: return ratingsEntryLocalService.getRatingsStatsPersistence();
110: }
111:
112: public static void setRatingsStatsPersistence(
113: com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence ratingsStatsPersistence) {
114: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
115: .getService();
116:
117: ratingsEntryLocalService
118: .setRatingsStatsPersistence(ratingsStatsPersistence);
119: }
120:
121: public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
122: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
123: .getService();
124:
125: return ratingsEntryLocalService.getUserPersistence();
126: }
127:
128: public static void setUserPersistence(
129: com.liferay.portal.service.persistence.UserPersistence userPersistence) {
130: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
131: .getService();
132:
133: ratingsEntryLocalService.setUserPersistence(userPersistence);
134: }
135:
136: public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
137: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
138: .getService();
139:
140: return ratingsEntryLocalService.getUserFinder();
141: }
142:
143: public static void setUserFinder(
144: com.liferay.portal.service.persistence.UserFinder userFinder) {
145: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
146: .getService();
147:
148: ratingsEntryLocalService.setUserFinder(userFinder);
149: }
150:
151: public static com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence getBlogsEntryPersistence() {
152: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
153: .getService();
154:
155: return ratingsEntryLocalService.getBlogsEntryPersistence();
156: }
157:
158: public static void setBlogsEntryPersistence(
159: com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence blogsEntryPersistence) {
160: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
161: .getService();
162:
163: ratingsEntryLocalService
164: .setBlogsEntryPersistence(blogsEntryPersistence);
165: }
166:
167: public static com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder getBlogsEntryFinder() {
168: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
169: .getService();
170:
171: return ratingsEntryLocalService.getBlogsEntryFinder();
172: }
173:
174: public static void setBlogsEntryFinder(
175: com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder blogsEntryFinder) {
176: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
177: .getService();
178:
179: ratingsEntryLocalService.setBlogsEntryFinder(blogsEntryFinder);
180: }
181:
182: public static com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
183: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
184: .getService();
185:
186: return ratingsEntryLocalService.getBlogsStatsUserPersistence();
187: }
188:
189: public static void setBlogsStatsUserPersistence(
190: com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence blogsStatsUserPersistence) {
191: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
192: .getService();
193:
194: ratingsEntryLocalService
195: .setBlogsStatsUserPersistence(blogsStatsUserPersistence);
196: }
197:
198: public static com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder getBlogsStatsUserFinder() {
199: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
200: .getService();
201:
202: return ratingsEntryLocalService.getBlogsStatsUserFinder();
203: }
204:
205: public static void setBlogsStatsUserFinder(
206: com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder blogsStatsUserFinder) {
207: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
208: .getService();
209:
210: ratingsEntryLocalService
211: .setBlogsStatsUserFinder(blogsStatsUserFinder);
212: }
213:
214: public static void afterPropertiesSet() {
215: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
216: .getService();
217:
218: ratingsEntryLocalService.afterPropertiesSet();
219: }
220:
221: public static com.liferay.portlet.ratings.model.RatingsEntry getEntry(
222: long userId, java.lang.String className, long classPK)
223: throws com.liferay.portal.PortalException,
224: com.liferay.portal.SystemException {
225: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
226: .getService();
227:
228: return ratingsEntryLocalService.getEntry(userId, className,
229: classPK);
230: }
231:
232: public static java.util.List getEntries(java.lang.String className,
233: long classPK) throws com.liferay.portal.PortalException,
234: com.liferay.portal.SystemException {
235: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
236: .getService();
237:
238: return ratingsEntryLocalService.getEntries(className, classPK);
239: }
240:
241: public static com.liferay.portlet.ratings.model.RatingsEntry updateEntry(
242: long userId, java.lang.String className, long classPK,
243: double score) throws com.liferay.portal.PortalException,
244: com.liferay.portal.SystemException {
245: RatingsEntryLocalService ratingsEntryLocalService = RatingsEntryLocalServiceFactory
246: .getService();
247:
248: return ratingsEntryLocalService.updateEntry(userId, className,
249: classPK, score);
250: }
251: }
|