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