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, 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.exportimport.kernel.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.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 void deleteExportImportConfigurations(long groupId) {
134                    getService().deleteExportImportConfigurations(groupId);
135            }
136    
137            /**
138            * @throws PortalException
139            */
140            public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
141                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
142                    throws com.liferay.portal.kernel.exception.PortalException {
143                    return getService().deletePersistedModel(persistedModel);
144            }
145    
146            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
147                    return getService().dynamicQuery();
148            }
149    
150            /**
151            * Performs a dynamic query on the database and returns the matching rows.
152            *
153            * @param dynamicQuery the dynamic query
154            * @return the matching rows
155            */
156            public static <T> java.util.List<T> dynamicQuery(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
158                    return getService().dynamicQuery(dynamicQuery);
159            }
160    
161            /**
162            * Performs a dynamic query on the database and returns a range of the matching rows.
163            *
164            * <p>
165            * 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.
166            * </p>
167            *
168            * @param dynamicQuery the dynamic query
169            * @param start the lower bound of the range of model instances
170            * @param end the upper bound of the range of model instances (not inclusive)
171            * @return the range of matching rows
172            */
173            public static <T> java.util.List<T> dynamicQuery(
174                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
175                    int end) {
176                    return getService().dynamicQuery(dynamicQuery, start, end);
177            }
178    
179            /**
180            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
181            *
182            * <p>
183            * 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.
184            * </p>
185            *
186            * @param dynamicQuery the dynamic query
187            * @param start the lower bound of the range of model instances
188            * @param end the upper bound of the range of model instances (not inclusive)
189            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
190            * @return the ordered range of matching rows
191            */
192            public static <T> java.util.List<T> dynamicQuery(
193                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
194                    int end,
195                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
196                    return getService()
197                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
198            }
199    
200            /**
201            * Returns the number of rows matching the dynamic query.
202            *
203            * @param dynamicQuery the dynamic query
204            * @return the number of rows matching the dynamic query
205            */
206            public static long dynamicQueryCount(
207                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
208                    return getService().dynamicQueryCount(dynamicQuery);
209            }
210    
211            /**
212            * Returns the number of rows matching the dynamic query.
213            *
214            * @param dynamicQuery the dynamic query
215            * @param projection the projection to apply to the query
216            * @return the number of rows matching the dynamic query
217            */
218            public static long dynamicQueryCount(
219                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
220                    com.liferay.portal.kernel.dao.orm.Projection projection) {
221                    return getService().dynamicQueryCount(dynamicQuery, projection);
222            }
223    
224            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration fetchExportImportConfiguration(
225                    long exportImportConfigurationId) {
226                    return getService()
227                                       .fetchExportImportConfiguration(exportImportConfigurationId);
228            }
229    
230            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
231                    return getService().getActionableDynamicQuery();
232            }
233    
234            /**
235            * Returns the export import configuration with the primary key.
236            *
237            * @param exportImportConfigurationId the primary key of the export import configuration
238            * @return the export import configuration
239            * @throws PortalException if a export import configuration with the primary key could not be found
240            */
241            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration getExportImportConfiguration(
242                    long exportImportConfigurationId)
243                    throws com.liferay.portal.kernel.exception.PortalException {
244                    return getService()
245                                       .getExportImportConfiguration(exportImportConfigurationId);
246            }
247    
248            public static java.util.List<com.liferay.exportimport.kernel.model.ExportImportConfiguration> getExportImportConfigurations(
249                    long companyId, long groupId, java.lang.String keywords, int type,
250                    int start, int end,
251                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.exportimport.kernel.model.ExportImportConfiguration> orderByComparator) {
252                    return getService()
253                                       .getExportImportConfigurations(companyId, groupId, keywords,
254                            type, start, end, orderByComparator);
255            }
256    
257            public static java.util.List<com.liferay.exportimport.kernel.model.ExportImportConfiguration> getExportImportConfigurations(
258                    long companyId, long groupId, java.lang.String name,
259                    java.lang.String description, int type, boolean andSearch, int start,
260                    int end,
261                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.exportimport.kernel.model.ExportImportConfiguration> orderByComparator) {
262                    return getService()
263                                       .getExportImportConfigurations(companyId, groupId, name,
264                            description, type, andSearch, start, end, orderByComparator);
265            }
266    
267            public static java.util.List<com.liferay.exportimport.kernel.model.ExportImportConfiguration> getExportImportConfigurations(
268                    long groupId, int type) {
269                    return getService().getExportImportConfigurations(groupId, type);
270            }
271    
272            public static java.util.List<com.liferay.exportimport.kernel.model.ExportImportConfiguration> getExportImportConfigurations(
273                    long groupId, int type, int start, int end,
274                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.exportimport.kernel.model.ExportImportConfiguration> orderByComparator) {
275                    return getService()
276                                       .getExportImportConfigurations(groupId, type, start, end,
277                            orderByComparator);
278            }
279    
280            public static java.util.List<com.liferay.exportimport.kernel.model.ExportImportConfiguration> getExportImportConfigurations(
281                    com.liferay.portal.kernel.search.Hits hits)
282                    throws com.liferay.portal.kernel.exception.PortalException {
283                    return getService().getExportImportConfigurations(hits);
284            }
285    
286            /**
287            * Returns a range of all the export import configurations.
288            *
289            * <p>
290            * 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.
291            * </p>
292            *
293            * @param start the lower bound of the range of export import configurations
294            * @param end the upper bound of the range of export import configurations (not inclusive)
295            * @return the range of export import configurations
296            */
297            public static java.util.List<com.liferay.exportimport.kernel.model.ExportImportConfiguration> getExportImportConfigurations(
298                    int start, int end) {
299                    return getService().getExportImportConfigurations(start, end);
300            }
301    
302            /**
303            * Returns the number of export import configurations.
304            *
305            * @return the number of export import configurations
306            */
307            public static int getExportImportConfigurationsCount() {
308                    return getService().getExportImportConfigurationsCount();
309            }
310    
311            public static int getExportImportConfigurationsCount(long companyId,
312                    long groupId, java.lang.String keywords, int type) {
313                    return getService()
314                                       .getExportImportConfigurationsCount(companyId, groupId,
315                            keywords, type);
316            }
317    
318            public static int getExportImportConfigurationsCount(long companyId,
319                    long groupId, java.lang.String name, java.lang.String description,
320                    int type, boolean andSearch) {
321                    return getService()
322                                       .getExportImportConfigurationsCount(companyId, groupId,
323                            name, description, type, andSearch);
324            }
325    
326            public static int getExportImportConfigurationsCount(long groupId) {
327                    return getService().getExportImportConfigurationsCount(groupId);
328            }
329    
330            public static int getExportImportConfigurationsCount(long groupId, int type) {
331                    return getService().getExportImportConfigurationsCount(groupId, type);
332            }
333    
334            public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
335                    return getService().getIndexableActionableDynamicQuery();
336            }
337    
338            /**
339            * Returns the OSGi service identifier.
340            *
341            * @return the OSGi service identifier
342            */
343            public static java.lang.String getOSGiServiceIdentifier() {
344                    return getService().getOSGiServiceIdentifier();
345            }
346    
347            public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
348                    java.io.Serializable primaryKeyObj)
349                    throws com.liferay.portal.kernel.exception.PortalException {
350                    return getService().getPersistedModel(primaryKeyObj);
351            }
352    
353            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration moveExportImportConfigurationToTrash(
354                    long userId, long exportImportConfigurationId)
355                    throws com.liferay.portal.kernel.exception.PortalException {
356                    return getService()
357                                       .moveExportImportConfigurationToTrash(userId,
358                            exportImportConfigurationId);
359            }
360    
361            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration restoreExportImportConfigurationFromTrash(
362                    long userId, long exportImportConfigurationId)
363                    throws com.liferay.portal.kernel.exception.PortalException {
364                    return getService()
365                                       .restoreExportImportConfigurationFromTrash(userId,
366                            exportImportConfigurationId);
367            }
368    
369            public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.exportimport.kernel.model.ExportImportConfiguration> searchExportImportConfigurations(
370                    long companyId, long groupId, int type, java.lang.String keywords,
371                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
372                    throws com.liferay.portal.kernel.exception.PortalException {
373                    return getService()
374                                       .searchExportImportConfigurations(companyId, groupId, type,
375                            keywords, start, end, sort);
376            }
377    
378            public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.exportimport.kernel.model.ExportImportConfiguration> searchExportImportConfigurations(
379                    long companyId, long groupId, int type, java.lang.String name,
380                    java.lang.String description, boolean andSearch, int start, int end,
381                    com.liferay.portal.kernel.search.Sort sort)
382                    throws com.liferay.portal.kernel.exception.PortalException {
383                    return getService()
384                                       .searchExportImportConfigurations(companyId, groupId, type,
385                            name, description, andSearch, start, end, sort);
386            }
387    
388            /**
389            * Updates the export import configuration in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
390            *
391            * @param exportImportConfiguration the export import configuration
392            * @return the export import configuration that was updated
393            */
394            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration updateExportImportConfiguration(
395                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) {
396                    return getService()
397                                       .updateExportImportConfiguration(exportImportConfiguration);
398            }
399    
400            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration updateExportImportConfiguration(
401                    long userId, long exportImportConfigurationId, java.lang.String name,
402                    java.lang.String description,
403                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap,
404                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
405                    throws com.liferay.portal.kernel.exception.PortalException {
406                    return getService()
407                                       .updateExportImportConfiguration(userId,
408                            exportImportConfigurationId, name, description, settingsMap,
409                            serviceContext);
410            }
411    
412            public static com.liferay.exportimport.kernel.model.ExportImportConfiguration updateStatus(
413                    long userId, long exportImportConfigurationId, int status)
414                    throws com.liferay.portal.kernel.exception.PortalException {
415                    return getService()
416                                       .updateStatus(userId, exportImportConfigurationId, status);
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    }