001    /**
002     * Copyright (c) 2000-2013 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.softwarecatalog.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.service.BaseLocalService;
026    import com.liferay.portal.service.PersistedModelLocalService;
027    
028    /**
029     * Provides the local service interface for SCFrameworkVersion. Methods of this
030     * service will not have security checks based on the propagated JAAS
031     * credentials because this service can only be accessed from within the same
032     * VM.
033     *
034     * @author Brian Wing Shun Chan
035     * @see SCFrameworkVersionLocalServiceUtil
036     * @see com.liferay.portlet.softwarecatalog.service.base.SCFrameworkVersionLocalServiceBaseImpl
037     * @see com.liferay.portlet.softwarecatalog.service.impl.SCFrameworkVersionLocalServiceImpl
038     * @generated
039     */
040    @ProviderType
041    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
042            PortalException.class, SystemException.class})
043    public interface SCFrameworkVersionLocalService extends BaseLocalService,
044            PersistedModelLocalService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * Never modify or reference this interface directly. Always use {@link SCFrameworkVersionLocalServiceUtil} to access the s c framework version local service. Add custom service methods to {@link com.liferay.portlet.softwarecatalog.service.impl.SCFrameworkVersionLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
049             */
050    
051            /**
052            * Adds the s c framework version to the database. Also notifies the appropriate model listeners.
053            *
054            * @param scFrameworkVersion the s c framework version
055            * @return the s c framework version that was added
056            * @throws SystemException if a system exception occurred
057            */
058            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addSCFrameworkVersion(
060                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            /**
064            * Creates a new s c framework version with the primary key. Does not add the s c framework version to the database.
065            *
066            * @param frameworkVersionId the primary key for the new s c framework version
067            * @return the new s c framework version
068            */
069            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion createSCFrameworkVersion(
070                    long frameworkVersionId);
071    
072            /**
073            * Deletes the s c framework version with the primary key from the database. Also notifies the appropriate model listeners.
074            *
075            * @param frameworkVersionId the primary key of the s c framework version
076            * @return the s c framework version that was removed
077            * @throws PortalException if a s c framework version with the primary key could not be found
078            * @throws SystemException if a system exception occurred
079            */
080            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
081            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion deleteSCFrameworkVersion(
082                    long frameworkVersionId)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException;
085    
086            /**
087            * Deletes the s c framework version from the database. Also notifies the appropriate model listeners.
088            *
089            * @param scFrameworkVersion the s c framework version
090            * @return the s c framework version that was removed
091            * @throws SystemException if a system exception occurred
092            */
093            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
094            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion deleteSCFrameworkVersion(
095                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
099    
100            /**
101            * Performs a dynamic query on the database and returns the matching rows.
102            *
103            * @param dynamicQuery the dynamic query
104            * @return the matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            /**
113            * Performs a dynamic query on the database and returns a range of the matching rows.
114            *
115            * <p>
116            * 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.softwarecatalog.model.impl.SCFrameworkVersionModelImpl}. 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.
117            * </p>
118            *
119            * @param dynamicQuery the dynamic query
120            * @param start the lower bound of the range of model instances
121            * @param end the upper bound of the range of model instances (not inclusive)
122            * @return the range of matching rows
123            * @throws SystemException if a system exception occurred
124            */
125            @SuppressWarnings("rawtypes")
126            public java.util.List dynamicQuery(
127                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
128                    int end) throws com.liferay.portal.kernel.exception.SystemException;
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * 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.softwarecatalog.model.impl.SCFrameworkVersionModelImpl}. 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.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @SuppressWarnings("rawtypes")
145            public java.util.List dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147                    int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            /**
152            * Returns the number of rows that match the dynamic query.
153            *
154            * @param dynamicQuery the dynamic query
155            * @return the number of rows that match the dynamic query
156            * @throws SystemException if a system exception occurred
157            */
158            public long dynamicQueryCount(
159                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            /**
163            * Returns the number of rows that match the dynamic query.
164            *
165            * @param dynamicQuery the dynamic query
166            * @param projection the projection to apply to the query
167            * @return the number of rows that match the dynamic query
168            * @throws SystemException if a system exception occurred
169            */
170            public long dynamicQueryCount(
171                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
172                    com.liferay.portal.kernel.dao.orm.Projection projection)
173                    throws com.liferay.portal.kernel.exception.SystemException;
174    
175            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchSCFrameworkVersion(
177                    long frameworkVersionId)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    
180            /**
181            * Returns the s c framework version with the primary key.
182            *
183            * @param frameworkVersionId the primary key of the s c framework version
184            * @return the s c framework version
185            * @throws PortalException if a s c framework version with the primary key could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getSCFrameworkVersion(
190                    long frameworkVersionId)
191                    throws com.liferay.portal.kernel.exception.PortalException,
192                            com.liferay.portal.kernel.exception.SystemException;
193    
194            @Override
195            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196            public com.liferay.portal.model.PersistedModel getPersistedModel(
197                    java.io.Serializable primaryKeyObj)
198                    throws com.liferay.portal.kernel.exception.PortalException,
199                            com.liferay.portal.kernel.exception.SystemException;
200    
201            /**
202            * Returns a range of all the s c framework versions.
203            *
204            * <p>
205            * 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.softwarecatalog.model.impl.SCFrameworkVersionModelImpl}. 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.
206            * </p>
207            *
208            * @param start the lower bound of the range of s c framework versions
209            * @param end the upper bound of the range of s c framework versions (not inclusive)
210            * @return the range of s c framework versions
211            * @throws SystemException if a system exception occurred
212            */
213            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
215                    int start, int end)
216                    throws com.liferay.portal.kernel.exception.SystemException;
217    
218            /**
219            * Returns the number of s c framework versions.
220            *
221            * @return the number of s c framework versions
222            * @throws SystemException if a system exception occurred
223            */
224            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225            public int getSCFrameworkVersionsCount()
226                    throws com.liferay.portal.kernel.exception.SystemException;
227    
228            /**
229            * Updates the s c framework version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
230            *
231            * @param scFrameworkVersion the s c framework version
232            * @return the s c framework version that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
236            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
237                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
238                    throws com.liferay.portal.kernel.exception.SystemException;
239    
240            /**
241            * @throws SystemException if a system exception occurred
242            */
243            public void addSCProductVersionSCFrameworkVersion(long productVersionId,
244                    long frameworkVersionId)
245                    throws com.liferay.portal.kernel.exception.SystemException;
246    
247            /**
248            * @throws SystemException if a system exception occurred
249            */
250            public void addSCProductVersionSCFrameworkVersion(long productVersionId,
251                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            /**
255            * @throws SystemException if a system exception occurred
256            */
257            public void addSCProductVersionSCFrameworkVersions(long productVersionId,
258                    long[] frameworkVersionIds)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            /**
262            * @throws SystemException if a system exception occurred
263            */
264            public void addSCProductVersionSCFrameworkVersions(long productVersionId,
265                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> SCFrameworkVersions)
266                    throws com.liferay.portal.kernel.exception.SystemException;
267    
268            /**
269            * @throws SystemException if a system exception occurred
270            */
271            public void clearSCProductVersionSCFrameworkVersions(long productVersionId)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * @throws SystemException if a system exception occurred
276            */
277            public void deleteSCProductVersionSCFrameworkVersion(
278                    long productVersionId, long frameworkVersionId)
279                    throws com.liferay.portal.kernel.exception.SystemException;
280    
281            /**
282            * @throws SystemException if a system exception occurred
283            */
284            public void deleteSCProductVersionSCFrameworkVersion(
285                    long productVersionId,
286                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
287                    throws com.liferay.portal.kernel.exception.SystemException;
288    
289            /**
290            * @throws SystemException if a system exception occurred
291            */
292            public void deleteSCProductVersionSCFrameworkVersions(
293                    long productVersionId, long[] frameworkVersionIds)
294                    throws com.liferay.portal.kernel.exception.SystemException;
295    
296            /**
297            * @throws SystemException if a system exception occurred
298            */
299            public void deleteSCProductVersionSCFrameworkVersions(
300                    long productVersionId,
301                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> SCFrameworkVersions)
302                    throws com.liferay.portal.kernel.exception.SystemException;
303    
304            /**
305            * @throws SystemException if a system exception occurred
306            */
307            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCProductVersionSCFrameworkVersions(
309                    long productVersionId)
310                    throws com.liferay.portal.kernel.exception.SystemException;
311    
312            /**
313            * @throws SystemException if a system exception occurred
314            */
315            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCProductVersionSCFrameworkVersions(
317                    long productVersionId, int start, int end)
318                    throws com.liferay.portal.kernel.exception.SystemException;
319    
320            /**
321            * @throws SystemException if a system exception occurred
322            */
323            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCProductVersionSCFrameworkVersions(
325                    long productVersionId, int start, int end,
326                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327                    throws com.liferay.portal.kernel.exception.SystemException;
328    
329            /**
330            * @throws SystemException if a system exception occurred
331            */
332            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333            public int getSCProductVersionSCFrameworkVersionsCount(
334                    long productVersionId)
335                    throws com.liferay.portal.kernel.exception.SystemException;
336    
337            /**
338            * @throws SystemException if a system exception occurred
339            */
340            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341            public boolean hasSCProductVersionSCFrameworkVersion(
342                    long productVersionId, long frameworkVersionId)
343                    throws com.liferay.portal.kernel.exception.SystemException;
344    
345            /**
346            * @throws SystemException if a system exception occurred
347            */
348            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
349            public boolean hasSCProductVersionSCFrameworkVersions(long productVersionId)
350                    throws com.liferay.portal.kernel.exception.SystemException;
351    
352            /**
353            * @throws SystemException if a system exception occurred
354            */
355            public void setSCProductVersionSCFrameworkVersions(long productVersionId,
356                    long[] frameworkVersionIds)
357                    throws com.liferay.portal.kernel.exception.SystemException;
358    
359            /**
360            * Returns the Spring bean ID for this bean.
361            *
362            * @return the Spring bean ID for this bean
363            */
364            public java.lang.String getBeanIdentifier();
365    
366            /**
367            * Sets the Spring bean ID for this bean.
368            *
369            * @param beanIdentifier the Spring bean ID for this bean
370            */
371            public void setBeanIdentifier(java.lang.String beanIdentifier);
372    
373            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addFrameworkVersion(
374                    long userId, java.lang.String name, java.lang.String url,
375                    boolean active, int priority,
376                    com.liferay.portal.service.ServiceContext serviceContext)
377                    throws com.liferay.portal.kernel.exception.PortalException,
378                            com.liferay.portal.kernel.exception.SystemException;
379    
380            public void addFrameworkVersionResources(long frameworkVersionId,
381                    boolean addGroupPermissions, boolean addGuestPermissions)
382                    throws com.liferay.portal.kernel.exception.PortalException,
383                            com.liferay.portal.kernel.exception.SystemException;
384    
385            public void addFrameworkVersionResources(long frameworkVersionId,
386                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
387                    throws com.liferay.portal.kernel.exception.PortalException,
388                            com.liferay.portal.kernel.exception.SystemException;
389    
390            public void addFrameworkVersionResources(
391                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
392                    boolean addGroupPermissions, boolean addGuestPermissions)
393                    throws com.liferay.portal.kernel.exception.PortalException,
394                            com.liferay.portal.kernel.exception.SystemException;
395    
396            public void addFrameworkVersionResources(
397                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
398                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
399                    throws com.liferay.portal.kernel.exception.PortalException,
400                            com.liferay.portal.kernel.exception.SystemException;
401    
402            public void deleteFrameworkVersion(long frameworkVersionId)
403                    throws com.liferay.portal.kernel.exception.PortalException,
404                            com.liferay.portal.kernel.exception.SystemException;
405    
406            public void deleteFrameworkVersion(
407                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion)
408                    throws com.liferay.portal.kernel.exception.SystemException;
409    
410            public void deleteFrameworkVersions(long groupId)
411                    throws com.liferay.portal.kernel.exception.SystemException;
412    
413            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getFrameworkVersion(
415                    long frameworkVersionId)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException;
418    
419            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
420            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
421                    long groupId, boolean active)
422                    throws com.liferay.portal.kernel.exception.SystemException;
423    
424            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
426                    long groupId, boolean active, int start, int end)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
431                    long groupId, int start, int end)
432                    throws com.liferay.portal.kernel.exception.SystemException;
433    
434            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
435            public int getFrameworkVersionsCount(long groupId)
436                    throws com.liferay.portal.kernel.exception.SystemException;
437    
438            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
439            public int getFrameworkVersionsCount(long groupId, boolean active)
440                    throws com.liferay.portal.kernel.exception.SystemException;
441    
442            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
443            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getProductVersionFrameworkVersions(
444                    long productVersionId)
445                    throws com.liferay.portal.kernel.exception.SystemException;
446    
447            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateFrameworkVersion(
448                    long frameworkVersionId, java.lang.String name, java.lang.String url,
449                    boolean active, int priority)
450                    throws com.liferay.portal.kernel.exception.PortalException,
451                            com.liferay.portal.kernel.exception.SystemException;
452    }