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