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    
052            /**
053            * Adds the export import configuration to the database. Also notifies the appropriate model listeners.
054            *
055            * @param exportImportConfiguration the export import configuration
056            * @return the export import configuration that was added
057            */
058            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059            public com.liferay.portlet.exportimport.model.ExportImportConfiguration addExportImportConfiguration(
060                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration);
061    
062            public com.liferay.portlet.exportimport.model.ExportImportConfiguration addExportImportConfiguration(
063                    long userId, long groupId, java.lang.String name,
064                    java.lang.String description, int type,
065                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap,
066                    com.liferay.portal.service.ServiceContext serviceContext)
067                    throws PortalException;
068    
069            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
070            public com.liferay.portlet.exportimport.model.ExportImportConfiguration addExportImportConfiguration(
071                    long userId, long groupId, java.lang.String name,
072                    java.lang.String description, int type,
073                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap,
074                    int status, com.liferay.portal.service.ServiceContext serviceContext)
075                    throws PortalException;
076    
077            /**
078            * Creates a new export import configuration with the primary key. Does not add the export import configuration to the database.
079            *
080            * @param exportImportConfigurationId the primary key for the new export import configuration
081            * @return the new export import configuration
082            */
083            public com.liferay.portlet.exportimport.model.ExportImportConfiguration createExportImportConfiguration(
084                    long exportImportConfigurationId);
085    
086            /**
087            * Deletes the export import configuration from the database. Also notifies the appropriate model listeners.
088            *
089            * @param exportImportConfiguration the export import configuration
090            * @return the export import configuration that was removed
091            * @throws PortalException
092            */
093            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
094            @com.liferay.portal.kernel.systemevent.SystemEvent(type = SystemEventConstants.TYPE_DELETE)
095            public com.liferay.portlet.exportimport.model.ExportImportConfiguration deleteExportImportConfiguration(
096                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
097                    throws PortalException;
098    
099            /**
100            * Deletes the export import configuration with the primary key from the database. Also notifies the appropriate model listeners.
101            *
102            * @param exportImportConfigurationId the primary key of the export import configuration
103            * @return the export import configuration that was removed
104            * @throws PortalException if a export import configuration with the primary key could not be found
105            */
106            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
107            public com.liferay.portlet.exportimport.model.ExportImportConfiguration deleteExportImportConfiguration(
108                    long exportImportConfigurationId) throws PortalException;
109    
110            public void deleteExportImportConfigurations(long groupId)
111                    throws PortalException;
112    
113            /**
114            * @throws PortalException
115            */
116            @Override
117            public com.liferay.portal.model.PersistedModel deletePersistedModel(
118                    com.liferay.portal.model.PersistedModel persistedModel)
119                    throws PortalException;
120    
121            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
122    
123            /**
124            * Performs a dynamic query on the database and returns the matching rows.
125            *
126            * @param dynamicQuery the dynamic query
127            * @return the matching rows
128            */
129            public <T> java.util.List<T> dynamicQuery(
130                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
131    
132            /**
133            * Performs a dynamic query on the database and returns a range of the matching rows.
134            *
135            * <p>
136            * 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.
137            * </p>
138            *
139            * @param dynamicQuery the dynamic query
140            * @param start the lower bound of the range of model instances
141            * @param end the upper bound of the range of model instances (not inclusive)
142            * @return the range of matching rows
143            */
144            public <T> java.util.List<T> dynamicQuery(
145                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
146                    int end);
147    
148            /**
149            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
150            *
151            * <p>
152            * 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.
153            * </p>
154            *
155            * @param dynamicQuery the dynamic query
156            * @param start the lower bound of the range of model instances
157            * @param end the upper bound of the range of model instances (not inclusive)
158            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
159            * @return the ordered range of matching rows
160            */
161            public <T> java.util.List<T> dynamicQuery(
162                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
163                    int end,
164                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
165    
166            /**
167            * Returns the number of rows matching the dynamic query.
168            *
169            * @param dynamicQuery the dynamic query
170            * @return the number of rows matching the dynamic query
171            */
172            public long dynamicQueryCount(
173                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
174    
175            /**
176            * Returns the number of rows matching the dynamic query.
177            *
178            * @param dynamicQuery the dynamic query
179            * @param projection the projection to apply to the query
180            * @return the number of rows matching the dynamic query
181            */
182            public long dynamicQueryCount(
183                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
184                    com.liferay.portal.kernel.dao.orm.Projection projection);
185    
186            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187            public com.liferay.portlet.exportimport.model.ExportImportConfiguration fetchExportImportConfiguration(
188                    long exportImportConfigurationId);
189    
190            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
192    
193            /**
194            * Returns the Spring bean ID for this bean.
195            *
196            * @return the Spring bean ID for this bean
197            */
198            public java.lang.String getBeanIdentifier();
199    
200            /**
201            * Returns the export import configuration with the primary key.
202            *
203            * @param exportImportConfigurationId the primary key of the export import configuration
204            * @return the export import configuration
205            * @throws PortalException if a export import configuration with the primary key could not be found
206            */
207            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208            public com.liferay.portlet.exportimport.model.ExportImportConfiguration getExportImportConfiguration(
209                    long exportImportConfigurationId) throws PortalException;
210    
211            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212            public java.util.List<com.liferay.portlet.exportimport.model.ExportImportConfiguration> getExportImportConfigurations(
213                    long groupId, int type);
214    
215            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216            public java.util.List<com.liferay.portlet.exportimport.model.ExportImportConfiguration> getExportImportConfigurations(
217                    long groupId, int type, int start, int end,
218                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.exportimport.model.ExportImportConfiguration> orderByComparator);
219    
220            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221            public java.util.List<com.liferay.portlet.exportimport.model.ExportImportConfiguration> getExportImportConfigurations(
222                    com.liferay.portal.kernel.search.Hits hits) throws PortalException;
223    
224            /**
225            * Returns a range of all the export import configurations.
226            *
227            * <p>
228            * 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.
229            * </p>
230            *
231            * @param start the lower bound of the range of export import configurations
232            * @param end the upper bound of the range of export import configurations (not inclusive)
233            * @return the range of export import configurations
234            */
235            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236            public java.util.List<com.liferay.portlet.exportimport.model.ExportImportConfiguration> getExportImportConfigurations(
237                    int start, int end);
238    
239            /**
240            * Returns the number of export import configurations.
241            *
242            * @return the number of export import configurations
243            */
244            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245            public int getExportImportConfigurationsCount();
246    
247            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248            public int getExportImportConfigurationsCount(long groupId);
249    
250            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251            public int getExportImportConfigurationsCount(long groupId, int type);
252    
253            @Override
254            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255            public com.liferay.portal.model.PersistedModel getPersistedModel(
256                    java.io.Serializable primaryKeyObj) throws PortalException;
257    
258            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
259            public com.liferay.portlet.exportimport.model.ExportImportConfiguration moveExportImportConfigurationToTrash(
260                    long userId, long exportImportConfigurationId)
261                    throws PortalException;
262    
263            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
264            public com.liferay.portlet.exportimport.model.ExportImportConfiguration restoreExportImportConfigurationFromTrash(
265                    long userId, long exportImportConfigurationId)
266                    throws PortalException;
267    
268            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269            public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.exportimport.model.ExportImportConfiguration> searchExportImportConfigurations(
270                    long companyId, long groupId, int type, java.lang.String keywords,
271                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
272                    throws PortalException;
273    
274            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275            public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.exportimport.model.ExportImportConfiguration> searchExportImportConfigurations(
276                    long companyId, long groupId, int type, java.lang.String name,
277                    java.lang.String description, boolean andSearch, int start, int end,
278                    com.liferay.portal.kernel.search.Sort sort) throws PortalException;
279    
280            /**
281            * Sets the Spring bean ID for this bean.
282            *
283            * @param beanIdentifier the Spring bean ID for this bean
284            */
285            public void setBeanIdentifier(java.lang.String beanIdentifier);
286    
287            /**
288            * Updates the export import configuration in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
289            *
290            * @param exportImportConfiguration the export import configuration
291            * @return the export import configuration that was updated
292            */
293            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
294            public com.liferay.portlet.exportimport.model.ExportImportConfiguration updateExportImportConfiguration(
295                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration);
296    
297            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
298            public com.liferay.portlet.exportimport.model.ExportImportConfiguration updateExportImportConfiguration(
299                    long userId, long exportImportConfigurationId, java.lang.String name,
300                    java.lang.String description,
301                    java.util.Map<java.lang.String, java.io.Serializable> settingsMap,
302                    com.liferay.portal.service.ServiceContext serviceContext)
303                    throws PortalException;
304    
305            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
306            public com.liferay.portlet.exportimport.model.ExportImportConfiguration updateStatus(
307                    long userId, long exportImportConfigurationId, int status)
308                    throws PortalException;
309    }