001
014
015 package com.liferay.portlet.social.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class SocialActivitySettingLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.social.model.SocialActivitySetting addSocialActivitySetting(
048 com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addSocialActivitySetting(socialActivitySetting);
051 }
052
053
059 public static com.liferay.portlet.social.model.SocialActivitySetting createSocialActivitySetting(
060 long activitySettingId) {
061 return getService().createSocialActivitySetting(activitySettingId);
062 }
063
064
072 public static com.liferay.portlet.social.model.SocialActivitySetting deleteSocialActivitySetting(
073 long activitySettingId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteSocialActivitySetting(activitySettingId);
077 }
078
079
086 public static com.liferay.portlet.social.model.SocialActivitySetting deleteSocialActivitySetting(
087 com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteSocialActivitySetting(socialActivitySetting);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.social.model.SocialActivitySetting fetchSocialActivitySetting(
168 long activitySettingId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchSocialActivitySetting(activitySettingId);
171 }
172
173
181 public static com.liferay.portlet.social.model.SocialActivitySetting getSocialActivitySetting(
182 long activitySettingId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getSocialActivitySetting(activitySettingId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
207 public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> getSocialActivitySettings(
208 int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getSocialActivitySettings(start, end);
211 }
212
213
219 public static int getSocialActivitySettingsCount()
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getService().getSocialActivitySettingsCount();
222 }
223
224
231 public static com.liferay.portlet.social.model.SocialActivitySetting updateSocialActivitySetting(
232 com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getService().updateSocialActivitySetting(socialActivitySetting);
235 }
236
237
245 public static com.liferay.portlet.social.model.SocialActivitySetting updateSocialActivitySetting(
246 com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting,
247 boolean merge)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getService()
250 .updateSocialActivitySetting(socialActivitySetting, merge);
251 }
252
253
258 public static java.lang.String getBeanIdentifier() {
259 return getService().getBeanIdentifier();
260 }
261
262
267 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
268 getService().setBeanIdentifier(beanIdentifier);
269 }
270
271 public static com.liferay.portlet.social.model.SocialActivityDefinition getActivityDefinition(
272 long groupId, java.lang.String className, int activityType)
273 throws com.liferay.portal.kernel.exception.SystemException {
274 return getService()
275 .getActivityDefinition(groupId, className, activityType);
276 }
277
278 public static java.util.List<com.liferay.portlet.social.model.SocialActivityDefinition> getActivityDefinitions(
279 long groupId, java.lang.String className)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 return getService().getActivityDefinitions(groupId, className);
282 }
283
284 public static java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> getActivitySettings(
285 long groupId)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getService().getActivitySettings(groupId);
288 }
289
290 public static boolean isEnabled(long groupId, long classNameId)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 return getService().isEnabled(groupId, classNameId);
293 }
294
295 public static void updateActivitySetting(long groupId,
296 java.lang.String className, boolean enabled)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException {
299 getService().updateActivitySetting(groupId, className, enabled);
300 }
301
302 public static void updateActivitySetting(long groupId,
303 java.lang.String className, int activityType,
304 com.liferay.portlet.social.model.SocialActivityCounterDefinition activityCounterDefinition)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException {
307 getService()
308 .updateActivitySetting(groupId, className, activityType,
309 activityCounterDefinition);
310 }
311
312 public static void updateActivitySettings(long groupId,
313 java.lang.String className, int activityType,
314 java.util.List<com.liferay.portlet.social.model.SocialActivityCounterDefinition> activityCounterDefinitions)
315 throws com.liferay.portal.kernel.exception.PortalException,
316 com.liferay.portal.kernel.exception.SystemException {
317 getService()
318 .updateActivitySettings(groupId, className, activityType,
319 activityCounterDefinitions);
320 }
321
322 public static SocialActivitySettingLocalService getService() {
323 if (_service == null) {
324 _service = (SocialActivitySettingLocalService)PortalBeanLocatorUtil.locate(SocialActivitySettingLocalService.class.getName());
325
326 ReferenceRegistry.registerReference(SocialActivitySettingLocalServiceUtil.class,
327 "_service");
328 }
329
330 return _service;
331 }
332
333
336 public void setService(SocialActivitySettingLocalService service) {
337 }
338
339 private static SocialActivitySettingLocalService _service;
340 }