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.exportimport.kernel.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 ExportImportConfiguration. This utility wraps
024     * {@link com.liferay.portlet.exportimport.service.impl.ExportImportConfigurationLocalServiceImpl} 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 Brian Wing Shun Chan
031     * @see ExportImportConfigurationLocalService
032     * @see com.liferay.portlet.exportimport.service.base.ExportImportConfigurationLocalServiceBaseImpl
033     * @see com.liferay.portlet.exportimport.service.impl.ExportImportConfigurationLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class ExportImportConfigurationLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.exportimport.service.impl.ExportImportConfigurationLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration addDraftExportImportConfiguration(
044                    long userId, int type,
045                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    return getService()
048                                       .addDraftExportImportConfiguration(userId, type, settingsMap);
049            }
050    
051            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration addDraftExportImportConfiguration(
052                    long userId, java.lang.String name, int type,
053                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap)
054                    throws com.liferay.portal.kernel.exception.PortalException {
055                    return getService()
056                                       .addDraftExportImportConfiguration(userId, name, type,
057                            settingsMap);
058            }
059    
060            /**
061            * Adds the export import configuration to the database. Also notifies the appropriate model listeners.
062            *
063            * @param exportImportConfiguration the export import configuration
064            * @return the export import configuration that was added
065            */
066            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration addExportImportConfiguration(
067                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) {
068                    return getService()
069                                       .addExportImportConfiguration(exportImportConfiguration);
070            }
071    
072            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration addExportImportConfiguration(
073                    long userId, long groupId, java.lang.String name,
074                    java.lang.String description, int type,
075                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap,
076                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
077                    throws com.liferay.portal.kernel.exception.PortalException {
078                    return getService()
079                                       .addExportImportConfiguration(userId, groupId, name,
080                            description, type, settingsMap, serviceContext);
081            }
082    
083            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration addExportImportConfiguration(
084                    long userId, long groupId, java.lang.String name,
085                    java.lang.String description, int type,
086                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap,
087                    int status,
088                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
089                    throws com.liferay.portal.kernel.exception.PortalException {
090                    return getService()
091                                       .addExportImportConfiguration(userId, groupId, name,
092                            description, type, settingsMap, status, serviceContext);
093            }
094    
095            /**
096            * Creates a new export import configuration with the primary key. Does not add the export import configuration to the database.
097            *
098            * @param exportImportConfigurationId the primary key for the new export import configuration
099            * @return the new export import configuration
100            */
101            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration createExportImportConfiguration(
102                    long exportImportConfigurationId) {
103                    return getService()
104                                       .createExportImportConfiguration(exportImportConfigurationId);
105            }
106    
107            /**
108            * Deletes the export import configuration from the database. Also notifies the appropriate model listeners.
109            *
110            * @param exportImportConfiguration the export import configuration
111            * @return the export import configuration that was removed
112            */
113            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration deleteExportImportConfiguration(
114                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) {
115                    return getService()
116                                       .deleteExportImportConfiguration(exportImportConfiguration);
117            }
118    
119            /**
120            * Deletes the export import configuration with the primary key from the database. Also notifies the appropriate model listeners.
121            *
122            * @param exportImportConfigurationId the primary key of the export import configuration
123            * @return the export import configuration that was removed
124            * @throws PortalException if a export import configuration with the primary key could not be found
125            */
126            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration deleteExportImportConfiguration(
127                    long exportImportConfigurationId)
128                    throws com.liferay.portal.kernel.exception.PortalException {
129                    return getService()
130                                       .deleteExportImportConfiguration(exportImportConfigurationId);
131            }
132    
133            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration fetchExportImportConfiguration(
134                    long exportImportConfigurationId) {
135                    return getService()
136                                       .fetchExportImportConfiguration(exportImportConfigurationId);
137            }
138    
139            /**
140            * Returns the export import configuration with the primary key.
141            *
142            * @param exportImportConfigurationId the primary key of the export import configuration
143            * @return the export import configuration
144            * @throws PortalException if a export import configuration with the primary key could not be found
145            */
146            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration getExportImportConfiguration(
147                    long exportImportConfigurationId)
148                    throws com.liferay.portal.kernel.exception.PortalException {
149                    return getService()
150                                       .getExportImportConfiguration(exportImportConfigurationId);
151            }
152    
153            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration moveExportImportConfigurationToTrash(
154                    long userId, long exportImportConfigurationId)
155                    throws com.liferay.portal.kernel.exception.PortalException {
156                    return getService()
157                                       .moveExportImportConfigurationToTrash(userId,
158                            exportImportConfigurationId);
159            }
160    
161            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration restoreExportImportConfigurationFromTrash(
162                    long userId, long exportImportConfigurationId)
163                    throws com.liferay.portal.kernel.exception.PortalException {
164                    return getService()
165                                       .restoreExportImportConfigurationFromTrash(userId,
166                            exportImportConfigurationId);
167            }
168    
169            /**
170            * Updates the export import configuration in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
171            *
172            * @param exportImportConfiguration the export import configuration
173            * @return the export import configuration that was updated
174            */
175            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration updateExportImportConfiguration(
176                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) {
177                    return getService()
178                                       .updateExportImportConfiguration(exportImportConfiguration);
179            }
180    
181            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration updateExportImportConfiguration(
182                    long userId, long exportImportConfigurationId, java.lang.String name,
183                    java.lang.String description,
184                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap,
185                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
186                    throws com.liferay.portal.kernel.exception.PortalException {
187                    return getService()
188                                       .updateExportImportConfiguration(userId,
189                            exportImportConfigurationId, name, description, settingsMap,
190                            serviceContext);
191            }
192    
193            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration updateStatus(
194                    long userId, long exportImportConfigurationId, int status)
195                    throws com.liferay.portal.kernel.exception.PortalException {
196                    return getService()
197                                       .updateStatus(userId, exportImportConfigurationId, status);
198            }
199    
200            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
201                    return getService().getActionableDynamicQuery();
202            }
203    
204            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
205                    return getService().dynamicQuery();
206            }
207    
208            public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
209                    return getService().getIndexableActionableDynamicQuery();
210            }
211    
212            /**
213            * @throws PortalException
214            */
215            public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
216                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
217                    throws com.liferay.portal.kernel.exception.PortalException {
218                    return getService().deletePersistedModel(persistedModel);
219            }
220    
221            public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
222                    java.io.Serializable primaryKeyObj)
223                    throws com.liferay.portal.kernel.exception.PortalException {
224                    return getService().getPersistedModel(primaryKeyObj);
225            }
226    
227            public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.exportimport.kernel.model.ExportImportConfiguration> searchExportImportConfigurations(
228                    long companyId, long groupId, int type, java.lang.String keywords,
229                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
230                    throws com.liferay.portal.kernel.exception.PortalException {
231                    return getService()
232                                       .searchExportImportConfigurations(companyId, groupId, type,
233                            keywords, start, end, sort);
234            }
235    
236            public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.exportimport.kernel.model.ExportImportConfiguration> searchExportImportConfigurations(
237                    long companyId, long groupId, int type, java.lang.String name,
238                    java.lang.String description, boolean andSearch, int start, int end,
239                    com.liferay.portal.kernel.search.Sort sort)
240                    throws com.liferay.portal.kernel.exception.PortalException {
241                    return getService()
242                                       .searchExportImportConfigurations(companyId, groupId, type,
243                            name, description, andSearch, start, end, sort);
244            }
245    
246            /**
247            * Returns the number of export import configurations.
248            *
249            * @return the number of export import configurations
250            */
251            public static int getExportImportConfigurationsCount() {
252                    return getService().getExportImportConfigurationsCount();
253            }
254    
255            public static int getExportImportConfigurationsCount(long companyId,
256                    long groupId, java.lang.String keywords, int type) {
257                    return getService()
258                                       .getExportImportConfigurationsCount(companyId, groupId,
259                            keywords, type);
260            }
261    
262            public static int getExportImportConfigurationsCount(long companyId,
263                    long groupId, java.lang.String name, java.lang.String description,
264                    int type, boolean andSearch) {
265                    return getService()
266                                       .getExportImportConfigurationsCount(companyId, groupId,
267                            name, description, type, andSearch);
268            }
269    
270            public static int getExportImportConfigurationsCount(long groupId) {
271                    return getService().getExportImportConfigurationsCount(groupId);
272            }
273    
274            public static int getExportImportConfigurationsCount(long groupId, int type) {
275                    return getService().getExportImportConfigurationsCount(groupId, type);
276            }
277    
278            /**
279            * Returns the OSGi service identifier.
280            *
281            * @return the OSGi service identifier
282            */
283            public static java.lang.String getOSGiServiceIdentifier() {
284                    return getService().getOSGiServiceIdentifier();
285            }
286    
287            /**
288            * Performs a dynamic query on the database and returns the matching rows.
289            *
290            * @param dynamicQuery the dynamic query
291            * @return the matching rows
292            */
293            public static <T> java.util.List<T> dynamicQuery(
294                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
295                    return getService().dynamicQuery(dynamicQuery);
296            }
297    
298            /**
299            * Performs a dynamic query on the database and returns a range of the matching rows.
300            *
301            * <p>
302            * 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.exportimport.model.impl.ExportImportConfigurationModelImpl}. 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.
303            * </p>
304            *
305            * @param dynamicQuery the dynamic query
306            * @param start the lower bound of the range of model instances
307            * @param end the upper bound of the range of model instances (not inclusive)
308            * @return the range of matching rows
309            */
310            public static <T> java.util.List<T> dynamicQuery(
311                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
312                    int end) {
313                    return getService().dynamicQuery(dynamicQuery, start, end);
314            }
315    
316            /**
317            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
318            *
319            * <p>
320            * 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.exportimport.model.impl.ExportImportConfigurationModelImpl}. 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.
321            * </p>
322            *
323            * @param dynamicQuery the dynamic query
324            * @param start the lower bound of the range of model instances
325            * @param end the upper bound of the range of model instances (not inclusive)
326            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
327            * @return the ordered range of matching rows
328            */
329            public static <T> java.util.List<T> dynamicQuery(
330                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
331                    int end,
332                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
333                    return getService()
334                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
335            }
336    
337            public static java.util.List<com.liferay.exportimport.kernel.model.ExportImportConfiguration> getExportImportConfigurations(
338                    com.liferay.portal.kernel.search.Hits hits)
339                    throws com.liferay.portal.kernel.exception.PortalException {
340                    return getService().getExportImportConfigurations(hits);
341            }
342    
343            /**
344            * Returns a range of all the export import configurations.
345            *
346            * <p>
347            * 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.exportimport.model.impl.ExportImportConfigurationModelImpl}. 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.
348            * </p>
349            *
350            * @param start the lower bound of the range of export import configurations
351            * @param end the upper bound of the range of export import configurations (not inclusive)
352            * @return the range of export import configurations
353            */
354            public static java.util.List<com.liferay.exportimport.kernel.model.ExportImportConfiguration> getExportImportConfigurations(
355                    int start, int end) {
356                    return getService().getExportImportConfigurations(start, end);
357            }
358    
359            public static java.util.List<com.liferay.exportimport.kernel.model.ExportImportConfiguration> getExportImportConfigurations(
360                    long companyId, long groupId, java.lang.String keywords, int type,
361                    int start, int end,
362                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.exportimport.kernel.model.ExportImportConfiguration> orderByComparator) {
363                    return getService()
364                                       .getExportImportConfigurations(companyId, groupId, keywords,
365                            type, start, end, orderByComparator);
366            }
367    
368            public static java.util.List<com.liferay.exportimport.kernel.model.ExportImportConfiguration> getExportImportConfigurations(
369                    long companyId, long groupId, java.lang.String name,
370                    java.lang.String description, int type, boolean andSearch, int start,
371                    int end,
372                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.exportimport.kernel.model.ExportImportConfiguration> orderByComparator) {
373                    return getService()
374                                       .getExportImportConfigurations(companyId, groupId, name,
375                            description, type, andSearch, start, end, orderByComparator);
376            }
377    
378            public static java.util.List<com.liferay.exportimport.kernel.model.ExportImportConfiguration> getExportImportConfigurations(
379                    long groupId, int type) {
380                    return getService().getExportImportConfigurations(groupId, type);
381            }
382    
383            public static java.util.List<com.liferay.exportimport.kernel.model.ExportImportConfiguration> getExportImportConfigurations(
384                    long groupId, int type, int start, int end,
385                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.exportimport.kernel.model.ExportImportConfiguration> orderByComparator) {
386                    return getService()
387                                       .getExportImportConfigurations(groupId, type, start, end,
388                            orderByComparator);
389            }
390    
391            /**
392            * Returns the number of rows matching the dynamic query.
393            *
394            * @param dynamicQuery the dynamic query
395            * @return the number of rows matching the dynamic query
396            */
397            public static long dynamicQueryCount(
398                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
399                    return getService().dynamicQueryCount(dynamicQuery);
400            }
401    
402            /**
403            * Returns the number of rows matching the dynamic query.
404            *
405            * @param dynamicQuery the dynamic query
406            * @param projection the projection to apply to the query
407            * @return the number of rows matching the dynamic query
408            */
409            public static long dynamicQueryCount(
410                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
411                    com.liferay.portal.kernel.dao.orm.Projection projection) {
412                    return getService().dynamicQueryCount(dynamicQuery, projection);
413            }
414    
415            public static void deleteExportImportConfigurations(long groupId) {
416                    getService().deleteExportImportConfigurations(groupId);
417            }
418    
419            public static ExportImportConfigurationLocalService getService() {
420                    if (_service == null) {
421                            _service = (ExportImportConfigurationLocalService)PortalBeanLocatorUtil.locate(ExportImportConfigurationLocalService.class.getName());
422    
423                            ReferenceRegistry.registerReference(ExportImportConfigurationLocalServiceUtil.class,
424                                    "_service");
425                    }
426    
427                    return _service;
428            }
429    
430            private static ExportImportConfigurationLocalService _service;
431    }