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
058 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059 public com.liferay.portlet.mobiledevicerules.model.MDRRule addMDRRule(
060 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule);
061
062 public com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
063 long ruleGroupId,
064 java.util.Map<java.util.Locale, java.lang.String> nameMap,
065 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
066 java.lang.String type, java.lang.String typeSettings,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException;
069
070 public com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
071 long ruleGroupId,
072 java.util.Map<java.util.Locale, java.lang.String> nameMap,
073 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
074 java.lang.String type,
075 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
076 com.liferay.portal.service.ServiceContext serviceContext)
077 throws com.liferay.portal.kernel.exception.PortalException;
078
079 public com.liferay.portlet.mobiledevicerules.model.MDRRule copyRule(
080 com.liferay.portlet.mobiledevicerules.model.MDRRule rule,
081 long ruleGroupId,
082 com.liferay.portal.service.ServiceContext serviceContext)
083 throws com.liferay.portal.kernel.exception.PortalException;
084
085 public com.liferay.portlet.mobiledevicerules.model.MDRRule copyRule(
086 long ruleId, long ruleGroupId,
087 com.liferay.portal.service.ServiceContext serviceContext)
088 throws com.liferay.portal.kernel.exception.PortalException;
089
090
096 public com.liferay.portlet.mobiledevicerules.model.MDRRule createMDRRule(
097 long ruleId);
098
099
105 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
106 public com.liferay.portlet.mobiledevicerules.model.MDRRule deleteMDRRule(
107 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule);
108
109
116 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
117 public com.liferay.portlet.mobiledevicerules.model.MDRRule deleteMDRRule(
118 long ruleId) throws com.liferay.portal.kernel.exception.PortalException;
119
120
123 @Override
124 public com.liferay.portal.model.PersistedModel deletePersistedModel(
125 com.liferay.portal.model.PersistedModel persistedModel)
126 throws com.liferay.portal.kernel.exception.PortalException;
127
128 @com.liferay.portal.kernel.systemevent.SystemEvent(type = SystemEventConstants.TYPE_DELETE)
129 public void deleteRule(
130 com.liferay.portlet.mobiledevicerules.model.MDRRule rule);
131
132 public void deleteRule(long ruleId);
133
134 public void deleteRules(long ruleGroupId);
135
136 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
137
138
144 public <T> java.util.List<T> dynamicQuery(
145 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
146
147
159 public <T> java.util.List<T> dynamicQuery(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
161 int end);
162
163
176 public <T> java.util.List<T> dynamicQuery(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
178 int end,
179 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
180
181
187 public long dynamicQueryCount(
188 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
189
190
197 public long dynamicQueryCount(
198 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
199 com.liferay.portal.kernel.dao.orm.Projection projection);
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchMDRRule(
203 long ruleId);
204
205
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchMDRRuleByUuidAndGroupId(
214 java.lang.String uuid, long groupId);
215
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchRule(
218 long ruleId);
219
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
222
223
228 public java.lang.String getBeanIdentifier();
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
232 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
233
234
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public com.liferay.portlet.mobiledevicerules.model.MDRRule getMDRRule(
243 long ruleId) throws com.liferay.portal.kernel.exception.PortalException;
244
245
253 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254 public com.liferay.portlet.mobiledevicerules.model.MDRRule getMDRRuleByUuidAndGroupId(
255 java.lang.String uuid, long groupId)
256 throws com.liferay.portal.kernel.exception.PortalException;
257
258
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
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getMDRRulesByUuidAndCompanyId(
275 java.lang.String uuid, long companyId);
276
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getMDRRulesByUuidAndCompanyId(
279 java.lang.String uuid, long companyId, int start, int end,
280 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRule> orderByComparator);
281
282
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public int getMDRRulesCount();
289
290 @Override
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public com.liferay.portal.model.PersistedModel getPersistedModel(
293 java.io.Serializable primaryKeyObj)
294 throws com.liferay.portal.kernel.exception.PortalException;
295
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public com.liferay.portlet.mobiledevicerules.model.MDRRule getRule(
298 long ruleId) throws com.liferay.portal.kernel.exception.PortalException;
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
302 long ruleGroupId);
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
306 long ruleGroupId, int start, int end);
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public int getRulesCount(long ruleGroupId);
310
311
316 public void setBeanIdentifier(java.lang.String beanIdentifier);
317
318
324 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
325 public com.liferay.portlet.mobiledevicerules.model.MDRRule updateMDRRule(
326 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule);
327
328 public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
329 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
330 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
331 java.lang.String type, java.lang.String typeSettings,
332 com.liferay.portal.service.ServiceContext serviceContext)
333 throws com.liferay.portal.kernel.exception.PortalException;
334
335 public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
336 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
337 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
338 java.lang.String type,
339 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
340 com.liferay.portal.service.ServiceContext serviceContext)
341 throws com.liferay.portal.kernel.exception.PortalException;
342 }