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.portal.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.portal.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.portal.service.base.ExportImportConfigurationLocalServiceBaseImpl
033     * @see com.liferay.portal.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.portal.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.portal.model.ExportImportConfiguration addExportImportConfiguration(
051                    com.liferay.portal.model.ExportImportConfiguration exportImportConfiguration) {
052                    return getService()
053                                       .addExportImportConfiguration(exportImportConfiguration);
054            }
055    
056            public static com.liferay.portal.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.portal.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.portal.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.portal.model.ExportImportConfiguration deleteExportImportConfiguration(
098                    com.liferay.portal.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.portal.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.portal.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.portal.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.portal.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.portal.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.portal.model.ExportImportConfiguration> getExportImportConfigurations(
244                    long groupId, int type) {
245                    return getService().getExportImportConfigurations(groupId, type);
246            }
247    
248            public static java.util.List<com.liferay.portal.model.ExportImportConfiguration> getExportImportConfigurations(
249                    long groupId, int type, int start, int end,
250                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ExportImportConfiguration> orderByComparator) {
251                    return getService()
252                                       .getExportImportConfigurations(groupId, type, start, end,
253                            orderByComparator);
254            }
255    
256            /**
257            * Returns a range of all the export import configurations.
258            *
259            * <p>
260            * 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.portal.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.
261            * </p>
262            *
263            * @param start the lower bound of the range of export import configurations
264            * @param end the upper bound of the range of export import configurations (not inclusive)
265            * @return the range of export import configurations
266            */
267            public static java.util.List<com.liferay.portal.model.ExportImportConfiguration> getExportImportConfigurations(
268                    int start, int end) {
269                    return getService().getExportImportConfigurations(start, end);
270            }
271    
272            /**
273            * Returns the number of export import configurations.
274            *
275            * @return the number of export import configurations
276            */
277            public static int getExportImportConfigurationsCount() {
278                    return getService().getExportImportConfigurationsCount();
279            }
280    
281            public static int getExportImportConfigurationsCount(long groupId) {
282                    return getService().getExportImportConfigurationsCount(groupId);
283            }
284    
285            public static int getExportImportConfigurationsCount(long groupId, int type) {
286                    return getService().getExportImportConfigurationsCount(groupId, type);
287            }
288    
289            public static com.liferay.portal.model.PersistedModel getPersistedModel(
290                    java.io.Serializable primaryKeyObj)
291                    throws com.liferay.portal.kernel.exception.PortalException {
292                    return getService().getPersistedModel(primaryKeyObj);
293            }
294    
295            public static com.liferay.portal.model.ExportImportConfiguration moveExportImportConfigurationToTrash(
296                    long userId, long exportImportConfigurationId)
297                    throws com.liferay.portal.kernel.exception.PortalException {
298                    return getService()
299                                       .moveExportImportConfigurationToTrash(userId,
300                            exportImportConfigurationId);
301            }
302    
303            public static com.liferay.portal.model.ExportImportConfiguration restoreExportImportConfigurationFromTrash(
304                    long userId, long exportImportConfigurationId)
305                    throws com.liferay.portal.kernel.exception.PortalException {
306                    return getService()
307                                       .restoreExportImportConfigurationFromTrash(userId,
308                            exportImportConfigurationId);
309            }
310    
311            /**
312            * Sets the Spring bean ID for this bean.
313            *
314            * @param beanIdentifier the Spring bean ID for this bean
315            */
316            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
317                    getService().setBeanIdentifier(beanIdentifier);
318            }
319    
320            /**
321            * Updates the export import configuration in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
322            *
323            * @param exportImportConfiguration the export import configuration
324            * @return the export import configuration that was updated
325            */
326            public static com.liferay.portal.model.ExportImportConfiguration updateExportImportConfiguration(
327                    com.liferay.portal.model.ExportImportConfiguration exportImportConfiguration) {
328                    return getService()
329                                       .updateExportImportConfiguration(exportImportConfiguration);
330            }
331    
332            public static com.liferay.portal.model.ExportImportConfiguration updateExportImportConfiguration(
333                    long userId, long exportImportConfigurationId, java.lang.String name,
334                    java.lang.String description,
335                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap,
336                    com.liferay.portal.service.ServiceContext serviceContext)
337                    throws com.liferay.portal.kernel.exception.PortalException {
338                    return getService()
339                                       .updateExportImportConfiguration(userId,
340                            exportImportConfigurationId, name, description, settingsMap,
341                            serviceContext);
342            }
343    
344            public static com.liferay.portal.model.ExportImportConfiguration updateStatus(
345                    long userId, long exportImportConfigurationId, int status)
346                    throws com.liferay.portal.kernel.exception.PortalException {
347                    return getService()
348                                       .updateStatus(userId, exportImportConfigurationId, status);
349            }
350    
351            public static ExportImportConfigurationLocalService getService() {
352                    if (_service == null) {
353                            _service = (ExportImportConfigurationLocalService)PortalBeanLocatorUtil.locate(ExportImportConfigurationLocalService.class.getName());
354    
355                            ReferenceRegistry.registerReference(ExportImportConfigurationLocalServiceUtil.class,
356                                    "_service");
357                    }
358    
359                    return _service;
360            }
361    
362            /**
363             * @deprecated As of 6.2.0
364             */
365            @Deprecated
366            public void setService(ExportImportConfigurationLocalService service) {
367            }
368    
369            private static ExportImportConfigurationLocalService _service;
370    }