001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
030     * Provides the local service interface for MDRRuleGroup. Methods of this
031     * service will not have security checks based on the propagated JAAS
032     * credentials because this service can only be accessed from within the same
033     * VM.
034     *
035     * @author Edward C. Han
036     * @see MDRRuleGroupLocalServiceUtil
037     * @see com.liferay.portlet.mobiledevicerules.service.base.MDRRuleGroupLocalServiceBaseImpl
038     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupLocalServiceImpl
039     * @generated
040     */
041    @ProviderType
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface MDRRuleGroupLocalService extends BaseLocalService,
045            PersistedModelLocalService {
046            /*
047             * NOTE FOR DEVELOPERS:
048             *
049             * Never modify or reference this interface directly. Always use {@link MDRRuleGroupLocalServiceUtil} to access the m d r rule group local service. Add custom service methods to {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
050             */
051    
052            /**
053            * Adds the m d r rule group to the database. Also notifies the appropriate model listeners.
054            *
055            * @param mdrRuleGroup the m d r rule group
056            * @return the m d r rule group that was added
057            */
058            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup addMDRRuleGroup(
060                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup mdrRuleGroup);
061    
062            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup addRuleGroup(
063                    long groupId,
064                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
065                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
066                    com.liferay.portal.service.ServiceContext serviceContext)
067                    throws com.liferay.portal.kernel.exception.PortalException;
068    
069            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup copyRuleGroup(
070                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup ruleGroup,
071                    long groupId, com.liferay.portal.service.ServiceContext serviceContext)
072                    throws com.liferay.portal.kernel.exception.PortalException;
073    
074            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup copyRuleGroup(
075                    long ruleGroupId, long groupId,
076                    com.liferay.portal.service.ServiceContext serviceContext)
077                    throws com.liferay.portal.kernel.exception.PortalException;
078    
079            /**
080            * Creates a new m d r rule group with the primary key. Does not add the m d r rule group to the database.
081            *
082            * @param ruleGroupId the primary key for the new m d r rule group
083            * @return the new m d r rule group
084            */
085            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup createMDRRuleGroup(
086                    long ruleGroupId);
087    
088            /**
089            * Deletes the m d r rule group from the database. Also notifies the appropriate model listeners.
090            *
091            * @param mdrRuleGroup the m d r rule group
092            * @return the m d r rule group that was removed
093            */
094            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
095            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup deleteMDRRuleGroup(
096                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup mdrRuleGroup);
097    
098            /**
099            * Deletes the m d r rule group with the primary key from the database. Also notifies the appropriate model listeners.
100            *
101            * @param ruleGroupId the primary key of the m d r rule group
102            * @return the m d r rule group that was removed
103            * @throws PortalException if a m d r rule group with the primary key could not be found
104            */
105            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
106            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup deleteMDRRuleGroup(
107                    long ruleGroupId)
108                    throws com.liferay.portal.kernel.exception.PortalException;
109    
110            /**
111            * @throws PortalException
112            */
113            @Override
114            public com.liferay.portal.model.PersistedModel deletePersistedModel(
115                    com.liferay.portal.model.PersistedModel persistedModel)
116                    throws com.liferay.portal.kernel.exception.PortalException;
117    
118            @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
119            public void deleteRuleGroup(
120                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup ruleGroup);
121    
122            public void deleteRuleGroup(long ruleGroupId);
123    
124            public void deleteRuleGroups(long groupId);
125    
126            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
127    
128            /**
129            * Performs a dynamic query on the database and returns the matching rows.
130            *
131            * @param dynamicQuery the dynamic query
132            * @return the matching rows
133            */
134            public <T> java.util.List<T> dynamicQuery(
135                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
136    
137            /**
138            * Performs a dynamic query on the database and returns a range of the matching rows.
139            *
140            * <p>
141            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
142            * </p>
143            *
144            * @param dynamicQuery the dynamic query
145            * @param start the lower bound of the range of model instances
146            * @param end the upper bound of the range of model instances (not inclusive)
147            * @return the range of matching rows
148            */
149            public <T> java.util.List<T> dynamicQuery(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151                    int end);
152    
153            /**
154            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
155            *
156            * <p>
157            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
158            * </p>
159            *
160            * @param dynamicQuery the dynamic query
161            * @param start the lower bound of the range of model instances
162            * @param end the upper bound of the range of model instances (not inclusive)
163            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
164            * @return the ordered range of matching rows
165            */
166            public <T> java.util.List<T> dynamicQuery(
167                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
168                    int end,
169                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
170    
171            /**
172            * Returns the number of rows matching the dynamic query.
173            *
174            * @param dynamicQuery the dynamic query
175            * @return the number of rows matching the dynamic query
176            */
177            public long dynamicQueryCount(
178                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
179    
180            /**
181            * Returns the number of rows matching the dynamic query.
182            *
183            * @param dynamicQuery the dynamic query
184            * @param projection the projection to apply to the query
185            * @return the number of rows matching the dynamic query
186            */
187            public long dynamicQueryCount(
188                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
189                    com.liferay.portal.kernel.dao.orm.Projection projection);
190    
191            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchMDRRuleGroup(
193                    long ruleGroupId);
194    
195            /**
196            * Returns the m d r rule group matching the UUID and group.
197            *
198            * @param uuid the m d r rule group's UUID
199            * @param groupId the primary key of the group
200            * @return the matching m d r rule group, or <code>null</code> if a matching m d r rule group could not be found
201            */
202            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchMDRRuleGroupByUuidAndGroupId(
204                    java.lang.String uuid, long groupId);
205    
206            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchRuleGroup(
208                    long ruleGroupId);
209    
210            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
212    
213            /**
214            * Returns the Spring bean ID for this bean.
215            *
216            * @return the Spring bean ID for this bean
217            */
218            public java.lang.String getBeanIdentifier();
219    
220            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
222                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
223    
224            /**
225            * Returns the m d r rule group with the primary key.
226            *
227            * @param ruleGroupId the primary key of the m d r rule group
228            * @return the m d r rule group
229            * @throws PortalException if a m d r rule group with the primary key could not be found
230            */
231            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getMDRRuleGroup(
233                    long ruleGroupId)
234                    throws com.liferay.portal.kernel.exception.PortalException;
235    
236            /**
237            * Returns the m d r rule group matching the UUID and group.
238            *
239            * @param uuid the m d r rule group's UUID
240            * @param groupId the primary key of the group
241            * @return the matching m d r rule group
242            * @throws PortalException if a matching m d r rule group could not be found
243            */
244            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getMDRRuleGroupByUuidAndGroupId(
246                    java.lang.String uuid, long groupId)
247                    throws com.liferay.portal.kernel.exception.PortalException;
248    
249            /**
250            * Returns a range of all the m d r rule groups.
251            *
252            * <p>
253            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
254            * </p>
255            *
256            * @param start the lower bound of the range of m d r rule groups
257            * @param end the upper bound of the range of m d r rule groups (not inclusive)
258            * @return the range of m d r rule groups
259            */
260            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getMDRRuleGroups(
262                    int start, int end);
263    
264            /**
265            * Returns all the m d r rule groups matching the UUID and company.
266            *
267            * @param uuid the UUID of the m d r rule groups
268            * @param companyId the primary key of the company
269            * @return the matching m d r rule groups, or an empty list if no matches were found
270            */
271            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getMDRRuleGroupsByUuidAndCompanyId(
273                    java.lang.String uuid, long companyId);
274    
275            /**
276            * Returns a range of m d r rule groups matching the UUID and company.
277            *
278            * @param uuid the UUID of the m d r rule groups
279            * @param companyId the primary key of the company
280            * @param start the lower bound of the range of m d r rule groups
281            * @param end the upper bound of the range of m d r rule groups (not inclusive)
282            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
283            * @return the range of matching m d r rule groups, or an empty list if no matches were found
284            */
285            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getMDRRuleGroupsByUuidAndCompanyId(
287                    java.lang.String uuid, long companyId, int start, int end,
288                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> orderByComparator);
289    
290            /**
291            * Returns the number of m d r rule groups.
292            *
293            * @return the number of m d r rule groups
294            */
295            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296            public int getMDRRuleGroupsCount();
297    
298            @Override
299            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300            public com.liferay.portal.model.PersistedModel getPersistedModel(
301                    java.io.Serializable primaryKeyObj)
302                    throws com.liferay.portal.kernel.exception.PortalException;
303    
304            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getRuleGroup(
306                    long ruleGroupId)
307                    throws com.liferay.portal.kernel.exception.PortalException;
308    
309            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
311                    long groupId);
312    
313            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
315                    long groupId, int start, int end);
316    
317            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318            public int getRuleGroupsCount(long groupId);
319    
320            /**
321            * @deprecated As of 6.2.0, replaced by {@link #search(long, String,
322            LinkedHashMap, boolean, int, int)}
323            */
324            @java.lang.Deprecated
325            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> search(
327                    long groupId, java.lang.String name, boolean andOperator, int start,
328                    int end);
329    
330            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> search(
332                    long groupId, java.lang.String name,
333                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
334                    boolean andOperator, int start, int end);
335    
336            /**
337            * @deprecated As of 6.2.0, replaced by {@link #searchByKeywords(long,
338            String, LinkedHashMap, boolean, int, int)}
339            */
340            @java.lang.Deprecated
341            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> searchByKeywords(
343                    long groupId, java.lang.String keywords, boolean andOperator,
344                    int start, int end);
345    
346            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> searchByKeywords(
348                    long groupId, java.lang.String keywords,
349                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
350                    boolean andOperator, int start, int end);
351    
352            /**
353            * @deprecated As of 6.2.0, replaced by {@link #searchByKeywordsCount(long,
354            String, LinkedHashMap, boolean)}
355            */
356            @java.lang.Deprecated
357            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358            public int searchByKeywordsCount(long groupId, java.lang.String keywords,
359                    boolean andOperator);
360    
361            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362            public int searchByKeywordsCount(long groupId, java.lang.String keywords,
363                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
364                    boolean andOperator);
365    
366            /**
367            * @deprecated As of 6.2.0, replaced by {@link #searchCount(long, String,
368            LinkedHashMap, boolean)}
369            */
370            @java.lang.Deprecated
371            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
372            public int searchCount(long groupId, java.lang.String name,
373                    boolean andOperator);
374    
375            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
376            public int searchCount(long groupId, java.lang.String name,
377                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
378                    boolean andOperator);
379    
380            /**
381            * Sets the Spring bean ID for this bean.
382            *
383            * @param beanIdentifier the Spring bean ID for this bean
384            */
385            public void setBeanIdentifier(java.lang.String beanIdentifier);
386    
387            /**
388            * Updates the m d r rule group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
389            *
390            * @param mdrRuleGroup the m d r rule group
391            * @return the m d r rule group that was updated
392            */
393            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
394            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateMDRRuleGroup(
395                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup mdrRuleGroup);
396    
397            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateRuleGroup(
398                    long ruleGroupId,
399                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
400                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
401                    com.liferay.portal.service.ServiceContext serviceContext)
402                    throws com.liferay.portal.kernel.exception.PortalException;
403    }