1
14
15 package com.liferay.portlet.messageboards.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class MBBanLocalServiceUtil {
40 public static com.liferay.portlet.messageboards.model.MBBan addMBBan(
41 com.liferay.portlet.messageboards.model.MBBan mbBan)
42 throws com.liferay.portal.SystemException {
43 return getService().addMBBan(mbBan);
44 }
45
46 public static com.liferay.portlet.messageboards.model.MBBan createMBBan(
47 long banId) {
48 return getService().createMBBan(banId);
49 }
50
51 public static void deleteMBBan(long banId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteMBBan(banId);
55 }
56
57 public static void deleteMBBan(
58 com.liferay.portlet.messageboards.model.MBBan mbBan)
59 throws com.liferay.portal.SystemException {
60 getService().deleteMBBan(mbBan);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portlet.messageboards.model.MBBan getMBBan(
91 long banId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException {
94 return getService().getMBBan(banId);
95 }
96
97 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> getMBBans(
98 int start, int end) throws com.liferay.portal.SystemException {
99 return getService().getMBBans(start, end);
100 }
101
102 public static int getMBBansCount()
103 throws com.liferay.portal.SystemException {
104 return getService().getMBBansCount();
105 }
106
107 public static com.liferay.portlet.messageboards.model.MBBan updateMBBan(
108 com.liferay.portlet.messageboards.model.MBBan mbBan)
109 throws com.liferay.portal.SystemException {
110 return getService().updateMBBan(mbBan);
111 }
112
113 public static com.liferay.portlet.messageboards.model.MBBan updateMBBan(
114 com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
115 throws com.liferay.portal.SystemException {
116 return getService().updateMBBan(mbBan, merge);
117 }
118
119 public static com.liferay.portlet.messageboards.model.MBBan addBan(
120 long userId, long banUserId,
121 com.liferay.portal.service.ServiceContext serviceContext)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException {
124 return getService().addBan(userId, banUserId, serviceContext);
125 }
126
127 public static void checkBan(long groupId, long banUserId)
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.SystemException {
130 getService().checkBan(groupId, banUserId);
131 }
132
133 public static void deleteBan(long banUserId,
134 com.liferay.portal.service.ServiceContext serviceContext)
135 throws com.liferay.portal.SystemException {
136 getService().deleteBan(banUserId, serviceContext);
137 }
138
139 public static void deleteBansByBanUserId(long banUserId)
140 throws com.liferay.portal.SystemException {
141 getService().deleteBansByBanUserId(banUserId);
142 }
143
144 public static void deleteBansByGroupId(long groupId)
145 throws com.liferay.portal.SystemException {
146 getService().deleteBansByGroupId(groupId);
147 }
148
149 public static void expireBans() throws com.liferay.portal.SystemException {
150 getService().expireBans();
151 }
152
153 public static java.util.List<com.liferay.portlet.messageboards.model.MBBan> getBans(
154 long groupId, int start, int end)
155 throws com.liferay.portal.SystemException {
156 return getService().getBans(groupId, start, end);
157 }
158
159 public static int getBansCount(long groupId)
160 throws com.liferay.portal.SystemException {
161 return getService().getBansCount(groupId);
162 }
163
164 public static boolean hasBan(long groupId, long banUserId)
165 throws com.liferay.portal.SystemException {
166 return getService().hasBan(groupId, banUserId);
167 }
168
169 public static MBBanLocalService getService() {
170 if (_service == null) {
171 _service = (MBBanLocalService)PortalBeanLocatorUtil.locate(MBBanLocalService.class.getName());
172 }
173
174 return _service;
175 }
176
177 public void setService(MBBanLocalService service) {
178 _service = service;
179 }
180
181 private static MBBanLocalService _service;
182 }