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 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 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 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) throws PortalException;
108    
109            /**
110            * @throws PortalException
111            */
112            @Override
113            public com.liferay.portal.model.PersistedModel deletePersistedModel(
114                    com.liferay.portal.model.PersistedModel persistedModel)
115                    throws PortalException;
116    
117            @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
118            public void deleteRuleGroup(
119                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup ruleGroup);
120    
121            public void deleteRuleGroup(long ruleGroupId);
122    
123            public void deleteRuleGroups(long groupId);
124    
125            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
126    
127            /**
128            * Performs a dynamic query on the database and returns the matching rows.
129            *
130            * @param dynamicQuery the dynamic query
131            * @return the matching rows
132            */
133            public <T> java.util.List<T> dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
135    
136            /**
137            * Performs a dynamic query on the database and returns a range of the matching rows.
138            *
139            * <p>
140            * 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.
141            * </p>
142            *
143            * @param dynamicQuery the dynamic query
144            * @param start the lower bound of the range of model instances
145            * @param end the upper bound of the range of model instances (not inclusive)
146            * @return the range of matching rows
147            */
148            public <T> java.util.List<T> dynamicQuery(
149                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
150                    int end);
151    
152            /**
153            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
154            *
155            * <p>
156            * 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.
157            * </p>
158            *
159            * @param dynamicQuery the dynamic query
160            * @param start the lower bound of the range of model instances
161            * @param end the upper bound of the range of model instances (not inclusive)
162            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
163            * @return the ordered range of matching rows
164            */
165            public <T> java.util.List<T> dynamicQuery(
166                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
167                    int end,
168                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
169    
170            /**
171            * Returns the number of rows matching the dynamic query.
172            *
173            * @param dynamicQuery the dynamic query
174            * @return the number of rows matching the dynamic query
175            */
176            public long dynamicQueryCount(
177                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
178    
179            /**
180            * Returns the number of rows matching the dynamic query.
181            *
182            * @param dynamicQuery the dynamic query
183            * @param projection the projection to apply to the query
184            * @return the number of rows matching the dynamic query
185            */
186            public long dynamicQueryCount(
187                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
188                    com.liferay.portal.kernel.dao.orm.Projection projection);
189    
190            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchMDRRuleGroup(
192                    long ruleGroupId);
193    
194            /**
195            * Returns the m d r rule group matching the UUID and group.
196            *
197            * @param uuid the m d r rule group's UUID
198            * @param groupId the primary key of the group
199            * @return the matching m d r rule group, or <code>null</code> if a matching m d r rule group could not be found
200            */
201            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchMDRRuleGroupByUuidAndGroupId(
203                    java.lang.String uuid, long groupId);
204    
205            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchRuleGroup(
207                    long ruleGroupId);
208    
209            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
211    
212            /**
213            * Returns the Spring bean ID for this bean.
214            *
215            * @return the Spring bean ID for this bean
216            */
217            public java.lang.String getBeanIdentifier();
218    
219            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
221                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext);
222    
223            /**
224            * Returns the m d r rule group with the primary key.
225            *
226            * @param ruleGroupId the primary key of the m d r rule group
227            * @return the m d r rule group
228            * @throws PortalException if a m d r rule group with the primary key could not be found
229            */
230            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getMDRRuleGroup(
232                    long ruleGroupId) throws PortalException;
233    
234            /**
235            * Returns the m d r rule group matching the UUID and group.
236            *
237            * @param uuid the m d r rule group's UUID
238            * @param groupId the primary key of the group
239            * @return the matching m d r rule group
240            * @throws PortalException if a matching m d r rule group could not be found
241            */
242            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getMDRRuleGroupByUuidAndGroupId(
244                    java.lang.String uuid, long groupId) throws PortalException;
245    
246            /**
247            * Returns a range of all the m d r rule groups.
248            *
249            * <p>
250            * 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.
251            * </p>
252            *
253            * @param start the lower bound of the range of m d r rule groups
254            * @param end the upper bound of the range of m d r rule groups (not inclusive)
255            * @return the range of m d r rule groups
256            */
257            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getMDRRuleGroups(
259                    int start, int end);
260    
261            /**
262            * Returns all the m d r rule groups matching the UUID and company.
263            *
264            * @param uuid the UUID of the m d r rule groups
265            * @param companyId the primary key of the company
266            * @return the matching m d r rule groups, or an empty list if no matches were found
267            */
268            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getMDRRuleGroupsByUuidAndCompanyId(
270                    java.lang.String uuid, long companyId);
271    
272            /**
273            * Returns a range of m d r rule groups matching the UUID and company.
274            *
275            * @param uuid the UUID of the m d r rule groups
276            * @param companyId the primary key of the company
277            * @param start the lower bound of the range of m d r rule groups
278            * @param end the upper bound of the range of m d r rule groups (not inclusive)
279            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
280            * @return the range of matching m d r rule groups, or an empty list if no matches were found
281            */
282            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getMDRRuleGroupsByUuidAndCompanyId(
284                    java.lang.String uuid, long companyId, int start, int end,
285                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> orderByComparator);
286    
287            /**
288            * Returns the number of m d r rule groups.
289            *
290            * @return the number of m d r rule groups
291            */
292            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293            public int getMDRRuleGroupsCount();
294    
295            @Override
296            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297            public com.liferay.portal.model.PersistedModel getPersistedModel(
298                    java.io.Serializable primaryKeyObj) throws PortalException;
299    
300            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getRuleGroup(
302                    long ruleGroupId) throws PortalException;
303    
304            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
306                    long groupId);
307    
308            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
310                    long groupId, int start, int end);
311    
312            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
314                    long[] groupIds, int start, int end);
315    
316            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317            public int getRuleGroupsCount(long groupId);
318    
319            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320            public int getRuleGroupsCount(long[] groupIds);
321    
322            /**
323            * @deprecated As of 6.2.0, replaced by {@link #search(long, String,
324            LinkedHashMap, boolean, int, int)}
325            */
326            @java.lang.Deprecated
327            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> search(
329                    long groupId, java.lang.String name, boolean andOperator, int start,
330                    int end);
331    
332            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> search(
334                    long groupId, java.lang.String name,
335                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
336                    boolean andOperator, int start, int end);
337    
338            /**
339            * @deprecated As of 6.2.0, replaced by {@link #searchByKeywords(long,
340            String, LinkedHashMap, boolean, int, int)}
341            */
342            @java.lang.Deprecated
343            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> searchByKeywords(
345                    long groupId, java.lang.String keywords, boolean andOperator,
346                    int start, int end);
347    
348            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
349            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> searchByKeywords(
350                    long groupId, java.lang.String keywords,
351                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
352                    boolean andOperator, int start, int end);
353    
354            /**
355            * @deprecated As of 6.2.0, replaced by {@link #searchByKeywordsCount(long,
356            String, LinkedHashMap, boolean)}
357            */
358            @java.lang.Deprecated
359            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360            public int searchByKeywordsCount(long groupId, java.lang.String keywords,
361                    boolean andOperator);
362    
363            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364            public int searchByKeywordsCount(long groupId, java.lang.String keywords,
365                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
366                    boolean andOperator);
367    
368            /**
369            * @deprecated As of 6.2.0, replaced by {@link #searchCount(long, String,
370            LinkedHashMap, boolean)}
371            */
372            @java.lang.Deprecated
373            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374            public int searchCount(long groupId, java.lang.String name,
375                    boolean andOperator);
376    
377            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378            public int searchCount(long groupId, java.lang.String name,
379                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
380                    boolean andOperator);
381    
382            /**
383            * Sets the Spring bean ID for this bean.
384            *
385            * @param beanIdentifier the Spring bean ID for this bean
386            */
387            public void setBeanIdentifier(java.lang.String beanIdentifier);
388    
389            /**
390            * 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.
391            *
392            * @param mdrRuleGroup the m d r rule group
393            * @return the m d r rule group that was updated
394            */
395            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
396            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateMDRRuleGroup(
397                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup mdrRuleGroup);
398    
399            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateRuleGroup(
400                    long ruleGroupId,
401                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
402                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
403                    com.liferay.portal.service.ServiceContext serviceContext)
404                    throws PortalException;
405    }