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.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for MDRAction. This utility wraps
024     * {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRActionLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Edward C. Han
031     * @see MDRActionLocalService
032     * @see com.liferay.portlet.mobiledevicerules.service.base.MDRActionLocalServiceBaseImpl
033     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRActionLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class MDRActionLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.mobiledevicerules.service.impl.MDRActionLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
044                    long ruleGroupInstanceId,
045                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
046                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
047                    java.lang.String type, java.lang.String typeSettings,
048                    com.liferay.portal.service.ServiceContext serviceContext)
049                    throws com.liferay.portal.kernel.exception.PortalException {
050                    return getService()
051                                       .addAction(ruleGroupInstanceId, nameMap, descriptionMap,
052                            type, typeSettings, serviceContext);
053            }
054    
055            public static com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
056                    long ruleGroupInstanceId,
057                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
058                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
059                    java.lang.String type,
060                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
061                    com.liferay.portal.service.ServiceContext serviceContext)
062                    throws com.liferay.portal.kernel.exception.PortalException {
063                    return getService()
064                                       .addAction(ruleGroupInstanceId, nameMap, descriptionMap,
065                            type, typeSettingsProperties, serviceContext);
066            }
067    
068            /**
069            * Adds the m d r action to the database. Also notifies the appropriate model listeners.
070            *
071            * @param mdrAction the m d r action
072            * @return the m d r action that was added
073            */
074            public static com.liferay.portlet.mobiledevicerules.model.MDRAction addMDRAction(
075                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction) {
076                    return getService().addMDRAction(mdrAction);
077            }
078    
079            /**
080            * Creates a new m d r action with the primary key. Does not add the m d r action to the database.
081            *
082            * @param actionId the primary key for the new m d r action
083            * @return the new m d r action
084            */
085            public static com.liferay.portlet.mobiledevicerules.model.MDRAction createMDRAction(
086                    long actionId) {
087                    return getService().createMDRAction(actionId);
088            }
089    
090            public static void deleteAction(
091                    com.liferay.portlet.mobiledevicerules.model.MDRAction action) {
092                    getService().deleteAction(action);
093            }
094    
095            public static void deleteAction(long actionId) {
096                    getService().deleteAction(actionId);
097            }
098    
099            public static void deleteActions(long ruleGroupInstanceId) {
100                    getService().deleteActions(ruleGroupInstanceId);
101            }
102    
103            /**
104            * Deletes the m d r action with the primary key from the database. Also notifies the appropriate model listeners.
105            *
106            * @param actionId the primary key of the m d r action
107            * @return the m d r action that was removed
108            * @throws PortalException if a m d r action with the primary key could not be found
109            */
110            public static com.liferay.portlet.mobiledevicerules.model.MDRAction deleteMDRAction(
111                    long actionId)
112                    throws com.liferay.portal.kernel.exception.PortalException {
113                    return getService().deleteMDRAction(actionId);
114            }
115    
116            /**
117            * Deletes the m d r action from the database. Also notifies the appropriate model listeners.
118            *
119            * @param mdrAction the m d r action
120            * @return the m d r action that was removed
121            */
122            public static com.liferay.portlet.mobiledevicerules.model.MDRAction deleteMDRAction(
123                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction) {
124                    return getService().deleteMDRAction(mdrAction);
125            }
126    
127            /**
128            * @throws PortalException
129            */
130            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
131                    com.liferay.portal.model.PersistedModel persistedModel)
132                    throws com.liferay.portal.kernel.exception.PortalException {
133                    return getService().deletePersistedModel(persistedModel);
134            }
135    
136            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
137                    return getService().dynamicQuery();
138            }
139    
140            /**
141            * Performs a dynamic query on the database and returns the matching rows.
142            *
143            * @param dynamicQuery the dynamic query
144            * @return the matching rows
145            */
146            public static <T> java.util.List<T> dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
148                    return getService().dynamicQuery(dynamicQuery);
149            }
150    
151            /**
152            * Performs a dynamic query on the database and returns a range of the matching rows.
153            *
154            * <p>
155            * 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.MDRActionModelImpl}. 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.
156            * </p>
157            *
158            * @param dynamicQuery the dynamic query
159            * @param start the lower bound of the range of model instances
160            * @param end the upper bound of the range of model instances (not inclusive)
161            * @return the range of matching rows
162            */
163            public static <T> java.util.List<T> dynamicQuery(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
165                    int end) {
166                    return getService().dynamicQuery(dynamicQuery, start, end);
167            }
168    
169            /**
170            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
171            *
172            * <p>
173            * 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.MDRActionModelImpl}. 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.
174            * </p>
175            *
176            * @param dynamicQuery the dynamic query
177            * @param start the lower bound of the range of model instances
178            * @param end the upper bound of the range of model instances (not inclusive)
179            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
180            * @return the ordered range of matching rows
181            */
182            public static <T> java.util.List<T> dynamicQuery(
183                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
184                    int end,
185                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
186                    return getService()
187                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
188            }
189    
190            /**
191            * Returns the number of rows matching the dynamic query.
192            *
193            * @param dynamicQuery the dynamic query
194            * @return the number of rows matching the dynamic query
195            */
196            public static long dynamicQueryCount(
197                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
198                    return getService().dynamicQueryCount(dynamicQuery);
199            }
200    
201            /**
202            * Returns the number of rows matching the dynamic query.
203            *
204            * @param dynamicQuery the dynamic query
205            * @param projection the projection to apply to the query
206            * @return the number of rows matching the dynamic query
207            */
208            public static long dynamicQueryCount(
209                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
210                    com.liferay.portal.kernel.dao.orm.Projection projection) {
211                    return getService().dynamicQueryCount(dynamicQuery, projection);
212            }
213    
214            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchAction(
215                    long actionId) {
216                    return getService().fetchAction(actionId);
217            }
218    
219            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchMDRAction(
220                    long actionId) {
221                    return getService().fetchMDRAction(actionId);
222            }
223    
224            /**
225            * Returns the m d r action matching the UUID and group.
226            *
227            * @param uuid the m d r action's UUID
228            * @param groupId the primary key of the group
229            * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found
230            */
231            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchMDRActionByUuidAndGroupId(
232                    java.lang.String uuid, long groupId) {
233                    return getService().fetchMDRActionByUuidAndGroupId(uuid, groupId);
234            }
235    
236            public static com.liferay.portlet.mobiledevicerules.model.MDRAction getAction(
237                    long actionId)
238                    throws com.liferay.portal.kernel.exception.PortalException {
239                    return getService().getAction(actionId);
240            }
241    
242            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
243                    return getService().getActionableDynamicQuery();
244            }
245    
246            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getActions(
247                    long ruleGroupInstanceId) {
248                    return getService().getActions(ruleGroupInstanceId);
249            }
250    
251            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getActions(
252                    long ruleGroupInstanceId, int start, int end) {
253                    return getService().getActions(ruleGroupInstanceId, start, end);
254            }
255    
256            public static int getActionsCount(long ruleGroupInstanceId) {
257                    return getService().getActionsCount(ruleGroupInstanceId);
258            }
259    
260            /**
261            * Returns the Spring bean ID for this bean.
262            *
263            * @return the Spring bean ID for this bean
264            */
265            public static java.lang.String getBeanIdentifier() {
266                    return getService().getBeanIdentifier();
267            }
268    
269            public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
270                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
271                    return getService().getExportActionableDynamicQuery(portletDataContext);
272            }
273    
274            /**
275            * Returns the m d r action with the primary key.
276            *
277            * @param actionId the primary key of the m d r action
278            * @return the m d r action
279            * @throws PortalException if a m d r action with the primary key could not be found
280            */
281            public static com.liferay.portlet.mobiledevicerules.model.MDRAction getMDRAction(
282                    long actionId)
283                    throws com.liferay.portal.kernel.exception.PortalException {
284                    return getService().getMDRAction(actionId);
285            }
286    
287            /**
288            * Returns the m d r action matching the UUID and group.
289            *
290            * @param uuid the m d r action's UUID
291            * @param groupId the primary key of the group
292            * @return the matching m d r action
293            * @throws PortalException if a matching m d r action could not be found
294            */
295            public static com.liferay.portlet.mobiledevicerules.model.MDRAction getMDRActionByUuidAndGroupId(
296                    java.lang.String uuid, long groupId)
297                    throws com.liferay.portal.kernel.exception.PortalException {
298                    return getService().getMDRActionByUuidAndGroupId(uuid, groupId);
299            }
300    
301            /**
302            * Returns a range of all the m d r actions.
303            *
304            * <p>
305            * 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.MDRActionModelImpl}. 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.
306            * </p>
307            *
308            * @param start the lower bound of the range of m d r actions
309            * @param end the upper bound of the range of m d r actions (not inclusive)
310            * @return the range of m d r actions
311            */
312            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getMDRActions(
313                    int start, int end) {
314                    return getService().getMDRActions(start, end);
315            }
316    
317            /**
318            * Returns all the m d r actions matching the UUID and company.
319            *
320            * @param uuid the UUID of the m d r actions
321            * @param companyId the primary key of the company
322            * @return the matching m d r actions, or an empty list if no matches were found
323            */
324            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getMDRActionsByUuidAndCompanyId(
325                    java.lang.String uuid, long companyId) {
326                    return getService().getMDRActionsByUuidAndCompanyId(uuid, companyId);
327            }
328    
329            /**
330            * Returns a range of m d r actions matching the UUID and company.
331            *
332            * @param uuid the UUID of the m d r actions
333            * @param companyId the primary key of the company
334            * @param start the lower bound of the range of m d r actions
335            * @param end the upper bound of the range of m d r actions (not inclusive)
336            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
337            * @return the range of matching m d r actions, or an empty list if no matches were found
338            */
339            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getMDRActionsByUuidAndCompanyId(
340                    java.lang.String uuid, long companyId, int start, int end,
341                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) {
342                    return getService()
343                                       .getMDRActionsByUuidAndCompanyId(uuid, companyId, start,
344                            end, orderByComparator);
345            }
346    
347            /**
348            * Returns the number of m d r actions.
349            *
350            * @return the number of m d r actions
351            */
352            public static int getMDRActionsCount() {
353                    return getService().getMDRActionsCount();
354            }
355    
356            public static com.liferay.portal.model.PersistedModel getPersistedModel(
357                    java.io.Serializable primaryKeyObj)
358                    throws com.liferay.portal.kernel.exception.PortalException {
359                    return getService().getPersistedModel(primaryKeyObj);
360            }
361    
362            /**
363            * Sets the Spring bean ID for this bean.
364            *
365            * @param beanIdentifier the Spring bean ID for this bean
366            */
367            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
368                    getService().setBeanIdentifier(beanIdentifier);
369            }
370    
371            public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
372                    long actionId,
373                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
374                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
375                    java.lang.String type, java.lang.String typeSettings,
376                    com.liferay.portal.service.ServiceContext serviceContext)
377                    throws com.liferay.portal.kernel.exception.PortalException {
378                    return getService()
379                                       .updateAction(actionId, nameMap, descriptionMap, type,
380                            typeSettings, serviceContext);
381            }
382    
383            public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
384                    long actionId,
385                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
386                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
387                    java.lang.String type,
388                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
389                    com.liferay.portal.service.ServiceContext serviceContext)
390                    throws com.liferay.portal.kernel.exception.PortalException {
391                    return getService()
392                                       .updateAction(actionId, nameMap, descriptionMap, type,
393                            typeSettingsProperties, serviceContext);
394            }
395    
396            /**
397            * Updates the m d r action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
398            *
399            * @param mdrAction the m d r action
400            * @return the m d r action that was updated
401            */
402            public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateMDRAction(
403                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction) {
404                    return getService().updateMDRAction(mdrAction);
405            }
406    
407            public static MDRActionLocalService getService() {
408                    if (_service == null) {
409                            _service = (MDRActionLocalService)PortalBeanLocatorUtil.locate(MDRActionLocalService.class.getName());
410    
411                            ReferenceRegistry.registerReference(MDRActionLocalServiceUtil.class,
412                                    "_service");
413                    }
414    
415                    return _service;
416            }
417    
418            /**
419             * @deprecated As of 6.2.0
420             */
421            @Deprecated
422            public void setService(MDRActionLocalService service) {
423            }
424    
425            private static MDRActionLocalService _service;
426    }