001
014
015 package com.liferay.portlet.mobiledevicerules.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.model.SystemEventConstants;
026 import com.liferay.portal.service.BaseLocalService;
027 import com.liferay.portal.service.PersistedModelLocalService;
028
029
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface MDRRuleLocalService extends BaseLocalService,
045 PersistedModelLocalService {
046
051
052
059 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
060 public com.liferay.portlet.mobiledevicerules.model.MDRRule addMDRRule(
061 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule)
062 throws com.liferay.portal.kernel.exception.SystemException;
063
064
070 public com.liferay.portlet.mobiledevicerules.model.MDRRule createMDRRule(
071 long ruleId);
072
073
081 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
082 public com.liferay.portlet.mobiledevicerules.model.MDRRule deleteMDRRule(
083 long ruleId)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException;
086
087
094 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
095 public com.liferay.portlet.mobiledevicerules.model.MDRRule deleteMDRRule(
096 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
100
101
108 @SuppressWarnings("rawtypes")
109 public java.util.List dynamicQuery(
110 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113
126 @SuppressWarnings("rawtypes")
127 public java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end) throws com.liferay.portal.kernel.exception.SystemException;
130
131
145 @SuppressWarnings("rawtypes")
146 public java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152
159 public long dynamicQueryCount(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
161 throws com.liferay.portal.kernel.exception.SystemException;
162
163
171 public long dynamicQueryCount(
172 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
173 com.liferay.portal.kernel.dao.orm.Projection projection)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchMDRRule(
178 long ruleId) throws com.liferay.portal.kernel.exception.SystemException;
179
180
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchMDRRuleByUuidAndCompanyId(
190 java.lang.String uuid, long companyId)
191 throws com.liferay.portal.kernel.exception.SystemException;
192
193
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchMDRRuleByUuidAndGroupId(
203 java.lang.String uuid, long groupId)
204 throws com.liferay.portal.kernel.exception.SystemException;
205
206
214 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215 public com.liferay.portlet.mobiledevicerules.model.MDRRule getMDRRule(
216 long ruleId)
217 throws com.liferay.portal.kernel.exception.PortalException,
218 com.liferay.portal.kernel.exception.SystemException;
219
220 @Override
221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222 public com.liferay.portal.model.PersistedModel getPersistedModel(
223 java.io.Serializable primaryKeyObj)
224 throws com.liferay.portal.kernel.exception.PortalException,
225 com.liferay.portal.kernel.exception.SystemException;
226
227
236 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237 public com.liferay.portlet.mobiledevicerules.model.MDRRule getMDRRuleByUuidAndCompanyId(
238 java.lang.String uuid, long companyId)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException;
241
242
251 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252 public com.liferay.portlet.mobiledevicerules.model.MDRRule getMDRRuleByUuidAndGroupId(
253 java.lang.String uuid, long groupId)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getMDRRules(
271 int start, int end)
272 throws com.liferay.portal.kernel.exception.SystemException;
273
274
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public int getMDRRulesCount()
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284
291 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
292 public com.liferay.portlet.mobiledevicerules.model.MDRRule updateMDRRule(
293 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule)
294 throws com.liferay.portal.kernel.exception.SystemException;
295
296
301 public java.lang.String getBeanIdentifier();
302
303
308 public void setBeanIdentifier(java.lang.String beanIdentifier);
309
310 public com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
311 long ruleGroupId,
312 java.util.Map<java.util.Locale, java.lang.String> nameMap,
313 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
314 java.lang.String type, java.lang.String typeSettings,
315 com.liferay.portal.service.ServiceContext serviceContext)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException;
318
319 public com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
320 long ruleGroupId,
321 java.util.Map<java.util.Locale, java.lang.String> nameMap,
322 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
323 java.lang.String type,
324 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
325 com.liferay.portal.service.ServiceContext serviceContext)
326 throws com.liferay.portal.kernel.exception.PortalException,
327 com.liferay.portal.kernel.exception.SystemException;
328
329 public com.liferay.portlet.mobiledevicerules.model.MDRRule copyRule(
330 long ruleId, long ruleGroupId,
331 com.liferay.portal.service.ServiceContext serviceContext)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException;
334
335 public com.liferay.portlet.mobiledevicerules.model.MDRRule copyRule(
336 com.liferay.portlet.mobiledevicerules.model.MDRRule rule,
337 long ruleGroupId,
338 com.liferay.portal.service.ServiceContext serviceContext)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException;
341
342 public void deleteRule(long ruleId)
343 throws com.liferay.portal.kernel.exception.SystemException;
344
345 @com.liferay.portal.kernel.systemevent.SystemEvent(type = SystemEventConstants.TYPE_DELETE)
346 public void deleteRule(
347 com.liferay.portlet.mobiledevicerules.model.MDRRule rule)
348 throws com.liferay.portal.kernel.exception.SystemException;
349
350 public void deleteRules(long ruleGroupId)
351 throws com.liferay.portal.kernel.exception.SystemException;
352
353 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354 public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchRule(
355 long ruleId) throws com.liferay.portal.kernel.exception.SystemException;
356
357 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358 public com.liferay.portlet.mobiledevicerules.model.MDRRule getRule(
359 long ruleId)
360 throws com.liferay.portal.kernel.exception.PortalException,
361 com.liferay.portal.kernel.exception.SystemException;
362
363 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
365 long ruleGroupId)
366 throws com.liferay.portal.kernel.exception.SystemException;
367
368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
370 long ruleGroupId, int start, int end)
371 throws com.liferay.portal.kernel.exception.SystemException;
372
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public int getRulesCount(long ruleGroupId)
375 throws com.liferay.portal.kernel.exception.SystemException;
376
377 public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
378 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
379 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
380 java.lang.String type, java.lang.String typeSettings,
381 com.liferay.portal.service.ServiceContext serviceContext)
382 throws com.liferay.portal.kernel.exception.PortalException,
383 com.liferay.portal.kernel.exception.SystemException;
384
385 public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
386 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
387 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
388 java.lang.String type,
389 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
390 com.liferay.portal.service.ServiceContext serviceContext)
391 throws com.liferay.portal.kernel.exception.PortalException,
392 com.liferay.portal.kernel.exception.SystemException;
393 }