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 that match the dynamic query.
173            *
174            * @param dynamicQuery the dynamic query
175            * @return the number of rows that match 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 that match 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 that match 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            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getMDRRuleGroupsByUuidAndCompanyId(
266                    java.lang.String uuid, long companyId);
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, int start, int end,
271                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> orderByComparator);
272    
273            /**
274            * Returns the number of m d r rule groups.
275            *
276            * @return the number of m d r rule groups
277            */
278            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279            public int getMDRRuleGroupsCount();
280    
281            @Override
282            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283            public com.liferay.portal.model.PersistedModel getPersistedModel(
284                    java.io.Serializable primaryKeyObj)
285                    throws com.liferay.portal.kernel.exception.PortalException;
286    
287            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getRuleGroup(
289                    long ruleGroupId)
290                    throws com.liferay.portal.kernel.exception.PortalException;
291    
292            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
294                    long groupId);
295    
296            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
298                    long groupId, int start, int end);
299    
300            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301            public int getRuleGroupsCount(long groupId);
302    
303            /**
304            * @deprecated As of 6.2.0, replaced by {@link #search(long, String,
305            LinkedHashMap, boolean, int, int)}
306            */
307            @java.lang.Deprecated
308            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> search(
310                    long groupId, java.lang.String name, boolean andOperator, int start,
311                    int end);
312    
313            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> search(
315                    long groupId, java.lang.String name,
316                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
317                    boolean andOperator, int start, int end);
318    
319            /**
320            * @deprecated As of 6.2.0, replaced by {@link #searchByKeywords(long,
321            String, LinkedHashMap, boolean, int, int)}
322            */
323            @java.lang.Deprecated
324            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> searchByKeywords(
326                    long groupId, java.lang.String keywords, boolean andOperator,
327                    int start, int end);
328    
329            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> searchByKeywords(
331                    long groupId, java.lang.String keywords,
332                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
333                    boolean andOperator, int start, int end);
334    
335            /**
336            * @deprecated As of 6.2.0, replaced by {@link #searchByKeywordsCount(long,
337            String, LinkedHashMap, boolean)}
338            */
339            @java.lang.Deprecated
340            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341            public int searchByKeywordsCount(long groupId, java.lang.String keywords,
342                    boolean andOperator);
343    
344            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345            public int searchByKeywordsCount(long groupId, java.lang.String keywords,
346                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
347                    boolean andOperator);
348    
349            /**
350            * @deprecated As of 6.2.0, replaced by {@link #searchCount(long, String,
351            LinkedHashMap, boolean)}
352            */
353            @java.lang.Deprecated
354            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355            public int searchCount(long groupId, java.lang.String name,
356                    boolean andOperator);
357    
358            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359            public int searchCount(long groupId, java.lang.String name,
360                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
361                    boolean andOperator);
362    
363            /**
364            * Sets the Spring bean ID for this bean.
365            *
366            * @param beanIdentifier the Spring bean ID for this bean
367            */
368            public void setBeanIdentifier(java.lang.String beanIdentifier);
369    
370            /**
371            * 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.
372            *
373            * @param mdrRuleGroup the m d r rule group
374            * @return the m d r rule group that was updated
375            */
376            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
377            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateMDRRuleGroup(
378                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup mdrRuleGroup);
379    
380            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateRuleGroup(
381                    long ruleGroupId,
382                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
383                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
384                    com.liferay.portal.service.ServiceContext serviceContext)
385                    throws com.liferay.portal.kernel.exception.PortalException;
386    }