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.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.search.IndexableType;
022    import com.liferay.portal.kernel.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.model.SystemEventConstants;
026    import com.liferay.portal.service.BaseLocalService;
027    import com.liferay.portal.service.PersistedModelLocalService;
028    
029    /**
030     * Provides the local service interface for ExportImportConfiguration. Methods of this
031     * service will not have security checks based on the propagated JAAS
032     * credentials because this service can only be accessed from within the same
033     * VM.
034     *
035     * @author Brian Wing Shun Chan
036     * @see ExportImportConfigurationLocalServiceUtil
037     * @see com.liferay.portlet.exportimport.service.base.ExportImportConfigurationLocalServiceBaseImpl
038     * @see com.liferay.portlet.exportimport.service.impl.ExportImportConfigurationLocalServiceImpl
039     * @generated
040     */
041    @ProviderType
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface ExportImportConfigurationLocalService extends BaseLocalService,
045            PersistedModelLocalService {
046            /*
047             * NOTE FOR DEVELOPERS:
048             *
049             * Never modify or reference this interface directly. Always use {@link ExportImportConfigurationLocalServiceUtil} to access the export import configuration local service. Add custom service methods to {@link com.liferay.portlet.exportimport.service.impl.ExportImportConfigurationLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
050             */
051            public com.liferay.portlet.exportimport.model.ExportImportConfiguration addDraftExportImportConfiguration(
052                    long userId, java.lang.String name, int type,
053                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap)
054                    throws PortalException;
055    
056            public com.liferay.portlet.exportimport.model.ExportImportConfiguration addDraftExportImportConfiguration(
057                    long userId, int type,
058                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap)
059                    throws PortalException;
060    
061            /**
062            * Adds the export import configuration to the database. Also notifies the appropriate model listeners.
063            *
064            * @param exportImportConfiguration the export import configuration
065            * @return the export import configuration that was added
066            */
067            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
068            public com.liferay.portlet.exportimport.model.ExportImportConfiguration addExportImportConfiguration(
069                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration);
070    
071            public com.liferay.portlet.exportimport.model.ExportImportConfiguration addExportImportConfiguration(
072                    long userId, long groupId, java.lang.String name,
073                    java.lang.String description, int type,
074                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap,
075                    com.liferay.portal.service.ServiceContext serviceContext)
076                    throws PortalException;
077    
078            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
079            public com.liferay.portlet.exportimport.model.ExportImportConfiguration addExportImportConfiguration(
080                    long userId, long groupId, java.lang.String name,
081                    java.lang.String description, int type,
082                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap,
083                    int status, com.liferay.portal.service.ServiceContext serviceContext)
084                    throws PortalException;
085    
086            /**
087            * Creates a new export import configuration with the primary key. Does not add the export import configuration to the database.
088            *
089            * @param exportImportConfigurationId the primary key for the new export import configuration
090            * @return the new export import configuration
091            */
092            public com.liferay.portlet.exportimport.model.ExportImportConfiguration createExportImportConfiguration(
093                    long exportImportConfigurationId);
094    
095            /**
096            * Deletes the export import configuration from the database. Also notifies the appropriate model listeners.
097            *
098            * @param exportImportConfiguration the export import configuration
099            * @return the export import configuration that was removed
100            */
101            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
102            @com.liferay.portal.kernel.systemevent.SystemEvent(type = SystemEventConstants.TYPE_DELETE)
103            public com.liferay.portlet.exportimport.model.ExportImportConfiguration deleteExportImportConfiguration(
104                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration);
105    
106            /**
107            * Deletes the export import configuration with the primary key from the database. Also notifies the appropriate model listeners.
108            *
109            * @param exportImportConfigurationId the primary key of the export import configuration
110            * @return the export import configuration that was removed
111            * @throws PortalException if a export import configuration with the primary key could not be found
112            */
113            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
114            public com.liferay.portlet.exportimport.model.ExportImportConfiguration deleteExportImportConfiguration(
115                    long exportImportConfigurationId) throws PortalException;
116    
117            public void deleteExportImportConfigurations(long groupId);
118    
119            /**
120            * @throws PortalException
121            */
122            @Override
123            public com.liferay.portal.model.PersistedModel deletePersistedModel(
124                    com.liferay.portal.model.PersistedModel persistedModel)
125                    throws PortalException;
126    
127            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
128    
129            /**
130            * Performs a dynamic query on the database and returns the matching rows.
131            *
132            * @param dynamicQuery the dynamic query
133            * @return the matching rows
134            */
135            public <T> java.util.List<T> dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
137    
138            /**
139            * Performs a dynamic query on the database and returns a range of the matching rows.
140            *
141            * <p>
142            * 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.
143            * </p>
144            *
145            * @param dynamicQuery the dynamic query
146            * @param start the lower bound of the range of model instances
147            * @param end the upper bound of the range of model instances (not inclusive)
148            * @return the range of matching rows
149            */
150            public <T> java.util.List<T> dynamicQuery(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
152                    int end);
153    
154            /**
155            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
156            *
157            * <p>
158            * 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.
159            * </p>
160            *
161            * @param dynamicQuery the dynamic query
162            * @param start the lower bound of the range of model instances
163            * @param end the upper bound of the range of model instances (not inclusive)
164            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
165            * @return the ordered range of matching rows
166            */
167            public <T> java.util.List<T> dynamicQuery(
168                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
169                    int end,
170                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
171    
172            /**
173            * Returns the number of rows matching the dynamic query.
174            *
175            * @param dynamicQuery the dynamic query
176            * @return the number of rows matching the dynamic query
177            */
178            public long dynamicQueryCount(
179                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
180    
181            /**
182            * Returns the number of rows matching the dynamic query.
183            *
184            * @param dynamicQuery the dynamic query
185            * @param projection the projection to apply to the query
186            * @return the number of rows matching the dynamic query
187            */
188            public long dynamicQueryCount(
189                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
190                    com.liferay.portal.kernel.dao.orm.Projection projection);
191    
192            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193            public com.liferay.portlet.exportimport.model.ExportImportConfiguration fetchExportImportConfiguration(
194                    long exportImportConfigurationId);
195    
196            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
198    
199            /**
200            * Returns the export import configuration with the primary key.
201            *
202            * @param exportImportConfigurationId the primary key of the export import configuration
203            * @return the export import configuration
204            * @throws PortalException if a export import configuration with the primary key could not be found
205            */
206            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207            public com.liferay.portlet.exportimport.model.ExportImportConfiguration getExportImportConfiguration(
208                    long exportImportConfigurationId) throws PortalException;
209    
210            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211            public java.util.List<com.liferay.portlet.exportimport.model.ExportImportConfiguration> getExportImportConfigurations(
212                    long companyId, long groupId, java.lang.String keywords, int type,
213                    int start, int end,
214                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.exportimport.model.ExportImportConfiguration> orderByComparator);
215    
216            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217            public java.util.List<com.liferay.portlet.exportimport.model.ExportImportConfiguration> getExportImportConfigurations(
218                    long companyId, long groupId, java.lang.String name,
219                    java.lang.String description, int type, boolean andSearch, int start,
220                    int end,
221                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.exportimport.model.ExportImportConfiguration> orderByComparator);
222    
223            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224            public java.util.List<com.liferay.portlet.exportimport.model.ExportImportConfiguration> getExportImportConfigurations(
225                    long groupId, int type);
226    
227            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228            public java.util.List<com.liferay.portlet.exportimport.model.ExportImportConfiguration> getExportImportConfigurations(
229                    long groupId, int type, int start, int end,
230                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.exportimport.model.ExportImportConfiguration> orderByComparator);
231    
232            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233            public java.util.List<com.liferay.portlet.exportimport.model.ExportImportConfiguration> getExportImportConfigurations(
234                    com.liferay.portal.kernel.search.Hits hits) throws PortalException;
235    
236            /**
237            * Returns a range of all the export import configurations.
238            *
239            * <p>
240            * 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.
241            * </p>
242            *
243            * @param start the lower bound of the range of export import configurations
244            * @param end the upper bound of the range of export import configurations (not inclusive)
245            * @return the range of export import configurations
246            */
247            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248            public java.util.List<com.liferay.portlet.exportimport.model.ExportImportConfiguration> getExportImportConfigurations(
249                    int start, int end);
250    
251            /**
252            * Returns the number of export import configurations.
253            *
254            * @return the number of export import configurations
255            */
256            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257            public int getExportImportConfigurationsCount();
258    
259            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260            public int getExportImportConfigurationsCount(long companyId, long groupId,
261                    java.lang.String keywords, int type);
262    
263            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264            public int getExportImportConfigurationsCount(long companyId, long groupId,
265                    java.lang.String name, java.lang.String description, int type,
266                    boolean andSearch);
267    
268            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269            public int getExportImportConfigurationsCount(long groupId);
270    
271            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272            public int getExportImportConfigurationsCount(long groupId, int type);
273    
274            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
276    
277            /**
278            * Returns the OSGi service identifier.
279            *
280            * @return the OSGi service identifier
281            */
282            public java.lang.String getOSGiServiceIdentifier();
283    
284            @Override
285            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286            public com.liferay.portal.model.PersistedModel getPersistedModel(
287                    java.io.Serializable primaryKeyObj) throws PortalException;
288    
289            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
290            public com.liferay.portlet.exportimport.model.ExportImportConfiguration moveExportImportConfigurationToTrash(
291                    long userId, long exportImportConfigurationId)
292                    throws PortalException;
293    
294            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
295            public com.liferay.portlet.exportimport.model.ExportImportConfiguration restoreExportImportConfigurationFromTrash(
296                    long userId, long exportImportConfigurationId)
297                    throws PortalException;
298    
299            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300            public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.exportimport.model.ExportImportConfiguration> searchExportImportConfigurations(
301                    long companyId, long groupId, int type, java.lang.String keywords,
302                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
303                    throws PortalException;
304    
305            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306            public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.exportimport.model.ExportImportConfiguration> searchExportImportConfigurations(
307                    long companyId, long groupId, int type, java.lang.String name,
308                    java.lang.String description, boolean andSearch, int start, int end,
309                    com.liferay.portal.kernel.search.Sort sort) throws PortalException;
310    
311            /**
312            * Updates the export import configuration in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
313            *
314            * @param exportImportConfiguration the export import configuration
315            * @return the export import configuration that was updated
316            */
317            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
318            public com.liferay.portlet.exportimport.model.ExportImportConfiguration updateExportImportConfiguration(
319                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration);
320    
321            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
322            public com.liferay.portlet.exportimport.model.ExportImportConfiguration updateExportImportConfiguration(
323                    long userId, long exportImportConfigurationId, java.lang.String name,
324                    java.lang.String description,
325                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap,
326                    com.liferay.portal.service.ServiceContext serviceContext)
327                    throws PortalException;
328    
329            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
330            public com.liferay.portlet.exportimport.model.ExportImportConfiguration updateStatus(
331                    long userId, long exportImportConfigurationId, int status)
332                    throws PortalException;
333    }