1
14
15 package com.liferay.portlet.ratings.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class RatingsEntryLocalServiceUtil {
40 public static com.liferay.portlet.ratings.model.RatingsEntry addRatingsEntry(
41 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addRatingsEntry(ratingsEntry);
44 }
45
46 public static com.liferay.portlet.ratings.model.RatingsEntry createRatingsEntry(
47 long entryId) {
48 return getService().createRatingsEntry(entryId);
49 }
50
51 public static void deleteRatingsEntry(long entryId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteRatingsEntry(entryId);
55 }
56
57 public static void deleteRatingsEntry(
58 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteRatingsEntry(ratingsEntry);
61 }
62
63 @SuppressWarnings("unchecked")
64 public static java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.kernel.exception.SystemException {
67 return getService().dynamicQuery(dynamicQuery);
68 }
69
70 @SuppressWarnings("unchecked")
71 public static java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.kernel.exception.SystemException {
74 return getService().dynamicQuery(dynamicQuery, start, end);
75 }
76
77 @SuppressWarnings("unchecked")
78 public static java.util.List dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80 int end,
81 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82 throws com.liferay.portal.kernel.exception.SystemException {
83 return getService()
84 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85 }
86
87 public static long dynamicQueryCount(
88 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().dynamicQueryCount(dynamicQuery);
91 }
92
93 public static com.liferay.portlet.ratings.model.RatingsEntry getRatingsEntry(
94 long entryId)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException {
97 return getService().getRatingsEntry(entryId);
98 }
99
100 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getRatingsEntries(
101 int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getRatingsEntries(start, end);
104 }
105
106 public static int getRatingsEntriesCount()
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getRatingsEntriesCount();
109 }
110
111 public static com.liferay.portlet.ratings.model.RatingsEntry updateRatingsEntry(
112 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateRatingsEntry(ratingsEntry);
115 }
116
117 public static com.liferay.portlet.ratings.model.RatingsEntry updateRatingsEntry(
118 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().updateRatingsEntry(ratingsEntry, merge);
122 }
123
124 public static void deleteEntry(long userId, java.lang.String className,
125 long classPK)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException {
128 getService().deleteEntry(userId, className, classPK);
129 }
130
131 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
132 long userId, java.lang.String className,
133 java.util.List<java.lang.Long> classPKs)
134 throws com.liferay.portal.kernel.exception.SystemException {
135 return getService().getEntries(userId, className, classPKs);
136 }
137
138 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
139 java.lang.String className, long classPK)
140 throws com.liferay.portal.kernel.exception.SystemException {
141 return getService().getEntries(className, classPK);
142 }
143
144 public static com.liferay.portlet.ratings.model.RatingsEntry getEntry(
145 long userId, java.lang.String className, long classPK)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException {
148 return getService().getEntry(userId, className, classPK);
149 }
150
151 public static com.liferay.portlet.ratings.model.RatingsEntry updateEntry(
152 long userId, java.lang.String className, long classPK, double score,
153 com.liferay.portal.service.ServiceContext serviceContext)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException {
156 return getService()
157 .updateEntry(userId, className, classPK, score,
158 serviceContext);
159 }
160
161 public static RatingsEntryLocalService getService() {
162 if (_service == null) {
163 _service = (RatingsEntryLocalService)PortalBeanLocatorUtil.locate(RatingsEntryLocalService.class.getName());
164 }
165
166 return _service;
167 }
168
169 public void setService(RatingsEntryLocalService service) {
170 _service = service;
171 }
172
173 private static RatingsEntryLocalService _service;
174 }